Main > Raspberry Pi & Dev Board
A 12v delay relay that activates from a switch
mrbee:
Just wondering Scott, in the circuit diagram you made, what delay module did you reference? was it the one with the digital display or without?
thank you
PL1:
--- Quote from: mrbee on April 29, 2025, 05:03:27 pm ---Just wondering Scott, in the circuit diagram you made, what delay module did you reference? was it the one with the digital display or without?
thank you
--- End quote ---
Either one you linked to will work.
Here's a good method for figuring out whether an input is active high or low and which terminal connects directly to the input.
If there is only one input terminal for the trigger:
- Set your multimeter to Volts DC.
- Put your multimeter black lead on a known shared ground like the metal outer shell of a USB housing.
- Put your multimeter red lead on the input terminal.
-- If it is at logic HIGH (5v) when not triggered, the input is active low.
-- If it is at logic LOW (0v) when not triggered, the input is active high.
If there are two input terminals/pins for the trigger:
- One input terminal will be at logic LOW (0v) and the other will be logic HIGH. (5v)
- Set your multimeter to Volts DC.
- Put your multimeter black lead on a known shared ground like the metal outer shell of a USB housing.
- Put your multimeter red lead on the input terminal that is at logic HIGH.
- Keep the leads where they are and trigger the input by pressing the button/shorting the two input terminals.
-- If it drops down to logic LOW, it is active low. Connect the trigger line to the terminal where the red lead is.
-- If it stays at logic HIGH, it is active high. Connect the trigger line to the other terminal.
As mentioned before:
- If the delay relay module you get works with a 5v active high trigger, use the purple line to trigger it.
- If it works with a 5v active low trigger, use the green line to trigger it. If an input can only handle 5v, be sure to connect to the right of the Zener diode. i.e. after the voltage has been regulated down to 5v max.
Scott
mrbee:
absolutely astounding reply. thank you so much for taking the time to explain this.
im waiting on the components to arrive, hopefully in a weeks time and begin wiring and testing.
in the mean time i am making an atx case for a pc out of an old army ammo case, this will be put inside the cabinet and the relay components will be inside a case that is suited for outdoor components to give it a bit of industrial/military feel to it. not that anyone else will see the insides mind you!
am looking forward to getting the components now and getting it set up. its going to bring a very geeky smile to my face seeing the amber light flash and spin when a coin is inserted.
its the simple things in life 😅
mrbee:
--- Quote from: PL1 on April 29, 2025, 10:06:43 pm ---
--- Quote from: mrbee on April 29, 2025, 05:03:27 pm ---Just wondering Scott, in the circuit diagram you made, what delay module did you reference? was it the one with the digital display or without?
thank you
--- End quote ---
Either one you linked to will work.
Here's a good method for figuring out whether an input is active high or low and which terminal connects directly to the input.
If there is only one input terminal for the trigger:
- Set your multimeter to Volts DC.
- Put your multimeter black lead on a known shared ground like the metal outer shell of a USB housing.
- Put your multimeter red lead on the input terminal.
-- If it is at logic HIGH (5v) when not triggered, the input is active low.
-- If it is at logic LOW (0v) when not triggered, the input is active high.
If there are two input terminals/pins for the trigger:
- One input terminal will be at logic LOW (0v) and the other will be logic HIGH. (5v)
- Set your multimeter to Volts DC.
- Put your multimeter black lead on a known shared ground like the metal outer shell of a USB housing.
- Put your multimeter red lead on the input terminal that is at logic HIGH.
- Keep the leads where they are and trigger the input by pressing the button/shorting the two input terminals.
-- If it drops down to logic LOW, it is active low. Connect the trigger line to the terminal where the red lead is.
-- If it stays at logic HIGH, it is active high. Connect the trigger line to the other terminal.
As mentioned before:
- If the delay relay module you get works with a 5v active high trigger, use the purple line to trigger it.
- If it works with a 5v active low trigger, use the green line to trigger it. If an input can only handle 5v, be sure to connect to the right of the Zener diode. i.e. after the voltage has been regulated down to 5v max.
Scott
--- End quote ---
Hey Scott, just looking for some more info regarding the active high/low relay module.
I have connected everything now and did a basic setup of the wiring without the coin mech, just to test. So I have connected the 12v supply as you have shown to the active low relay module, and to the timer delay module. When I trigger the timer module with a 5v trigger signal; the timer works, relay clicks, and powers on the beacon just fine but I hear no click of the relay for the active high/low module. there is a power light on the module though.
The module I have the 12v active low relay set up, the connections on the left are dc+, dc-, and in1. on the right its no, com and nc. in your diagram it says trigger, but there is no connection for "trigger" just "in1".
EDIT - I have figured out my mistake. I attached the zener diode so that the "in1, or "trigger" input is downgraded to a 5v signal. This module requires a 12v signal input, I have to connect the zener diode to the right side output of the relay to the zero delay joystick module.
Once the project box arrives I will take pictures and show the finished device (which will also house system menu test buttons).
thank you
PL1:
--- Quote from: mrbee on May 08, 2025, 10:08:27 am ---When I trigger the timer module with a 5v trigger signal; the timer works, relay clicks, and powers on the beacon just fine but I hear no click of the relay for the active high/low module. there is a power light on the module though.
The module I have the 12v active low relay set up, the connections on the left are dc+, dc-, and in1. on the right its no, com and nc. in your diagram it says trigger, but there is no connection for "trigger" just "in1".
--- End quote ---
Glad to hear that the timer relay is working for you. As long as the ZD encoder can provide enough current to trigger the relay, that part of the setup will be fine. ;D
The following reaction chain is a one-way street.
- If you manually trigger the relay in step 2, the chain will continue down the list.
- If you manually trigger the relay in step 4, it won't go up the list to trigger the relay in step 2. That's why you didnt get a click from the active low relay when you triggered the timer relay.
1. When a coin is dropped into the mech, the green line pulses LOW.
2. That LOW triggers the relay which momentarily connects COM (red) and NO. (purple)
3. That connection applies 5v from the ZD encoder common (red) to the ZD encoder input (purple) and the delay relay trigger. (dotted purple)
4a.When the ZD encoder input (purple) has 5v applied, the encoder outputs a button press via USB
4b. When the timer relay input (dotted purple) has 5v applied, it triggers the timer relay which connects 12v COM (yellow) to NO (blue) for the set time period.
5. While that relay is closed, 12v is applied to the beacon so it lights up.
"in1" (Input 1) is the control input that you use to trigger the relay. Different labels, same function.
To trigger the active low relay, you need to apply logic LOW (ground) to "in1". (green line)
- Try touching a jumper wire from "dc-" to "in1".
If the relay clicks, power down and hook everything up like the diagram to confirm that everything does work together.
If the relay doesn't click, you might not have the high/low jumper set right or if there's no jumper they might have sent you an active high relay or you might have a defective relay module.
- Set your multimeter to DCV and check if "in1" is logic HIGH or LOW. It should be HIGH if the relay is active low.
- Post pics and/or a link to the relay you ordered.
Scott
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version