I am having a bit of difficulty getting this wired properly I think. I have the module plugged into my arduino uno's 5v and ground to power it and the then directly into the digital pin associated with the desired relay. On the motor end the 12v supply is connected directly to one of the pole on the motor and the and the hot from the 12v supply is interrupted by the relay module. When I plug in the 12v the motor turns on, when I uploaded the code to arduino the light pulses on the relay module but the motor remains on and doesn't turn off or pulse as the code dictates it should. I am sure I am missing something stupid, any ideas?
We can explain what you did wrong but first we need you to get a pen and paper and draw a schematic of how you THINK you wired the motor. Identify the connection to the relay board using the symbols silkscreened on the board. Take a photo of the schematic you drew and post the photo. WE DO NOT WANT TO SEE ANY SCHEMATICS FROM ANY FRIGGIN' WEBSITES! We want
only a schematic DRAWN BY YOU of YOUR circuit. It might also help if you took a photo of your actual wiring so we can compare it against your schematic.
The relay coils run on 12VDC, and the module has screw-terminal blocks for sturdy and reusable attachments for the external load. The signal and power inputs run through the male single-row header.
The relay board needs 12V to work properly not the 5V @ 200mA the Arduino supplies.
I can't read you symbology for your connection to the relay. What I need to know is DO YOU UNDERSTAND THE TERMS
NORMALLY OPEN
and
NORMALLY CLOSED ?
Assuming that ONE of the wires from the motor is connected to the COMMON of the relay , WHICH one of the above two terminals is the OTHER wire from the motor connected to ? You schematic makes it look like you connected it to the NORMALLY CLOSED instead of the NORMALLY OPEN terminal.
When I plug in the 12v the motor turns on, when I uploaded the code to arduino the light pulses on the relay module but the motor remains on and doesn't turn off or pulse as the code dictates it should. I am sure I am missing something stupid, any ideas?
As far as normally open and normally closed goes, I tried both configurations without any luck. It was my understanding that I should be able to hear this relay "click" over when the signal is sent to it but I have not been able to get that yet which is why the relay remains in its closed state.
With 12 volt wiring for this relay I just gave it a shot powering it from the 12 volt supply but now the lights do not light up on it as the arduino cycles through its on/off signal to the relay module.
I have the 8 unit module of the same make and you should be able to get it to click regardless. You don't even have to hook the motor up and you should be able to make it click. It is possible this is a damaged module? Try bridging IN1 on the relay board to 5v with power and ground connected, it should click.
Just so Im making sure I am clear joined should be the arduino ground, the 12v ground, the ground from the relay module, and the one from the motor as well?
Streat:
Just so Im making sure I am clear joined should be the arduino ground, the 12v ground, the ground from the relay module, and the one from the motor as well?