#robotics Logs

Jun 12 2017

#robotics Calendar

12:00 AM anniepoo: no such rule
12:02 AM Jak_o_Shadows: Copy it from here: https://github.com/Jak-o-Shadows/softlight/blob/master/code/Makefile
12:02 AM Jak_o_Shadows: Or just run the comand "openocd -f 'openocd.cfg" -c "init" -c "halt" -c "reset halt"
12:02 AM rue_house: I prolly killed that line
12:02 AM anniepoo: can't find openocd.cfg
12:02 AM rue_house: its in...
12:02 AM Jak_o_Shadows: Download this to the makefile folder: https://github.com/Jak-o-Shadows/softlight/blob/master/code/openocd.cfg
12:03 AM anniepoo: http://collabedit.com/utghy
12:04 AM anniepoo: yes, it's quitting
12:06 AM * rue_house notes to NOT upgrade to 0.9.0
12:06 AM Jak_o_Shadows: Up until line 77 looks ok
12:06 AM Jak_o_Shadows: wait. not quite
12:06 AM Jak_o_Shadows: no, up to line 77 is ok
12:06 AM anniepoo: you get this thing about unable to match requested speed?
12:06 AM Jak_o_Shadows: then it says: "info: STLINK v2 JTAG v17 API v2 SWIM v4 VID 0X0483 PID 0X3748 \n Info: using stlink api v2 \n Info: target voltage: 3.281175
12:06 AM Jak_o_Shadows: yes
12:07 AM rue_house: "Info : This adapter doesn't support configurable speed"
12:07 AM rue_house: I always get
12:07 AM anniepoo: ok, theory
12:07 AM anniepoo: maybe we're barking up wrong tree
12:07 AM rue_house: Jak_o_Shadows, scroll down, zippo is me
12:08 AM anniepoo: maybe it's a hardware issue
12:08 AM rue_house: anniepoo, I get the impression its not commected
12:08 AM anniepoo: going to unplug and replug
12:08 AM rue_house: unplug and replug the adapter
12:08 AM rue_house: look for
12:08 AM rue_house: (dmesg)
12:08 AM Jak_o_Shadows: I don't think it's the adapter end
12:08 AM rue_house: usb 6-1: new full speed USB device using ohci_hcd and address 5
12:08 AM rue_house: usb 6-1: New USB device found, idVendor=0483, idProduct=3748
12:08 AM rue_house: usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
12:08 AM rue_house: usb 6-1: Product: STM32 STLink
12:08 AM rue_house: usb 6-1: Manufacturer: STMicroelectronics
12:08 AM rue_house: usb 6-1: SerialNumber: U\xffffffc3\xffffffbfj\x06PfUW2 "\xffffffc2\xffffff87
12:08 AM Jak_o_Shadows: It's the connection between the stlink and the uC
12:09 AM Jak_o_Shadows: I get the EXACT error message you do when I disconect the stlink from the uC
12:09 AM rue_house: anniepoo, can you post a pic of your
12:09 AM anniepoo: sure
12:09 AM rue_house: electrical connections to the programmer?
12:09 AM anniepoo: though I'm suspicious of that idea
12:09 AM rue_house: also, make sure (for the hell of it) that both jumpers are on 0
12:09 AM anniepoo: since this exact setup was working when I was fooling with stm32 before
12:09 AM rue_house: just cutting down trees
12:12 AM anniepoo: https://www.instagram.com/p/BVOfpO3DG2g/?taken-by=anneogborn
12:13 AM anniepoo: brb, going to give the snail another coat
12:13 AM rue_house: nopE!
12:13 AM anniepoo: nope?
12:13 AM rue_house: the yellow one
12:13 AM rue_house: should be
12:13 AM rue_house: orange
12:13 AM Jak_o_Shadows: You have a different st-link than I
12:13 AM rue_house: or is that a trick of image colour
12:14 AM rue_house: it looks like your using sw-rst instead of swdio
12:14 AM anniepoo: connector on stm32
12:14 AM rue_house: image colour? or wire colour
12:14 AM anniepoo: wires are , from bottom
12:14 AM rue_house: should be purple, green, light orange, orange
12:15 AM rue_house: yellow shouldn't be connected...
12:15 AM anniepoo: orange, light orange, green, purple
12:15 AM anniepoo: yellow and blue disconnected
12:15 AM rue_house: oh
12:15 AM rue_house: image colour, sorry
12:15 AM anniepoo: yah, I thought it was yellow myself til I saw the disconnected wire
12:15 AM anniepoo: which is lemon
12:16 AM anniepoo: this is the orange of oranges
12:16 AM rue_house: who the hell makes ribbon cable thats not standard resistor colour code anyhow!?
12:16 AM anniepoo: the first wire is blood oranges
12:16 AM anniepoo: anyway, it's not very believable that it's a wiring issue
12:16 AM anniepoo: since this unit was successfully programmed
12:17 AM anniepoo: and hasn't been futzed with since
12:17 AM rue_house: yea, the first one being road cone, the next one being orange-shoe
12:17 AM rue_house: anniepoo, I dont know how to help...
12:17 AM anniepoo: do I need some driver?
12:17 AM anniepoo: 8cD
12:17 AM Jak_o_Shadows: I don't think it's a config issue
12:17 AM rue_house: no
12:18 AM rue_house: anniepoo, can you find a copy of 0.8.0 to try?
12:18 AM rue_house: I could give you a .deb
12:18 AM anniepoo: ok
12:19 AM anniepoo: give me the deb
12:19 AM Jak_o_Shadows: I think that';s all working. I would check if the CPU is powerd
12:19 AM anniepoo: I have a light on the CPU
12:19 AM anniepoo: so the board has power
12:20 AM anniepoo: I had a pirate copy of AVR workbench on windows, it's probably still installed, I could see if I could exercise the board from there
12:20 AM rue_house: http://ruemohr.org/~ircjunk/software/openocd_0.8.0-4_i386.deb
12:20 AM rue_house: maybe just try that, cause I know my makefile works
12:21 AM rue_house: and yours is a st-link v2 just like mine
12:25 AM anniepoo: darn
12:25 AM anniepoo: dind't help
12:25 AM anniepoo: see line 60
12:25 AM anniepoo: maybe it's not finding the device?
12:25 AM rue_house: open failed
12:26 AM rue_house: those words stand out to me
12:26 AM anniepoo: that's what it was doing before
12:26 AM rue_house: I think your stm32 is dead!
12:26 AM anniepoo: I don't
12:26 AM rue_house: we need to prove it
12:26 AM anniepoo: I think it's not finding the usb
12:26 AM anniepoo: ok
12:26 AM anniepoo: hang on
12:26 AM anniepoo: I might still have my avr thing working
12:26 AM rue_house: that was from make install, right?
12:26 AM anniepoo: that was just openocd
12:27 AM rue_house: try the make isntall
12:27 AM anniepoo: same
12:27 AM rue_house: hmmmmm
12:27 AM rue_house: anniepoo,
12:27 AM rue_house: if I unplug my stm32..
12:28 AM rue_house: look familier?
12:28 AM rue_house: wait
12:28 AM rue_house: no its not
12:28 AM rue_house: wtf
12:29 AM rue_house: was dmesg ok?
12:29 AM rue_house: its not a bad usb cable is it?
12:29 AM rue_house: oh
12:29 AM rue_house: ookokkko
12:30 AM rue_house: ohohohoho
12:30 AM rue_house: lookie lookie
12:30 AM rue_house: open failed
12:30 AM rue_house: your computer cant talk to the stlink
12:30 AM rue_house: anniepoo, !
12:30 AM rue_house: see"!?
12:31 AM anniepoo: ok
12:31 AM rue_house: unplug, replug, type dmesg
12:31 AM rue_house: whats at the end?
12:31 AM anniepoo: well, I've understood for a while it was failing to open
12:31 AM anniepoo: 8cD
12:31 AM anniepoo: went to windows,
12:31 AM anniepoo: couldn't find it
12:31 AM rue_house: thats the stlink couldn't be opened
12:31 AM anniepoo: tugged on the microusb
12:32 AM anniepoo: 8cD and tried again
12:32 AM anniepoo: and it worked
12:32 AM rue_house: haha, okokok
12:32 AM rue_house: try with mine!
12:32 AM rue_house: bad usb cable!
12:32 AM rue_house: had a few that were flakey
12:32 AM * rue_house sits on the last micron of the edge of his seat
12:33 AM rue_house: 8-|
12:33 AM rue_house: weeeeeeeeeeeeeeeeeeeeeeelllllllllllllllllllllllllllllllllllllllllllllllllll???????????????????????????/
12:33 AM rue_house: (8-|
12:34 AM rue_house: O O
12:34 AM rue_house: |
12:34 AM rue_house: -------
12:34 AM anniepoo: far out
12:34 AM rue_house: it works!?
12:35 AM anniepoo: I think it's some startup condition in the st-link
12:35 AM rue_house: bad usb! yay!
12:35 AM anniepoo: cause I had exactly same behavior on linux box with different USB cable
12:35 AM anniepoo: and I've got the onboard blinking
12:35 AM rue_house: bad connector on programmer?
12:35 AM anniepoo: or some race condition in programmer
12:36 AM anniepoo: in both cases, unplugging the microusb and replugging made it appea
12:36 AM rue_house: I assume all the chineese knockoff programmers are the same
12:36 AM anniepoo: wish I'd known about dmesg before
12:36 AM rue_house: dmesg will usually help know if a cable is bad
12:36 AM rue_house: lots of read errors
12:36 AM rue_house: ok so, want the whole gammit of examples I'v done so far?
12:37 AM anniepoo: yes
12:37 AM anniepoo: 8cD I'm pooped
12:38 AM anniepoo: but would like to do one more day of this at some point in next few days, and get as many peripherals working as I can
12:38 AM anniepoo: how are you debugging?
12:38 AM anniepoo: do you have gdb integrated in workflow?
12:39 AM rue_house: with an led
12:39 AM rue_house: no
12:39 AM anniepoo: ooh
12:39 AM anniepoo: ok.
12:39 AM rue_house: led and or scope
12:39 AM anniepoo: when I was working iwth ttm before
12:39 AM anniepoo: had debugger going
12:39 AM anniepoo: that's WELL worth having
12:39 AM rue_house: Jak_o_Shadows, could help you more
12:39 AM anniepoo: but blinky is def a good thing!
12:40 AM rue_house: I have 18 programs under my belt with no debugger
12:40 AM anniepoo: well, I'm not a fan of making life hard
12:40 AM anniepoo: I'd like to get peripherals up
12:41 AM anniepoo: understand how the !(*#^$235 timers work
12:41 AM anniepoo: get gdb up
12:41 AM rue_house: hold on
12:41 AM anniepoo: 8cD
12:41 AM rue_house: http://ruemohr.org/~ircjunk/software/stm32.tgz
12:41 AM rue_house: Jak_o_Shadows, ^^^
12:42 AM rue_house: thats all my stm32 stuff so far, MOST of it is basic system tests
12:42 AM rue_house: io, interrupts, timers, adc
12:42 AM anniepoo: cool
12:42 AM rue_house: take a look over it, see what makes sense
12:42 AM anniepoo: sure
12:43 AM rue_house: after looking over a few, the plot gets pretty regular
12:44 AM anniepoo: yup
12:44 AM anniepoo: well, blinky is always the hard part
12:45 AM rue_house: the blink is the easy part, what you need to get there is the hard part ;)
12:45 AM rue_house: its like finding something your looking for, it always makes you give up on looking more.
12:46 AM anniepoo: right
12:46 AM rue_house: :)
12:46 AM rue_house: yay
12:46 AM rue_house: I corrupted you
12:46 AM rue_house: with my makefile no less
12:46 AM rue_house: it will slurp all the .c files in the dir
12:46 AM anniepoo: ??
12:46 AM rue_house: so you shouldn't need to edit it
12:46 AM anniepoo: what do you mean
12:46 AM rue_house: if you have a multi file project
12:47 AM rue_house: I usually link the libs to the current project dir
12:50 AM rue_house: see the serialADC project
12:50 AM rue_house: the HighComms lib is linked back to the library directory
12:50 AM rue_house: the makfile will compile all the .c files there, and link them all up
12:50 AM Jak_o_Shadows: sorry, had to cook something
12:50 AM rue_house: it will recompile if the .h changes
12:50 AM rue_house: Jak_o_Shadows, !!! MY SUPPER!
12:50 AM Jak_o_Shadows: thanks rue!
12:50 AM Jak_o_Shadows: yeah, anniepoo, I have a debugger
12:52 AM anniepoo: ah, very cool
12:52 AM anniepoo: Jak
12:52 AM anniepoo: I'm running out of steam for the evening
12:52 AM anniepoo: which debugger are you using?
12:52 AM rue_house: :) I just got an 8 channel, 24Mhz debugger :)
12:52 AM Jak_o_Shadows: gdb
12:52 AM anniepoo: ok, cool
12:52 AM Jak_o_Shadows: arm-none-eabi-gdb
12:53 AM anniepoo: ok, can I prevail on you for help setting it up some time here?
12:53 AM Jak_o_Shadows: yep!
12:53 AM anniepoo: tonight I'm about out of gas
12:53 AM anniepoo: 8cD
12:53 AM Jak_o_Shadows: make sure to ping me
12:53 AM rue_house: Jak_o_Shadows, this dma is too complex, I need an example that uses the dam to move a block of memory or something
12:53 AM anniepoo: ok, cool!
12:53 AM Jak_o_Shadows: aye. Maybe in a fortnight I'll get around to it?
12:53 AM Jak_o_Shadows: I'm really pushing to try and finish the joystick before I do anything else
12:54 AM rue_house: ?
12:54 AM rue_house: usb hid or reading an analog channel?
12:54 AM anniepoo: I'm ramping up to starting on the snail's innerds
12:54 AM Jak_o_Shadows: usb HID. It's mostly wiring now
12:55 AM Jak_o_Shadows: The software side infrastructure is alld one
12:55 AM rue_house: by the way, hobbyservo4 is a program that uses that current sense, and shuts down the servo if the load goes over 25%, but you have to shunt the current sense out on servo startup
12:55 AM anniepoo: 8cD
12:55 AM anniepoo: whoot
12:56 AM anniepoo: that felt good!
12:56 AM rue_house: :)
12:56 AM anniepoo: thanks Rue! Thanks Jak!
12:56 AM anniepoo: 8cD
12:57 AM rue_house: I try to keep the examples minimal
12:57 AM rue_house: there aren't any notes, so do ask.
12:58 AM rue_house: how long is my
12:58 AM rue_house: interrupt rate on a timer and stuff
01:01 AM rue_house: I hope you make great things
01:01 AM rue_house: I have no idea what to use them for first
01:01 AM rue_house: this servo thing was just a target to excersize me with them
01:02 AM rue_house: http://www.embedds.com/using-direct-memory-access-dma-in-stm23-projects/
01:02 AM rue_house: its annoying how everyone uses a lib to hide what they are up to
01:03 AM Jak_o_Shadows: yes.
01:05 AM rue_house: I dont get whats triggereing the transfer in that example
01:10 AM rue_house: haha, he says that the dma can copy the memory more than twice as fast as the processor, but did not mention it congests the buss for the processor to do things
01:11 AM rue_house: tho I'm impressed its that much faster
01:22 AM Anniepoo__: 8cD still a happy camper
01:24 AM rue_house: its got a LOT of features, you can play for quite a while
01:25 AM aberon: rue_house> haha, he says that the dma can copy the memory more than twice as fast as the processor, but did not mention it congests the buss for the processor to do things
01:25 AM aberon: hahah
01:25 AM aberon: just give me all of the cake! damn!
01:25 AM rue_house: fromt eh timing diagram, he had them transferring at the same time too
01:25 AM rue_house: so, nowonder the cpu took so long to do the transfer
01:27 AM rue_house: hmmm
01:27 AM rue_house: I know what I should do with a dma
01:27 AM rue_house: I should have a 20Hz timer, trigger a led ring, all sequenced by the dma looping a table from memory to a gpio port
01:28 AM rue_house: or just manually trigger it with software
01:29 AM aberon: im gonna need a drawing of that
01:29 AM aberon: :)
01:32 AM Anniepoo__: yes, rue, this is often an issue, the bus becomes bottleneck
01:33 AM rue_shop3: http://ruemohr.org/%7Eircjunk/not_public_dont_open/corey-slicer.tgz
01:33 AM rue_shop3: The_Jester,
01:33 AM rue_shop3: ^^
01:34 AM The_Jester: yo
01:35 AM The_Jester: we'll see if i can get this thing talking to me without too much fuss
01:36 AM The_Jester: so what have you sent me?
01:36 AM rue_house: its all the config files
01:37 AM rue_house: there is a config dir
01:37 AM rue_house: there should be all the same files somewhere on the iwndows machine
01:37 AM Jak_o_Shadows: what I want from DMA is PWM'ing a pin (LED) with a sequence
01:37 AM rue_house: Jak_o_Shadows, can you spare 256 bytes of ram?
01:37 AM Jak_o_Shadows: Quite probably?
01:37 AM The_Jester: yeah i see them there now
01:38 AM The_Jester: thank you, should be everything i need
01:38 AM rue_house: The_Jester, :)
01:39 AM rue_house: Jak_o_Shadows, tho, maintaining the values is ugly
01:39 AM rue_house: but you could do 8 channels at once
01:39 AM rue_house: ... or 16 if you wanted to...
01:39 AM rue_house: Jak_o_Shadows, real pwm, right? not servo pwm?
01:40 AM Jak_o_Shadows: I want the light to gently turn on
01:40 AM Jak_o_Shadows: so real
01:40 AM rue_house: why not just use pwm?
01:40 AM rue_house: each of the timers has 4 pwm channels
01:41 AM rue_house: not to mention software pwm
01:41 AM Jak_o_Shadows: But i'd have to change the value? to get it to do different values?
01:41 AM rue_house: oooh
01:41 AM rue_house: yea
01:41 AM rue_house: ok
01:41 AM rue_house: yea
01:41 AM Jak_o_Shadows: That's where the DMA comes in
01:42 AM rue_house: yea it could just bea hard coded table then
01:42 AM Jak_o_Shadows: yep
01:42 AM rue_house: hmmm, which is an intesting point
01:42 AM rue_house: the stm32 is fast enough to do the 60hz pwm for an inverter, the avr wasn't quite fast enough
01:44 AM The_Jester: yup loaded the config just fine..Good so far
01:45 AM rue_house: I put the calibration into it,
01:45 AM rue_house: so you dont need to run funny commands anymore
02:00 AM Anniepoo__: 8cd now imagining cool stm32 things to do
02:00 AM rue_house: do share!
02:09 AM Anniepoo__: well, Pomatia might get one
02:09 AM Anniepoo__: to control the printer and jamming gripper
02:09 AM Anniepoo__: we have some things we'd like to monitor around the shop
02:09 AM Anniepoo__: I'll probably start using them on that
02:10 AM Anniepoo__: might even think about a small social robot toy
02:12 AM Anniepoo__: if I get good at all this, I might consider building a more friendly dev environment
07:12 AM Jak_o_Shadows: joystick all wired up!
09:03 AM rue_house: I need to work out how to make a pizo a bidirectional pressure sensor
09:05 AM rue_house: maybe thats why telephones interst me so
09:05 AM rue_house: bidirectional on one wire
12:58 PM anniepoo: I remember being fascinated that phones only had 2 wires as a kid
01:42 PM mrdata_ is now known as mrdata
08:24 PM nnumerals is now known as solol
09:20 PM Anniepoo__: .
09:21 PM mrdata: ..
09:26 PM Anniepoo__: ...
10:29 PM Tom_L: ... - - - ...
10:32 PM Tom_L: .-. --- -... --- - .. -.-. ...
10:32 PM Wayward: [:19] <Tom_L> robotics
10:41 PM z64555: damnit, I need to study morse
10:53 PM Tom_L: technically i did that wrong
10:53 PM Tom_L: . - . - - - - . . . - - - - . . - . - . . . .
10:53 PM Tom_L: is what it should be
10:55 PM justan0theruser is now known as justanotheruser
11:06 PM z64555: -.-
11:06 PM z64555: I think it would be hugely impractical to try to practice code over IRC. really needs a sounder
11:09 PM Tom_L: K -.-
11:10 PM z64555: Yeah, I like how it looks like an emoticon that has the same overall message
11:11 PM Tom_L: i wonder if it's still required knowledge in some circles
11:11 PM z64555: not in amateur radio, at least
11:11 PM Tom_L: no not anymore
11:12 PM z64555: they removed the code requirement for Technician's class a few years ago
11:12 PM Tom_L: ie military pilot
11:12 PM Tom_L: etc
11:12 PM z64555: Novice class still exists, which require hm, 5wpm?
11:13 PM Tom_L: anyway, it was quiet so....
11:13 PM Tom_L: i'm off to sleep
11:13 PM z64555: g'night
11:13 PM Tom_L: that way rue can't bitch about nothing said for xxx hrs
11:13 PM zhanx: Evening as i just get home Tom_L
11:14 PM zhanx: or call me about you tom
11:14 PM Tom_L: z does military still require it?
11:14 PM zhanx: i am out now remember?
11:14 PM zhanx: but yes it does
11:14 PM Tom_L: i know you are but were
11:16 PM zhanx: broken hammer today, solid 1 piece forged. looking for a new one (will weld the old one also)
11:16 PM Tom_L: everything has a breaking point
11:17 PM zhanx: yes and it served me well for 20 bucks
11:17 PM z64555: nice
11:17 PM Tom_L: i've gone thru a few axe handles
11:17 PM z64555: what kind of hammer?
11:17 PM Tom_L: but still have the axe
11:17 PM zhanx: but 5 pound heads are rare now, they are all 3 pounds
11:17 PM Tom_L: yeah
11:17 PM Tom_L: i think i have a 5 lb one
11:17 PM Tom_L: nice size
11:18 PM z64555: my dad has a 4lb. :/
11:18 PM zhanx: z64555: 5lb with extra on on all forged handle with a cover / grip
11:19 PM z64555: huh, so the handle was metal too? pipe or rod?
11:19 PM z64555: well, forged, so likely rod
11:19 PM z64555: jeez, that would've transmit a lot of shock to your hand
11:19 PM zhanx: ten years it lasted (or so), it was all one piece
11:20 PM zhanx: not i think it was drawn for the handle. no shock almost
11:20 PM zhanx: only thing that worn out was my arm
11:20 PM z64555: lol, ye
11:20 PM z64555: *s
11:21 PM * z64555 tries to unstick his s key
11:21 PM zhanx: gonna weld it and see what happens. I think it will break again or shock my hand
11:22 PM z64555: where'd it break?
11:22 PM Tom_L: if you don't re heat treat it, it will
11:22 PM zhanx: 3/4" ish below the head
11:23 PM z64555: that's promising
11:23 PM zhanx: Tom thats is an oil dip and a rose bud
11:24 PM zhanx: but i did order a few new 3 lbs for testing tonight