Arduino 4 Relay Module Wiring

Alasan menggunakan power supply eksternal dikarenakan agar arus pada arduino nano tidak drop yang hanya sebesar 500ma.
Arduino 4 relay module wiring. Gnd yellow gnd. The light bulb has one of the 120v wire spliced to connect the end connected to the power plug to the com common pin of the relay module and the one going to the lamp is connected to the nc normally closed pin. More information and instructions can be found on my blog. In this example we will connect the relay module with arduino in the normally open state.
Pada saat penekanan 9 16 maka relay 1 relay 8 akan off satu persatu secara berurutan. Power supply 12vdc 2a. This relay module provides four relays that are rated for 7a at either 28vdc or 10a at 125vac. We connect the ir motion sensor out to pin 4 and the relay in1 to pin 8.
So connect the 5v and the ground of the arduino with the 5v and the ground of the relay module. Bahan yang diperlukan. Controlling a relay module with the arduino is as simple as controlling any other output as we ll see later on. Then connect the signal pin of the relay module with the pin 12 of the arduino.
In3 brown pin 11. In this example we will take a look at another relay module this time this one is called the 5 volt 4 channel arduino relay module here is a picture of the module. No pin is open by default unless you send a signal from the arduino to the relay module to make the connection. In2 red pin 12.
Vcc white 5v for in1 to in4 you can use any pins 2 to 13 or a0 to a5 on arduino board but you have to remember which pin control each relay line to setup code properly. In1 orange pin 13. Introducing the relay module. Nc pin is connected to the com pin by default unless you send a signal from the arduino to the relay module to break the connection.
Connect wires from relay module to arduino pins. Each relay has a normally open no and a normally closed nc contact. In4 black pin 10. Wiring two channel relay module with arduino uno.
The connections for connecting the relay module with arduino are very simple.