#robotics Logs
Dec 28 2019
#robotics Calendar
12:58 AM -!- #robotics mode set to +o by ChanServ
01:04 AM rue_mohr changed topic of #robotics to: 'If you ask a question, you must wait for the answer. | if you are muted see: http://git.io/zrffqw | P is for photoelectric.'
01:04 AM -!- #robotics mode set to -o by rue_mohr
01:04 AM rue_mohr: zhanx, ok?
01:08 AM rue_mohr: well
01:09 AM rue_mohr: so many directions of thigns to work on
01:10 AM zhanx: my forced break is killing me
02:09 AM Jak_o_Shadows: I need to start designing the D-Sub connectosr for serial into projects
02:09 AM Jak_o_Shadows: as opposed to always embedding a CH340
02:17 AM zhanx: pogo pins or a mock edge connector for usb
02:17 AM zhanx: usb of course going to your serial chip
02:18 AM rue_shop3: ok, I got the solinoid timer working for the water dispencer
02:19 AM rue_shop3: so, technically, I just need a case
02:19 AM rue_shop3: Jak_o_Shadows, are you having issues wit the ch340?
02:20 AM zhanx: screw the rule, I am printing now
02:20 AM rue_shop3: rule?
02:20 AM zhanx: 1 week off from all projects to chill
02:20 AM rue_shop3: heh
02:20 AM zhanx: 3 days and i got bored
02:21 AM zhanx: motor couplers printing now. case is next for the boards and wires
02:23 AM zhanx: next to ebay bunch of cheap servo's to test leg code and foot placement
02:23 AM rue_shop3: :)
02:25 AM zhanx: 10 pack will work
02:30 AM zhanx: rue_shop3, did i tell you I got a wire feed and stick welder for free, lincoln's
02:37 AM Jak_o_Shadows: nah, the ch340 works pretty well for me all the time
02:39 AM rue_shop3: zhanx, and they work?
02:39 AM rue_shop3: playing with fpga stuff :)
02:40 AM rue_shop3: thanks Tom_L
02:40 AM zhanx: rue_shop3, yep, very easy fixes
02:40 AM rue_shop3: cool
02:40 AM rue_shop3: I have a wirefeed thats alum transformer with bad connections
02:40 AM zhanx: the wire feed, i had to cut the wire out of. it was a mess around the spool
02:41 AM rue_shop3: its funny
02:41 AM zhanx: the stick, cables where "bad" cut the 2" off the ends and removed the worn out casing area
02:41 AM rue_shop3: you can define an unused signal to a pin, it freaks out
02:42 AM zhanx: also got 10 pounds of rod, i need to bake to dry them out
02:44 AM rue_shop3: nice one tho!
02:44 AM rue_shop3: bang togethor some tables and sell 'em
02:45 AM rue_shop3: bedframe and paint
02:45 AM zhanx: true
02:45 AM rue_shop3: just 4
02:45 AM rue_shop3: call them apocalypse tables
02:45 AM rue_shop3: put googly eyes on them
02:45 AM zhanx: lol
02:45 AM rue_shop3: see how much new rod it pays for
02:47 AM rue_shop3: so
02:47 AM rue_shop3: some things are bothering me about the fpga stuff
02:47 AM rue_shop3: I should be able to define a moudle, then instanciate as many of them as I want, specifying what pins they use
02:48 AM rue_shop3: so far it doens't work like that
02:49 AM zhanx: never used a fpga, so helping i am out on that
02:49 AM rue_shop3: yea, I'm just talkin
02:49 AM zhanx: but you think you could do class xyz and call the pins and modules with it
02:50 AM zhanx: as a start up thing
02:50 AM rue_shop3: class, hmm, what we have so far are modules
02:51 AM rue_shop3: maybe thats the difference
02:52 AM zhanx: just an idea, i can't say either way on it
02:52 AM zhanx: but that would make sense to me
02:57 AM rue_shop3: it does to me too
02:57 AM rue_shop3: a module being the literal reals and something else being the abstract "stamper"
02:57 AM zhanx: exactly
02:59 AM rue_shop3: Tom_L, this worked: NET "button1" LOC = T8 | IOSTANDARD = SDIO | PULLUP;
03:00 AM rue_shop3: the other confusing thing, is that the file that says what signal is connected to what pin, and using what electrical protocol, doesn't say anything about it being an input or output
03:01 AM zhanx: is it duel from the start?
03:01 AM rue_shop3: I think they default to inputs w/ pulldown iirc reading it right
03:02 AM rue_shop3: oh great, every file uses a differnt comment indicator
03:09 AM rue_shop3: output Y1, Y2, Y3, Y4, Y5, Y6;
03:09 AM rue_shop3: reg Y1, Y2, Y3, Y4, Y5, Y6;
03:09 AM rue_shop3: it looks like all outputs have to be registers
03:09 AM rue_shop3: this bothers me
03:10 AM rue_shop3: I suppose an fpga must be synchronous
03:10 AM rue_shop3: unlike a cpld it cant not be synchronous
03:13 AM rue_shop3: oh wait
03:13 AM rue_shop3: https://en.wikibooks.org/wiki/Programmable_Logic/Verilog_Operators
03:18 AM rue_shop3: at 4 minutes to compile EVERY TIME this is gonna cause me to drink a LOT of tea
03:18 AM rue_shop3: damn, it worked
03:18 AM rue_shop3: flashing/testing
03:19 AM rue_shop3: yup
03:19 AM rue_shop3: so, "registers" and "always -- end" are related
03:23 AM rue_shop3: cooool
03:23 AM rue_shop3: Tom_L, :
03:24 AM rue_shop3: https://paste.debian.net/1122928/
03:28 AM rue_shop3: heh, you can or things by defining the interconnect to auto-or the signals
03:29 AM rue_shop3: http://referencedesigner.com/tutorials/verilog/verilog_60.php
03:31 AM rue_shop3: hahaha coool
03:31 AM rue_shop3: I'm gonna run out of things I can do with just 2 inputs
03:51 AM rue_shop3: Tom_L, https://paste.debian.net/1122929/ weeeeee
03:54 AM rue_shop3: ok, I coloured the tops of the buttons, renaming them bluebtn and redbtn
03:56 AM rue_shop3: wire, wand, wor, tri, triand, trior, tri0, tri1, trireg, supply0, supply1, uwire
03:56 AM zhanx: rue_shop3, i love my 3d printer :D
03:57 AM rue_shop3: :)
03:58 AM rue_shop3: sorry I couldn't get you addicted earlier
03:58 AM zhanx: 2 years later you are like sorry
03:58 AM rue_shop3: I tried
03:58 AM rue_shop3: you wouldn't start the damn box
03:58 AM zhanx: true
03:59 AM rue_shop3: I think what I like about them most
03:59 AM zhanx: ok 40 9g servo's ordered
03:59 AM rue_shop3: it when I'm being completely unproductive, but something is printing so I feel ok
03:59 AM zhanx: mini spider bot!
04:01 AM rue_shop3: ah, if its a 1:1 connection you can use a uwire
04:05 AM rue_shop3: http://www.asicguru.com/verilog/tutorial/modules/59/
04:05 AM rue_shop3: ah
04:05 AM rue_shop3: I'm at top level, thats why i cant cookie-cutter
04:21 AM zhanx: rue_shop3, question
04:22 AM zhanx: if i cast these motor mounts with stainless in them how does that work
04:24 AM rue_shop3: what!?
04:24 AM rue_shop3: oh, you mean like capture the head of a bolt?
04:24 AM zhanx: yep
04:24 AM rue_shop3: I dont think its large enough for the expansion co-effs to make a diff
04:25 AM rue_shop3: if it internally strips your screwed :)
04:25 AM rue_shop3: gotta love unidirectional SS
04:26 AM rue_shop3: omg it works?
04:27 AM rue_shop3: omg it worked
04:28 AM rue_shop3: Tom_L, https://paste.debian.net/1122930/
04:28 AM rue_shop3: zhanx, ^^ check that one out
04:28 AM rue_shop3: I made a generic module
04:28 AM rue_shop3: oh I dont think I needed the wire
04:29 AM rue_shop3: ok, its 2am and I'm getting dizzy
04:29 AM rue_shop3: some supper might be in order
04:29 AM rue_shop3: oh cool, its taking it
06:40 AM Tom_L: what's it do?
08:34 AM polprog: rue doin fpgas?
08:34 AM polprog: mine still have not come :(
10:07 AM Tom_L: neither has mine
01:57 PM rue_mohr: Tom_L, did you see those 3?
01:57 PM rue_mohr: non-register based, and a selector
01:57 PM rue_mohr: I was having great fun last night
01:58 PM rue_mohr: I learned lots, I think I forgot more
01:59 PM rue_mohr: then I discovered how to insert a character into a string using asprintf
02:36 PM Tom_L: nice
02:36 PM Tom_L: i saw the vhdl but don't think it does anything yet
02:41 PM rue_mohr: those all work
02:47 PM Tom_L: cool
02:48 PM Tom_L: did you get my sample?
02:51 PM Tom_L: so redbtn lights led0 and bluebtn lights led1?
03:27 PM SpeedEvil is now known as Guest19984
04:08 PM rue_mohr: not yet
06:06 PM Tom_L: well get with it man!
06:07 PM Tom_L: interesting the way you coded that
06:42 PM Tom_itx is now known as Tom_L
07:20 PM Jak_o_Shadows: So what particular FPGA are we talking about anyway?
07:20 PM Tom_L: xilinx spartan6
07:21 PM Tom_L: rue's is a little bigger than the one i'm getting but in the same family
07:22 PM Jak_o_Shadows: Is there a little dev board or something?
07:22 PM Tom_L: it would take quite a bit to fill either one up
07:22 PM Tom_L: yes
07:22 PM Tom_L: we both got different ones
07:23 PM Tom_L: i wanted stuff on mine because i lack piles of junk laying around to scavange from
07:23 PM Tom_L: https://www.ebay.com/itm/XC6SLX9-Starter-Board-Xilinx-Spartan-6-FPGA/112230313780?_trkparms=aid%3D111001%26algo%3DREC.SEED%26ao%3D1%26asc%3D20160727114228%26meid%3D9f690aab3ce543ae88d19428cfb287aa%26pid%3D100290%26rk%3D2%26rkt%3D4%26mehot%3Dpp%26sd%3D293289484422%26itm%3D112230313780%26pmt%3D0%26noa%3D1%26pg%3D2060778&_trksid=p2060778.c100290.m3507
07:23 PM Tom_L: i got that one
07:23 PM chisight: what are you using to code for them? what are you using to program them?
07:24 PM Tom_L: https://www.aliexpress.com/item/32851234772.html?spm=a2g0o.productlist.0.0.60f71bb0dSx5te&algo_pvid=45dab2bf-1d9c-4f42-af07-a19999f483b9&algo_expid=45dab2bf-1d9c-4f42-af07-a19999f483b9-4&btsid=3cc5018b-7665-4cd1-bf7a-5cb9f01f1b0b&ws_ab_test=searchweb0_0,searchweb201602_2,searchweb201603_53
07:24 PM Tom_L: i think rue got that one
07:24 PM Tom_L: xilinx webpack
07:24 PM Tom_L: i'm learning both verilog and vhdl
07:25 PM Tom_L: you program them via jtag
07:25 PM Jak_o_Shadows: At work, a team member is using a crazy big FPGA - one of the ultrascales I think
07:25 PM Tom_L: https://www.ebay.com/itm/XILINX-Platform-Download-Cable-USB-Programmer-FPGA-CPLD-JTAG-CPLD-C-Mod-XC2C64A/231971278480?epid=1524640551&hash=item360290ce90:g:rZYAAOSwl9BWGjcF
07:26 PM Tom_L: i got that jtag but paid less
07:26 PM Tom_L: i'm using the spartan6 on the boards for my mill
07:26 PM Tom_L: for running linuxcnc
07:27 PM chisight: what do you compile your code with? will that run under linux?
07:27 PM Jak_o_Shadows: I wonder if I could do anything fancy with the FPGA and my SDR transceiver
07:27 PM Tom_L: dunno why not
07:27 PM Tom_L: they're 3.3v io
07:28 PM Tom_L: i've got an old cpld dev board too
07:28 PM Tom_L: i've been using it until i get the new one
07:29 PM Tom_L: fpga don't retain the code, they load from flash
07:29 PM Tom_L: that's why most boards you see will have 2 chips or more
07:30 PM Tom_L: cpld store the program in the chip
07:31 PM Jak_o_Shadows: I think the trick would be that I'd have to avoid doing anything too closely related to work
07:32 PM Tom_L: do you code them at work?
07:32 PM Jak_o_Shadows: No - I'm a bit higher level.
07:32 PM Jak_o_Shadows: Other people code them, I figure out what you should do with them in the first place.
07:33 PM Jak_o_Shadows: But some of the techniques and such. Also, I am pretty iffy about repeating some of the specific problem space.
07:33 PM Jak_o_Shadows: It's be pretty neat to make a GPS receiver
07:34 PM Tom_L: couple sites have some pretty good examples
07:35 PM Tom_L: http://www.xess.com/projects/
07:37 PM Jak_o_Shadows: ha. Tom_L, you could totally jam or spoof GPS with that board.
07:37 PM Jak_o_Shadows: I think
07:38 PM Tom_L: i've got some old gps modules i got from old vehicle tracking systems
07:40 PM Jak_o_Shadows: I need to buy some GPS antenna and a receiver or two
07:43 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/SBC/inside_control.jpg
07:43 PM Tom_L: got 4-6 of those units
07:44 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/SBC/GPS/GPS_Data1.jpg
07:44 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/SBC/gps.jpg
07:44 PM Tom_L: that's the module
07:44 PM Tom_L: they're pretty old
07:55 PM Jak_o_Shadows: that reminds me.
07:56 PM Jak_o_Shadows: https://www.dhgate.com/product/yanhua-mb-can-filter-18-in-1-odometer-adjustment/412673893.html - STM32f1 chips with CAN connectors
07:56 PM Jak_o_Shadows: Admittedly I've seen them cheaper I think
07:57 PM Jak_o_Shadows: and I'm not sure about reprogrammability
08:01 PM Jak_o_Shadows: https://www.aliexpress.com/item/4000517063107.html?spm=a2g0o.productlist.0.0.3576195dHIE5BP&algo_pvid=5700a6f5-a2d1-4967-bbab-86bddd49c6d8&algo_expid=5700a6f5-a2d1-4967-bbab-86bddd49c6d8-0&btsid=d4373165-075a-49b7-9caf-a8fedc63144b&ws_ab_test=searchweb0_0,searchweb201602_2,searchweb201603_53 is a decent price
08:02 PM Jak_o_Shadows: Not a bad price for a 3x2cm PCB with the STM, two CAN transceivers, and a voltage reg
08:03 PM Tom_L: rolling back the odometer?
08:03 PM Jak_o_Shadows: well, that's the normal use for that
08:04 PM Jak_o_Shadows: But i'd write my own firmware - be cool to log stuff
08:04 PM Jak_o_Shadows: Or use it as a CAN inspector
08:04 PM Jak_o_Shadows: albeit it doesn't have much io...
08:29 PM zhanx: chisight, that was like really? go in there ask questions about a completely different system. crazt
08:31 PM chisight: happens all the time.
08:31 PM chisight: half the time someone spends hours trying.
08:31 PM zhanx: not me
08:32 PM chisight: once they get the bootloader installed, it's quite possible that it will actually work. no clue which board package but it's possible.
08:33 PM zhanx: should work, the m3 is supported
08:34 PM chisight: there is a bunch of unrelated hardware there. they'd have to figure that out too.
08:34 PM zhanx: part of the adventure
08:34 PM chisight: yep
09:52 PM Jak_o_Shadows: hmmmm
09:52 PM Jak_o_Shadows: how am I making this interface look
10:03 PM chisight: you're going to make it look excellent.
10:03 PM chisight: not user friendly.
10:03 PM chisight: it should blink 12:00 if not set up.
10:04 PM chisight: not run some fucking wizard that sucks.
10:11 PM Jak_o_Shadows: It's more a programmatic interface
10:12 PM Jak_o_Shadows: I'm kinda of the opinion that if you have to read the code to understand how the config file format works, or how a GUI does things
10:12 PM Jak_o_Shadows: You may as well just leave it in damn code, and remove some interface steps and complexity
10:12 PM chisight: sounds good to me.
10:37 PM Jak_o_Shadows: huhhh
10:38 PM Jak_o_Shadows: how do I handle this with a queue
11:39 PM Jak_o_Shadows: stuff the queue
11:39 PM Jak_o_Shadows: and the threading
11:39 PM Jak_o_Shadows: Rue - https://github.com/Jak-o-Shadows/stm32-PCA9685/blob/pureServo/hardware/code/gui.py GUI for setting servo position values. Because I am not entirely compatible with you, you probably need to modify lines 32->35
11:39 PM BitEvil is now known as SpeedEvil
11:40 PM Jak_o_Shadows: Probs best to just clone the whole repo
11:41 PM Jak_o_Shadows: Has a cache mode and a immediate mode
11:41 PM * zhanx clones it also
11:42 PM Jak_o_Shadows: oh hell, people actually reading my code
11:43 PM zhanx: Jak_o_Shadows, looks good enough for me
11:44 PM Jak_o_Shadows: Thanks
11:44 PM zhanx: minor edits for me
11:44 PM Jak_o_Shadows: THe problem is with home projects is that I work on over teh c ourse of years
11:44 PM zhanx: 32-35 of course
11:44 PM Jak_o_Shadows: Yeah - it just sends the value
11:45 PM zhanx: yep
11:45 PM Jak_o_Shadows: My uC code is dumb, and just sets the timer end point at that.
11:45 PM zhanx: i am semi taking rue's code, my code, maybe some of that to the u
11:45 PM zhanx: uC
11:45 PM zhanx: I am a ways out on it still
11:46 PM zhanx: but i might be closer in 30 days
11:46 PM zhanx: depending on shipping
11:46 PM Jak_o_Shadows: aha
11:46 PM Jak_o_Shadows: classic
11:46 PM zhanx: each leg is getting 8 servo's
11:47 PM Jak_o_Shadows: Nice
11:47 PM zhanx: I have 10 on the way right now
11:47 PM Jak_o_Shadows: I need to "calibrate" my servos
11:47 PM Jak_o_Shadows: which, actually, the gui helps with
11:47 PM * Jak_o_Shadows looks for something to label servos with
11:48 PM zhanx: post it notes
11:48 PM Jak_o_Shadows: aha. I was thinking sticker dots
11:48 PM zhanx: cheaper for post it notes and cut them
11:58 PM Jak_o_Shadows: ended up with the label maker
11:58 PM Jak_o_Shadows: i need to buy sticker dots though