![]() The digital pins on the board read D0-D13 D 1 and D0 are Tx and Rx. I connected the relays(the module) to digital pins 10,11,12,13 which on the board(Nano) pin layout is D7-D10 and many others trying desperatly to figure out what is wrong. But I really dont know how to check if pins are working properly or at all. I am sure the code looks good (right)? I got blink sketch to work. I have 4 pin female connectors, breadboard didn't come in my packag. Ran it(the sketch) on designated pins and different pins and can only get the 4th relay In4 to trigger or 1st relay In1 when I flipped the jumper,The other 3 would not. ![]() Initialise the Arduino data pins for OUTPUTĭigitalWrite(RELAY1,LOW) // Turns ON Relays 1ĭigitalWrite(RELAY1,HIGH) // Turns Relay OffĭigitalWrite(RELAY2,LOW) // Turns ON Relays 2ĭigitalWrite(RELAY2,HIGH) // Turns Relay OffĭigitalWrite(RELAY3,LOW) // Turns ON Relays 3ĭigitalWrite(RELAY3,HIGH) // Turns Relay OffĭigitalWrite(RELAY4,LOW) // Turns ON Relays 4ĭigitalWrite(RELAY4,HIGH) // Turns Relay Off These data pins link to 4 Relay board pins IN1, IN2, IN3, IN4 ![]() define names for the 4 Digital pins On the Arduino D7-pin 10,D-8 pin 11,D-9 pin 12,D-10 pin 13 You will also see the corresponding Red LED on the 4 Relay board You can here them click as there state changes from off to on and on to Each relay is turned on for 2 seconds and then off. 4 relay module with 6 connections VCC In1 In2 In3 IN4 GND and I found this code // Basic 4 Relay board connection So I decided to move on to my next project. Well I ask, because I ran blink sketch thru on board LED.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |