#garfield Logs

Jan 31 2020

#garfield Calendar

05:22 AM Tom_L: yeah i took the night off too
09:51 PM rue_mohr: found it
09:53 PM Tom_L: it?
09:53 PM rue_mohr: the irc window
09:53 PM rue_mohr: so, I bought some HIP8041 and some IRF3205 just incase the current plan fails
09:53 PM Tom_L: not much time to do anything here
09:54 PM Tom_L: 8041?
09:54 PM Tom_L: maybe sounds familiar
09:54 PM rue_mohr: H bridge fet driver
09:54 PM rue_mohr: rifraf used one back in the day for openservo
09:54 PM Tom_L: i may have one of those
09:54 PM rue_mohr: I dont remmeber if you did one too
09:54 PM Tom_L: i got parts to make one and they're still in a bag
09:54 PM rue_mohr: hah
09:54 PM rue_mohr: irf1404?
09:55 PM Tom_L: i breadboarded something but i don't remember what it is
09:55 PM rue_mohr: I think rif sent us the fets
09:55 PM Tom_L: no, i bought mine
09:55 PM rue_mohr: its a blur
09:55 PM Tom_L: maybe i should see what's on that breadboard
09:55 PM rue_mohr: did your fpga stuff stall?
09:56 PM Tom_L: 4081a
09:57 PM Tom_L: 1404 fets
09:57 PM rue_mohr: yup
09:57 PM rue_mohr: anda tiny13
09:57 PM Tom_L: 74hc00
09:57 PM Tom_L: wtf is that for?
09:57 PM rue_mohr: dunno, it used a tiny13
09:57 PM rue_mohr: took hobby servo pulses in
09:58 PM Tom_L: i've no clue now
09:58 PM rue_mohr: .... you dont have it in a breadboard do you?
09:59 PM Tom_L: i just pulled the breadboard off the shelf and read it to you
09:59 PM rue_mohr: ... you know that was like 18 years ago?
09:59 PM Tom_L: i wouldn't begin to try it now
09:59 PM Tom_L: i'm sure wires are missing by now
09:59 PM rue_mohr: ... 18 years....
10:00 PM Tom_L: how bout that
10:00 PM rue_mohr: like +-
10:00 PM Tom_L: it's still sitting there
10:00 PM rue_mohr: tell me I'm wrong
10:00 PM rue_mohr: and its been like 8...
10:00 PM Tom_L: i've no clue now
10:01 PM Tom_L: what do you mean my fpga stuf stalled?
10:01 PM Tom_L: i've had no time last few days
10:02 PM rue_mohr: ok
10:02 PM rue_mohr: I dont know if that counts as a stall or not
10:03 PM Tom_L: i might stay up a bit.. just have to see
10:03 PM rue_mohr: so
10:03 PM Tom_L: i gotta wake up at 3 anyway
10:03 PM rue_mohr: did my method of doing the counter shed light on anything?
10:03 PM Tom_L: not to me
10:03 PM Tom_L: i think fsm is confusing
10:03 PM rue_mohr: thought the carry in my implementation might help
10:04 PM Tom_L: jt programs plc's for a living
10:04 PM rue_mohr: if things were like this -> make them like this
10:04 PM Tom_L: that's more ladder logic though
10:04 PM rue_mohr: {old + new} = things were like this
10:04 PM rue_mohr: so
10:05 PM rue_mohr: if the old stuff + new stuff looks like this -> change outputs to that
10:05 PM rue_mohr: ?
10:06 PM rue_mohr: the counter can be done with value += 1
10:06 PM rue_mohr: but I think the alu it implements to do that takes more resources
10:06 PM rue_mohr: the state machines bounds the range more clearly for it
10:06 PM rue_mohr: and gets implemented in one lookup table
10:06 PM Tom_L: i wish i could figure out the scope part of webpack
10:07 PM Tom_L: i'd like to compare some of this stuff
10:07 PM rue_mohr: I'm sure it executes in the same timeframe
10:07 PM rue_mohr: but that fsm might take less base elements to implement
10:07 PM Tom_L: you got plenty to spare
10:08 PM rue_mohr: I know, but if you can make light lego blocks you can lift more of them
10:08 PM rue_mohr: the internal lookup blocks can take up to 6 bits input
10:09 PM Tom_L: well sure but i'm just trying to figure it all out at this point
10:09 PM rue_mohr: so anytime you can phrase something in 6 bit lookup tables, your helping out (I think)
10:09 PM rue_mohr: I have to add more pins for the encoder
10:09 PM rue_mohr: that display uses all 10
10:10 PM rue_mohr: a,b,c,d,e,f,g c1,c2,c3
10:10 PM Tom_L: yeah i'm kinda glad i went the route i did on the board for now
10:10 PM rue_mohr: not sure how many I should add
10:10 PM Tom_L: i don't get enough time to fiddle that much and don't wanna spend it breadboarding crap
10:10 PM rue_mohr: maybe another 10
10:12 PM Tom_L: i did find another 7seg display i had
10:12 PM Tom_L: i had it wired to somthing at one point
10:12 PM rue_mohr: heh
10:21 PM Tom_L: i'm sure it was an old one and not that efficient
10:33 PM Tom_L: where's your latest rendition?
11:01 PM rue_shop2: of the code?
11:02 PM rue_shop2: just setting up to solder on more pins
11:03 PM Tom_L: yeah
11:03 PM rue_shop2: oh no, I lost my pinout file
11:03 PM rue_shop2: pdf maybe?
11:03 PM Tom_L: i'm nodding off here, may not last too long
11:03 PM Tom_L: your pinout was a challenge to make iirc
11:04 PM rue_shop2: https://paste.debian.net/1128591/
11:04 PM rue_shop2: na I think I found it
11:05 PM rue_shop2: ok I'm on U...
11:05 PM rue_shop2: 8
11:06 PM rue_shop2: yup I can add another 10
11:07 PM rue_shop2: oh, this was $28
11:07 PM rue_shop2: ouch
11:07 PM Tom_L: what was?
11:11 PM rue_shop2: my fpga board
11:11 PM rue_shop2: ok, 10 more pins
11:12 PM Tom_L: i thought it was 19
11:12 PM Tom_L: for 6 more you could have had mine
11:15 PM rue_shop2: ok, added
11:17 PM rue_shop2: ok, I need to change the counter to have an upclock and a downclock
11:17 PM rue_shop2: then I can just plug the encoder into it
11:22 PM Tom_L: is yours usb powered?
11:22 PM Tom_L: 5v in
11:22 PM rue_shop2: yes
11:22 PM rue_shop2: I have a tap off the 5V comming in
11:22 PM rue_shop2: and it goes to the breadboard
11:22 PM Tom_L: u8 has 2 5v pins
11:23 PM rue_shop2: yup
11:23 PM Tom_L: as does u7
11:23 PM rue_shop2: I grabbed the gnd and 5V beside the port I'm using
11:24 PM Tom_L: i used a 10k pullup and maybe 330 ohm to the pins
11:24 PM rue_shop2: I'll use the fpga internal ones
11:24 PM Tom_L: they're weak
11:28 PM Tom_L: you can for now but the mesa guy said he wouldn't rely on them
11:29 PM rue_shop2: !
11:29 PM rue_shop2: the encoders on this motor have pullups
11:29 PM Tom_L: must be open collector
11:30 PM rue_shop2: nope looks like full drive
11:30 PM rue_shop2: but high is 4V
11:30 PM Tom_L: better stick a R between the pins
11:32 PM rue_shop2: pondering
11:33 PM rue_shop2: I think a shottkey diode
11:33 PM Tom_L: what size encoder is it?
11:33 PM rue_shop2: its the one on that motor
11:33 PM rue_shop2: no idea
11:33 PM Tom_L: heds
11:33 PM rue_shop2: QEDS5923
11:33 PM Tom_L: mine were 9000 series
11:34 PM Tom_L: pretty close to the same thing
11:34 PM Tom_L: i think somebody bought them out but they were HP iirc
11:36 PM rue_shop2: huh, it looks like the decoder type makes no difference on the resources
11:37 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/pdf/MC68332/heds9000.pdf
11:37 PM Tom_L: found it
11:37 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/pdf/MC68332/hedl550x.pdf
11:39 PM rue_shop2: ok, how then do I make this an updown counter...
11:40 PM Tom_L: x[7:0] y[0:7]
11:40 PM Tom_L: maybe
11:40 PM Tom_L: maybe not
11:41 PM Tom_L: that's more endian i think
11:41 PM rue_shop2: I'd expect that to be endian
11:41 PM rue_shop2: but if I add a bunch more edges its gonna spaz at me I'm sure of it
11:41 PM Tom_L: heh
11:42 PM rue_shop2: hmm
11:43 PM rue_shop2: in the rtl schematic
11:43 PM rue_shop2: it used a "q" for the decade counter
11:46 PM rue_shop2: hmmmm
11:46 PM rue_shop2: in the tech schematic, its got a mess of small luts
11:47 PM rue_shop2: what this seems to imply
11:48 PM rue_shop2: is that I need to code my fsm better
11:48 PM Tom_L: i gotta get some sleep...
11:49 PM rue_shop2: clkup, clkdown, reset, A, B, C, D
11:49 PM rue_shop2: 7 inputs
11:49 PM rue_shop2: idea
11:53 PM rue_shop2: oh this will require some typing
11:57 PM Tom_L: i'll check in in the morning
11:57 PM Tom_L: gnite
11:58 PM rue_shop2: oh no, now I need a borrow