Trying to power the 12V relay from an Arduino to make an automatic cocktail maker. Looking to power 12V water pumps off of the relay. However, the relay is not clicking, only getting the light.
The connections FROM the Arduino TO the relay is as follows:
Arduino | Relay |
---|---|
5V | VCC |
GND | GND |
pin 3 | IN1 |
Also pictures of circuit are provided. The Arduino is powered by USB laptop.
digitalWrite()
commands in your code use “quoted” values (such as“LOW”
and“HIGH”
) for the second operand. I dont’t think that will work correctly. Try to use the conventionalLOW
andHIGH
. For exampledigitalWrite(relay, HiGH)
.