Hi guys, am a newbie , so i bought a 12V relay module,attaching the datasheet, Data sheet 12V relay module,
I am a bit confused, i want to use it to control a 12V solenoid, do i still need a npn transistor, because on the module board, theres a j3y SMD on it, i also have my 12V power supply, then the 2 cables for trigger, do i connect one to arduino pin and the other to ground, I have tried reading through other posts here, but none have spoken about this module,appreciate if someone can put me through
No! your relay is the SWITCH that controls the solenoid. Nothing else needed if you have sized the component specifications properly.
Power up your module with your 12 volts. test with the test button. If it works. Plug in the wires for the remote P/B switch. Then measure the voltage between the two wires. IF the voltage is 5 volts or less, there is a chance you can control the module with an Arduino.
The external trigger just needs a closed path for it to trigger, cas i placed an external push button to test it between the two cables and when i pushed, it toggled, i think i have to replace de choice if relays
Just touch the wires together. No push button needed.
Of note - it is a Latching relay (once it's clicked it requires intervention to unclick it).
I did that, and jt triggered, i measured between the two wires , it read 5V , what next ?
Remember the wire that is connected to the module ground and connect that wire to the Arduino ground. Connect the other wire to the Arduino pin you are using to control the module. Write a program to make that pin an output. When that pin is set to 0 the relay should close. When you set that pin to 1 and then to 0 again. the relay should open. Remember your module is a latching relay and needs to be pulsed to reset the relay back to open.
I can’t find the schematics of that module either.
But I can infer some conclusions:
1: The relay is a standard relay: the ‘latch’ function must be in the electronics.
2: The coil voltage is 5V: there must be a voltage regulator.
3: They want a pushbutton connected to the connector. The on-board pushbutton will be in parallel.
I expect you to do the measurement to confirm the presence of 5V at the connector.
4: Mind the GND’s, they will/must be connected together.
5: You can control the module directly from your Arduino Uno.
6: Don’t push the test button while connected to your Arduino, you’ll blow up your output.
7: It’s much easier and much safer to implement the latch function in your program and use a more appropriate module.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.