I am using Pin 8, I forgot to mention, sorry. I have changed the pin # multiple times just to see if it is a problem with one of the pins, still no success.
I think that is a relay which should work directly from an Arduino pin. There are three wires going to the Arduino. 5v, Gnd, and the signal line pin 8. There are two different images in the tutorial which show different physical arrangements of the three pins. Can you check that you are wired to the correctly identified terminals. Can you attach a photo of your relay which identifies the three pins?
The code should work, and the wiring looks correct.
Do you have a multimeter and can confirm that the jumper wires are good, and that the 5v, Gnd, and the HIGH/LOW pulses are indeed showing on the the pins at the relay ends of the wires. Unfortunately, defective jumper wires are not unknown.
I requested a clear photo of the SETUP, not a blurry photo of three relay wires.
Do you have a link to this relay board.
Are you using an UNO, or other Arduino.
How do you supply this setup. USB, battery, other.
All parts of a setup are important.
Leo..
Thank you so much! The problem seemed to be that an entire set of kalevel wires i received was faulty and would not carry current/would not reach the bottom of the pin, once i switched to another set of wires it works like a charm! I really appreciate all the help!
Sorry Wawa, I tried to post pictures of the entire setup, but the site kept stopping me from posting it, as it exceeded 1Mb. the wires that would not work were manufactured by a company called Kalavel, i bought them off amazon.
Don't know what the max upload size in pixels is, but I always try to scale to "1024 by xxx".
That's usually not more than a few hundred k.
Sharp enough for mast pictures, and it doesn't bog the server.
Leo..