#garfield Logs
Sep 22 2020
#garfield Calendar
02:34 AM rue_bed2: MoonyMoon, make a verion of ohm for complex reactance would ya?
02:40 AM rue_bed2: capacitors or inductors
02:40 AM rue_bed2: so you can get it to tell you f c or xl
02:40 AM rue_bed2: xc whatever
02:40 AM rue_bed2: maybe just x, and calc the capacitor AND inductor values that fit
02:40 AM rue_bed2: as there isn't any power loss, no point in I and P
02:40 AM polprog: i think rclp does that, to some extent
02:40 AM polprog: it calculates ohmj in one case..
02:40 AM rue_bed2: is that the one you did?
02:40 AM polprog: yeah
02:40 AM rue_bed2: k
02:40 AM rue_bed2: so, if I want 29k ohms at 60Hz...
02:40 AM rue_bed2: can it tell me C?
02:40 AM rue_bed2: did you post source, I dont recall
08:46 AM rue_mohr: got more detail?
09:13 AM polprog: for the pal programming?
09:14 AM polprog: https://polprog.net/rozne1/ircjunk/gal/galnotes.txt
09:14 AM polprog: and the makefiles and some code is in the same directory
09:14 AM polprog: ah, makefile is in https://polprog.net/rozne1/ircjunk/gal/pll/
09:36 AM MoonyMoon: rue_bed2: sure!
09:38 AM MoonyMoon: I would think I would include Z, I, and P
09:38 AM MoonyMoon: or maybe just Z cuz lets not forget inductive reactance.
09:39 AM MoonyMoon: though I supose in the program while you calculate you would asume pure reactinces, but have an option for includeing resistivercomponent
09:19 PM Tom_L: rue_mohr, how do you tell on a relay schematic if it's make before break or not?
09:20 PM Tom_L: pretty sure this one is break before make which is what i want
10:02 PM rue_mohr: nromal relays are break before make
10:03 PM rue_mohr: is it a small signal relay?
10:08 PM Tom_L: that allen bradley thing
10:08 PM Tom_L: 8A?
10:08 PM Tom_L: but just looking at it, it looks that way
10:09 PM Tom_L: i'm running out of io
10:09 PM Tom_L: but i think i have just enough
10:10 PM Tom_L: i put the estop on a latch circuit but the problem now is the pendant button is NO and the estop button is NC
10:10 PM Tom_L: so i'm gonna have to make up some logic to glue them together. i was hoping to use the same io for both
10:12 PM Tom_L: hmm i might still be able to do it
10:13 PM aandrew: anyone here interested in some win95-era Abacom software? (front panel designer, strip board layout, signal generator, etc
10:13 PM Tom_L: not I
10:15 PM Tom_L: would 10k between +5v and gnd get too hot? i wouldn't think so
10:16 PM Tom_L: pots do that
10:16 PM aandrew: well 25/10k is 2.5mW
10:16 PM aandrew: so no
10:16 PM Tom_L: trying to fix my switch dilemma
10:17 PM Tom_L: +5 -> 10k -> NC SWITCH -> IO with a 20k to GND on the io?
10:17 PM Tom_L: 20k just so it doesn't float when the switch opens?
10:18 PM Tom_L: just thinking out loud
10:19 PM aandrew: just put the 10k on the pin so when the switch is closed it grounds the pin
10:20 PM Tom_L: but it also has to interact with the NO switch which has pullups on it
10:20 PM Tom_L: in the NC position it's GND
10:20 PM aandrew: +5 ---/\/\/---+---o/ o--- gnd
10:20 PM aandrew: input pin goes to +
10:20 PM Tom_L: 2 switches, 1 NC 1 NO
10:20 PM Tom_L: 1 input
10:20 PM aandrew: hm?
10:20 PM Tom_L: fault is GND
10:21 PM Tom_L: i've got 2 switch sources for estop
10:21 PM Tom_L: one happens to be NC and the other is a momentary switch on the pendant
10:21 PM aandrew: you don't need to use both contacts do you?
10:21 PM Tom_L: they each are SP
10:22 PM aandrew: so A ---| |---B---|/|---C
10:22 PM aandrew: ?
10:22 PM Tom_L: yes
10:22 PM Tom_L: basically
10:22 PM aandrew: ok and which contact do you want to use
10:22 PM Tom_L: but they both need to function the same
10:22 PM Tom_L: both
10:22 PM Tom_L: therein lies the problem
10:22 PM aandrew: why?
10:22 PM aandrew: you can just connect B to your input, A to +5 and C to gnd and no pullup
10:22 PM Tom_L: one is an estop on the main pannel and the other is a remote estop on the pendant
10:23 PM aandrew: the pendant has a NO estop?!
10:23 PM Tom_L: it's a push button
10:23 PM aandrew: so the A-B and B-C are *not* mechanically interlocked, they just happen to share a pin
10:23 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/pendant/pendant2.jpg
10:24 PM aandrew: nice jog wheel
10:24 PM Tom_L: it works great, i'm just adding the regular estop panic button to the control now
10:24 PM Tom_L: since i'm adding a vfd soon
10:25 PM Tom_L: i can find another input if i need to but i'd rather not if it's at all possible with one
10:25 PM Tom_L: i've got like one input and one output left
10:26 PM aandrew: ok, so A-B is pendant NO (you want closure to cause e-stop) and B-C is panel NC e-stop (when it opens, it e-stops) ?
10:26 PM Tom_L: yes
10:26 PM aandrew: ok
10:26 PM Tom_L: and A_B has a pullup on it right now
10:26 PM aandrew: put 10k pullup to +5 on B
10:26 PM aandrew: B is also the switch input
10:26 PM Tom_L: already done
10:27 PM Tom_L: a-b is the push button
10:27 PM aandrew: C to ground, so that input == ground == not e-stopped
10:27 PM rue_mohr: :) interesting conversaton to come back from starting supper
10:27 PM Tom_L: gnd _is_ estop though
10:27 PM aandrew: this is not like any e-stop I know of
10:27 PM Tom_L: possibly :)
10:28 PM aandrew: e-stop usually breaks a circuit (so it's NC and when it opens, you hae a stop)
10:28 PM Tom_L: i know
10:28 PM aandrew: that way a broken wire = fail safe
10:28 PM Tom_L: i'm aware of that
10:28 PM Tom_L: this is what i have to work with
10:28 PM aandrew: ok
10:28 PM aandrew: so ground = stop
10:28 PM Tom_L: my limits are set up that way
10:28 PM Tom_L: yes
10:28 PM aandrew: B = 10k to ground
10:28 PM aandrew: C = +5
10:28 PM aandrew: A = ground
10:29 PM Tom_L: A-B are the button
10:29 PM aandrew: yes
10:29 PM Tom_L: and that is how they are currently wired
10:29 PM Tom_L: B also goes to the io
10:29 PM aandrew: you push the button, you see ground on the pin, you stop
10:29 PM aandrew: oh wait that breaks the panel
10:29 PM Tom_L: yup
10:29 PM aandrew: ok fine
10:29 PM aandrew: this is a bad wiring though
10:30 PM Tom_L: :)
10:30 PM Tom_L: tell me
10:30 PM aandrew: A = ground through 10k
10:30 PM aandrew: B = input pin
10:30 PM aandrew: sorry
10:30 PM aandrew: A = ground
10:30 PM aandrew: B = input pin
10:30 PM aandrew: C = +5 through 10k
10:31 PM Tom_L: still won't work
10:31 PM Tom_L: where's D ?
10:31 PM aandrew: what's D?
10:31 PM Tom_L: 2 switches
10:31 PM Tom_L: 4 pins
10:31 PM aandrew: I thought the switches shared a common pin at B
10:31 PM Tom_L: A-B are the push button C-D is the estop
10:32 PM Tom_L: the can
10:32 PM Tom_L: they
10:32 PM aandrew: so they are completely separate?
10:32 PM Tom_L: right now they are
10:32 PM aandrew: A ---| |--- B and C ---|/|--- D ?
10:32 PM Tom_L: yes
10:32 PM Tom_L: B has a pullup on it and goes to the pin
10:32 PM aandrew: ok then this is easier
10:33 PM aandrew: I would not use a pullup in that case, I'd use a pulldown again for fail-safe
10:33 PM aandrew: if the pendant or panel wiring breaks, pulldown forces stop
10:33 PM Tom_L: that's why i was gonna put a 10k i series with the estop
10:33 PM Tom_L: so if i pushed the pendant button it wouldn't direct short
10:34 PM Tom_L: but if the estop opened it would go to gnd
10:34 PM aandrew: then A to +5, B to input, B to C through 10k, D to ground, and probably 47k or more pulldown on the input pin
10:34 PM Tom_L: i don't think it will work
10:35 PM Tom_L: oh and by the way the input pin is an unprotected fpga pin :)
10:36 PM Tom_L: i'm gonna just use 2 inputs and add an OR to the logic
10:36 PM Tom_L: i think i can find one more
10:37 PM Tom_L: that way i don't have to disturb the already working pendant circuit
10:38 PM Tom_L: i'm not using the index on the pendant encoder function so i think i can steal that pin for gpio
10:42 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/configs/NEW_MILL_SHOP_2.7/New_Mill_IO_Pinout.pdf
10:42 PM Tom_L: that's my current pinout
10:43 PM Tom_L: IO24-47 are unprotected to the fpga
10:47 PM Tom_L: i think i can use 8 or 15 which are isolated
10:48 PM aandrew: Tom_L: you really don't want to do that
10:49 PM Tom_L: do what?
10:49 PM aandrew: FPGAs are notorious for not having much in the way of any kind of protection
10:49 PM Tom_L: 8 & 15 are
10:49 PM Tom_L: they go thru the daughter card
10:50 PM Tom_L: that's what the P2 P3 P4 are
10:50 PM Tom_L: headers on the daughter card
10:50 PM Tom_L: the fpga itself has 72 io
10:50 PM Tom_L: i'm only using 2 of the 3 headers off it
10:51 PM Tom_L: every time i swap an IO from direct fpga to the daughter card i have to reverse the logic though
11:29 PM rue_mohr: well, I made some progress on converting the jukebox to php
11:29 PM rue_mohr: Tom_L, did you get everything worked out?
11:30 PM rue_mohr: I'll save working out the request interlacing for tommorow
11:30 PM rue_mohr: or just later
11:39 PM rue_bed2: Tom_L, how tight did you have to get the silk screens
11:40 PM rue_bed2: super <-> firm