#garfield Logs

Oct 15 2021

#garfield Calendar

07:41 AM Tom_L: hi
07:49 AM Tom_L: why do the tests vary so much?
08:47 AM rue_mohr: its REALLY hard to do, you have a tone in each ear and you can only adjust the volume of one to make the volumes match
12:07 PM Tom_L: huh
01:46 PM aandrew: the testing I did was more of a tone of freq f and amplitude a, left or right ear, and randomized but covers all frequencies and amplitudes
01:47 PM aandrew: when you heard it you pressed a button, and the system kept track of what the lowest amplitude you could hear of a given f for each ear and gave you a nice spectral response
01:48 PM aandrew: after they did it in easy mode they would then mix the tones with varying amplitudes of white noise
07:36 PM rue_mohr: so, lets say it was a left ear test
07:36 PM rue_mohr: the right ear was given a tone at a reasonable volume to hear
07:37 PM rue_mohr: the left ear was set to a low freq, pre-adjusted byt eh suer to be the same percievable volume as the right
07:37 PM rue_mohr: then the freq was slowly swept up, with the user able to control the left ear volume
07:37 PM rue_mohr: told to keep it the same as the right ear
07:37 PM rue_mohr: the system recorded the freq, and the volume they set it to
07:38 PM rue_mohr: that "hear a tone, press a button" is garbage if you ask me
07:38 PM rue_mohr: low data points and it wont catch other issue
07:38 PM rue_mohr: s
08:12 PM rue_mohr: gonna doze off in my chair now
08:22 PM rue_mohr: after that phone call anyhow
08:30 PM Tom_L: looking at wiring
09:07 PM Tom_L: don't think the fpga pin by itself has enough current to drive the opto fully
09:07 PM Tom_L: i could have reversed the logic and tied the opto to +5 and used the fpga pin as gnd but i didn't wanna mess with it that much
10:29 PM Tom_L: i think i'm gonna leave that control cabinet be
10:29 PM rue_mohr: could you add another daughtercard?
10:29 PM Tom_L: started poking around and things started acting weird (the pendant specifically)
10:29 PM Tom_L: i could but no place to mount it
10:30 PM rue_mohr: hmm
10:30 PM Tom_L: i don't think the fpga pin has enough drive for the opto
10:30 PM Tom_L: so it seemed
10:30 PM rue_mohr: its running at 3.3, right?
10:30 PM Tom_L: 5v tolerant 3.3v i think
10:31 PM rue_mohr: k
10:31 PM rue_mohr: and you only need outputs,
10:31 PM Tom_L: i think it sinks more than it sources
10:31 PM Tom_L: yeah
10:31 PM rue_mohr: ah what does the cat want...
10:31 PM rue_mohr: ULN2803
10:31 PM Tom_L: i figured out how i can do it but it didn't want to cooperate
10:32 PM rue_mohr: or even 74hc544 would drive optos ok, cause the optos are nice
10:32 PM rue_mohr: you can get at the fpga pins right?
10:32 PM rue_mohr: whats the connector look like?
10:33 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/rue/Control2.jpg
10:33 PM rue_mohr: I know a guy who could fire you off a 1-off pcb
10:33 PM Tom_L: that ribbon is the 2nd connector
10:33 PM Tom_L: the first one goes to the board beside it
10:33 PM Tom_L: most of what is on the ribbon is switches
10:33 PM Tom_L: inputs
10:34 PM rue_mohr: you should almost have the cables to some dupont ends right to the header
10:34 PM rue_mohr: every second line is ground?
10:34 PM Tom_L: yep
10:35 PM Tom_L: iirc there is one hot wire
10:36 PM rue_mohr: did the jacket on the cap, on the power supply, to the far left always look like that?
10:36 PM rue_mohr: the little dc-dc
10:36 PM Tom_L: they're all that way
10:37 PM Tom_L: dented?
10:37 PM rue_mohr: weird
10:37 PM Tom_L: yeah
10:37 PM rue_mohr: short jacket
10:37 PM Tom_L: i'm not sure which one you mean
10:37 PM rue_mohr: the little dc-dc infront of the power breakout board
10:38 PM Tom_L: oh
10:38 PM Tom_L: iirc that's the 5v supply
10:38 PM Tom_L: either the 5 or 10 for the spindle
10:38 PM Tom_L: there are 2 of them there
10:38 PM Tom_L: one is behind it
10:38 PM Tom_L: or below the other one, i forget
10:39 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/rue/Control3.jpg
10:39 PM Tom_L: below
10:39 PM rue_mohr: cant make it out, is there another unused header to the right of your breakout cable on the fpga?
10:39 PM Tom_L: yep
10:39 PM Tom_L: that fpga has 72 io
10:40 PM rue_mohr: its a 50? pin header?
10:40 PM Tom_L: i think my db25 is going on me too
10:40 PM Tom_L: i may have to do something with it soon
10:40 PM Tom_L: 50 yes
10:40 PM rue_mohr: ok
10:40 PM rue_mohr: so, how about a little baord that end-plugs into that other header and gives you... 16? outputs?
10:41 PM rue_mohr: not sure on the fan clearance
10:41 PM Tom_L: i could use the 2nd one and wire the switches into it as well
10:41 PM Tom_L: they're not protected as they are
10:42 PM rue_mohr: oh, maybe 16 opto output and 9 direct lines for input?
10:42 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/configs/NEW_MILL_SHOP_2.8.1/New_Mill_IO_Pinout.pdf
10:42 PM Tom_L: the 2nd column is those IO on the main board
10:42 PM Tom_L: P2-1 is plug 2 pin 1
10:43 PM Tom_L: then the 4th and 5th column is the headers on the daughter card
10:44 PM Tom_L: IO23 was the one i was messin with
10:45 PM Tom_L: it's actually connected to the inverted side of the output on it P3-23
10:45 PM Tom_L: not 22
10:45 PM rue_mohr: er, are you using p2-31 -> p2-47?
10:46 PM Tom_L: switches
10:46 PM rue_mohr: k
10:46 PM rue_mohr: hmm
10:46 PM Tom_L: 37 is dead
10:46 PM rue_mohr: I see
10:46 PM Tom_L: i had to move a wire off it
10:46 PM rue_mohr: P3-*?
10:47 PM Tom_L: P3 on the main board is unused
10:47 PM rue_mohr: we could just make a card to break you out P2-1 ->P2-11 for opto outputs?
10:47 PM rue_mohr: yea
10:47 PM Tom_L: lemme look
10:47 PM rue_mohr: then you would't have to mess with existing
10:47 PM rue_mohr: and you could get 8 or 16 lines
10:47 PM Tom_L: yeah it looks that way
10:48 PM Tom_L: but i don't want to split that ribbon
10:48 PM rue_mohr: P3 is the next connector over, right?
10:48 PM Tom_L: on the main board yes, by the fan
10:48 PM rue_mohr: yea
10:48 PM rue_mohr: how about we make a card for that, and you leave p2 alone?
10:49 PM Tom_L: i only need one more output
10:49 PM Tom_L: but it needs to be driven
10:49 PM rue_mohr: *now*
10:49 PM Tom_L: no
10:49 PM Tom_L: everything else i'd put on it is wired
10:50 PM rue_mohr: then you have an output for christmas lights next year
10:50 PM Tom_L: i'd drop the sserial pins and move the A axis step/direction to 22 23
10:50 PM Tom_L: P1-45 P1-47
10:50 PM rue_mohr: but we can make a card for p3 and just ahve it all on that
10:52 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/configs/NEW_MILL_SHOP_2.8.1/Notes/pinout.txt
10:52 PM Tom_L: that should be pretty up to date
10:52 PM Tom_L: as far as pin functions
10:52 PM Tom_L: 16..18 or thereabouts are for the spindle that's why they show nothing
10:53 PM rue_mohr: ok so
10:54 PM Tom_L: one of those 50 pins carries 5v too
10:54 PM rue_mohr: end-plugin card, for p3, with 16 outputs and 8 direct lines
10:54 PM Tom_L: i forget which one
10:54 PM rue_mohr: 5V or 3V?
10:55 PM Tom_L: 5
10:55 PM rue_mohr: huh
10:55 PM Tom_L: pretty sure
10:55 PM rue_mohr: 49
10:55 PM rue_mohr: guess
10:55 PM Tom_L: http://www.mesanet.com/pdf/parallel/7i90hdman.pdf
10:55 PM rue_mohr: ok, so
10:56 PM rue_mohr: :)
10:56 PM rue_mohr: cat if licking my breakfast bowl
10:57 PM Tom_L: 49 is power
10:57 PM Tom_L: P9..11
10:58 PM Tom_L: it's jumpered for 5v tolerant
10:59 PM rue_mohr: so, you need the outputs for running A to be sourcing or sinking?
10:59 PM Tom_L: http://store.mesanet.com/index.php?route=product/product&product_id=233&search=7i31
10:59 PM Tom_L: sourcing i think
11:00 PM rue_mohr: k
11:00 PM Tom_L: that would be the 5v right?
11:01 PM rue_mohr: open to whatever you want
11:01 PM Tom_L: i'm tired
11:02 PM Tom_L: i think i'm gonna go to sleep
11:02 PM rue_mohr: doyou know if a regular opto is fast enough?
11:02 PM Tom_L: i'm not sure what he uses for optos
11:02 PM Tom_L: they need to be fairly quick
11:02 PM rue_mohr: like a....
11:02 PM Tom_L: or buffers whatever...
11:03 PM rue_mohr: huh, I forgot my opto part numebrs
11:03 PM rue_mohr: 4N137
11:03 PM rue_mohr: ?
11:03 PM Tom_L: wouldn't mean much to me anyway
11:03 PM rue_mohr: 138
11:03 PM rue_mohr: I'll look
11:03 PM rue_mohr: whats your max step freq?
11:03 PM rue_mohr: like 2kHz?
11:03 PM Tom_L: probably
11:03 PM Tom_L: the servo thread may be 1khz
11:04 PM Tom_L: i'd have to look
11:04 PM Tom_L: it's in the config
11:04 PM rue_mohr: oh I'm thinking 6N137, thats crazy fast but $$
11:04 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/configs/NEW_MILL_SHOP_2.8.1/new_mill.ini
11:05 PM Tom_L: SERVO_PERIOD = 1500000
11:05 PM Tom_L: ns
11:05 PM Tom_L: but the mesa card runs at 16mhz iirc
11:05 PM rue_mohr: units 1/1500000ns Hz
11:05 PM rue_mohr: * 666.66667
11:06 PM Tom_L: and the mesa card generates the steps
11:06 PM Tom_L: i dunno how it's divided down
11:07 PM Tom_L: gnite
11:08 PM rue_mohr: huh, no optos in any of this junk
11:10 PM Tom_L: you got enough projects as it is...
11:10 PM rue_mohr: pc817
11:10 PM rue_mohr: its not an 'x'n---
11:10 PM rue_mohr: thats why I couldn't find it
11:11 PM rue_mohr: 80khz
11:11 PM rue_mohr: sure
11:11 PM rue_mohr: ok, I think I have what I need
11:13 PM rue_mohr: may require 4 dimentional space to make it all fit...
11:13 PM rue_mohr: oh, and there it is
11:14 PM rue_mohr: I also need to make breakfast
11:14 PM rue_mohr: supper
11:14 PM rue_mohr: heh
11:16 PM rue_mohr: polprog, is scsi 50 pin?
11:16 PM rue_mohr: I think so
11:16 PM rue_mohr: your not polprog
11:17 PM rue_mohr: but I answered first
11:17 PM rue_mohr: given
11:17 PM rue_mohr: so now I'm the new polprog
11:17 PM rue_mohr: I'm not sure thats sound logic
11:17 PM rue_mohr: it doesn't have to be
11:18 PM rue_mohr: its 0.1 spacing
11:18 PM rue_mohr: we could use smt chips
11:18 PM rue_mohr: do we have smt 74hc544?
11:18 PM rue_mohr: we must
11:18 PM rue_mohr: ok, but dont we kinda need to be sure?
11:19 PM rue_mohr: no, it doesn't work like that
11:19 PM rue_mohr: ok, but we need to fit 16 optos
11:19 PM rue_mohr: or 8
11:19 PM rue_mohr: or 16
11:19 PM rue_mohr: he would be fine with 8
11:19 PM rue_mohr: we shoot for 16, fallback to 8
11:19 PM rue_mohr: the point was that were 25 pins wide on the card
11:20 PM rue_mohr: we have 16 optos, at 2 pins wide
11:20 PM rue_mohr: thats 32 pins
11:20 PM rue_mohr: see why we fall back to 8?
11:20 PM rue_mohr: which is 16 pins, almost the width of the card
11:20 PM rue_mohr: unless I use the back
11:20 PM rue_mohr: you wooudn't
11:20 PM rue_mohr: I might
11:20 PM * rue_mohr folds arms
11:22 PM rue_mohr: you cant use the back unless you smt the optos
11:22 PM rue_mohr: ok
11:22 PM rue_mohr: then you have to via them
11:23 PM rue_mohr: they could be their own vias, half thruhole, half smt
11:23 PM rue_mohr: OMG THATS EVIL
11:23 PM rue_mohr: but, would it work
11:24 PM rue_mohr: they would have to interlace or something because they occupy the same length
11:24 PM rue_mohr: omg the cats want MORE FOOD
11:26 PM rue_mohr: so, were talking two back-to-back optos
11:26 PM rue_mohr: with the transistor side smt
11:27 PM rue_mohr: you still dont have enough room to do it
11:28 PM rue_mohr: ok, 8 channels
11:28 PM rue_mohr: now you have enough room
11:28 PM rue_mohr: 0.9
11:28 PM rue_mohr: ugh
11:29 PM rue_mohr: its more than he needs
11:29 PM rue_mohr: but
11:29 PM rue_mohr: just go with it
11:29 PM rue_mohr: there must be more magic
11:29 PM rue_mohr: not needed
11:29 PM rue_mohr: so, how many header pins
11:29 PM rue_mohr: well 8+8+2
11:30 PM rue_mohr: is 18
11:30 PM rue_mohr: thanks
11:30 PM rue_mohr: but
11:30 PM rue_mohr: 18*2 is 36
11:30 PM rue_mohr: yea, and we only have 25
11:30 PM rue_mohr: hmm
11:30 PM rue_mohr: hmm indeed
11:31 PM rue_mohr: 2 stacker?
11:31 PM rue_mohr: is 18
11:31 PM rue_mohr: or go wide
11:31 PM rue_mohr: so we cant go wide for hte optos but we can for the lugs?
11:31 PM rue_mohr: I'v never etched a T shaped board
11:32 PM rue_mohr: if I use the other edges
11:32 PM rue_mohr: 25 is enough for 12
11:33 PM rue_mohr: lacking 24
11:33 PM rue_mohr: oof
11:33 PM rue_mohr: if its a square board?
11:33 PM rue_mohr: I think the stacking is a better idea
11:33 PM rue_mohr: he doesn't need 8 outputs
11:33 PM rue_mohr: oh we are NOT going down from 8
11:34 PM rue_mohr: oh cmon
11:34 PM rue_mohr: no, just NO
11:34 PM rue_mohr: well 2x12 is 24
11:34 PM rue_mohr: ouch
11:34 PM rue_mohr: so i'd have to be a tripple stack
11:35 PM rue_mohr: no you went the wrong way
11:35 PM rue_mohr: its 18, we get 12, difference is 6
11:35 PM rue_mohr: ah, we only need 3 on each edge
11:35 PM rue_mohr: or 4 on one edge and 2 on the other
11:38 PM rue_mohr: we could also take the inputs down to 4
11:38 PM rue_mohr: they ARE just a bonus