#robotics Logs

Nov 02 2019

#robotics Calendar

12:01 AM Tom_L: moderately interested but no time to invest
12:06 AM rue_mohr: yea, browse 'er
12:06 AM Tom_L: so what's the ":" prompt?
12:06 AM rue_mohr: ?
12:06 AM rue_mohr: type q
12:06 AM rue_mohr: its less
12:06 AM rue_mohr: https://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&ved=2ahUKEwj78P6z3srlAhUPJTQIHQdiAPEQFjACegQIABAC&url=https%3A%2F%2Fwww.st.com%2Fresource%2Fen%2Freference_manual%2Fcd00171190.pdf&usg=AOvVaw2COJyvwY5Q31d0AX70Tv_-
12:06 AM Tom_L: oh
12:06 AM rue_mohr: looks like the right document
12:06 AM rue_mohr: they cover their whole library of harware, even that not on my chip
12:06 AM rue_mohr: (I dont ahve any DACs)
12:06 AM Tom_L: that would be cool
12:07 AM rue_mohr: it'll pick out all the things that shouldn't be there anymore, by default, libraries
12:08 AM rue_mohr: if you want to pick they supurflious software, orphaner -a
12:12 AM rue_mohr: adc_set_regular_sequence( ADC1, 1, (uint8_t[]){0, 1, 2, 3} );
12:13 AM rue_mohr: huh, anonymous array
12:17 AM Tom_L: 10.1
12:18 AM rue_mohr: yay
12:23 AM rue_mohr: that didn't take long
12:23 AM Tom_L: no not that bad
12:23 AM rue_mohr: now you have to work out what it changed
12:29 AM rue_mohr: if I tell the adc to start a batch of 4 channel conversions, I dont know if I get an end of conversion flag for each of the channels
12:41 AM rue_mohr: hmm
12:44 AM rue_mohr: ok, that should convert 4 channels for me
12:48 AM rue_mohr: ok, the code is written,
12:49 AM rue_mohr: maybe some food and see if it runs
01:14 AM mrdata: https://newfoodeconomy.org/supermarket-robot-automation-ai-organized-labor-stop-and-shop/
09:15 AM knob2 is now known as knov
11:48 AM rue_mohr2 is now known as rue_bed
04:13 PM Coldblackice_ is now known as Coldblackice
06:00 PM rue_mohr: ok
06:00 PM rue_mohr: ma's motorhome is repoisitioned
06:00 PM rue_mohr: I got tea milk
06:00 PM rue_mohr: I have an stm32 blue pill schematic
06:00 PM Tom_L: on purpose or natural disaster?
06:00 PM rue_mohr: and I got code to test
06:01 PM rue_mohr: she bought a motorhome and they wouldn't let her put a heater in it over winter
06:01 PM rue_mohr: it was getting wet, so its here for the winter
06:01 PM Tom_L: oh
06:01 PM rue_mohr: we needed to shuffle it sideways in the driveway and level it up
06:02 PM Tom_L: change your clocks
06:02 PM rue_mohr: its heavy, she already flattened the trucks stands I had
06:02 PM rue_mohr: she got me new ones
06:02 PM rue_mohr: the old ones were metal, the new ones are plastic..
06:02 PM rue_mohr: ~
06:03 PM rue_mohr: I used some 4x4 and 8x8 to make a new leveling ramp
06:03 PM rue_mohr: I had a bit of candy and I'm completely sugared out
06:03 PM rue_mohr: sucks to get old eh?
06:05 PM Tom_L: hah
06:08 PM rue_mohr: ok
06:08 PM rue_mohr: so, my input is from -5V to 5V
06:09 PM rue_mohr: I have 4096 counts
06:09 PM rue_mohr: I want to get to volts
06:10 PM rue_mohr: #define RangeRemap(v,Il,Ih,Ol,Oh) (((((v)-(Il))*((Oh)-(Ol)))/((Ih)-(Il)))+(Ol))
06:11 PM rue_mohr: Il = 0 Ih=4096 Ol = -5 Oh= 5
06:11 PM rue_mohr: #define RangeRemap(v,Il,Ih,Ol,Oh) ((((v-Il)*(Oh-Ol))/(Ih-Il))+Ol)
06:13 PM rue_mohr: #define RangeRemap(v,Il,Ih,Ol,Oh) ( ( (v-Il)*(Oh-Ol) ) / (Ih-Il) ) + Ol
06:20 PM rue_mohr: ADC/409.6 -5
06:24 PM Jan-: hey rue
06:24 PM rue_mohr: hey
06:29 PM rue_mohr: ok, ADC*10000/4096 - 5000
06:29 PM rue_mohr: answer is in mV
06:29 PM rue_mohr: fits nicely into a signed int
06:30 PM rue_mohr: and its a 32 bit arch, so 40960000 shouldn't be a problem?
06:31 PM rue_mohr: yea ok
07:00 PM rue_mohr: void printSignedNumber16(int16_t n) {
07:00 PM rue_mohr: if (n & 0x8000) {
07:00 PM rue_mohr: printf("-");
07:00 PM rue_mohr: n =~ --n;
07:00 PM rue_mohr: }
07:00 PM rue_mohr:
07:00 PM rue_mohr: printNumber16( n);
07:00 PM rue_mohr:
07:00 PM rue_mohr: }
07:00 PM rue_mohr: ok!
07:02 PM Tom_L: what does 'meta package' mean on a kernel image?
07:04 PM zhanx: internal stuff it needs
07:05 PM rue_mohr: thought it usually means that its just a name for other packages for backwards compatability on thing that package-jumped
07:37 PM logb0t_ is now known as logb0t
07:37 PM Jan-: so esp32 seems pretty OK
07:48 PM rue_mohr: hows that fromt eh 8266?
07:48 PM Jan-: updated version as far as I know
07:48 PM Jan-: I only just got these two esp32s
07:48 PM rue_mohr: 32 was after 8266?
07:49 PM zhanx: yes
07:52 PM Jan-: it has more radio gear
07:52 PM Jan-: or something
07:53 PM Jan-: I'm not actually that worried about radio stuff
07:53 PM Jan-: it just seemed like a well documented option
07:54 PM Jan-: and I think it is
10:06 PM mrdata__ is now known as mrdata-