Arduino Relay Board Wiring

Working is simple we need to make the relay pin pin a0 high to make the relay module on and make the relay pin low to turn off the relay module.
Arduino relay board wiring. Io expander relay bonnaza with io expanders. The relay switch controls the. Do not attempt if you are a amateur in dealing wi. An ac bulb is used for demonstration.
All the relay expanders are powered from the relay board they are connected to. Since the arduino operates at 5v it cant control these higher voltage devices directly but you can use a 5v relay to switch the 120 240v current and use the arduino to control the relay. Then its a only a matter of just connecting the communication pins labeled in1 in2 in3 and in4 two 4 data pinson the arduinoin the example code below we used arduino pins 7 8 9 10. To connect the 4 relay board to an arduino is very easy and allows you to turn on and off an wide range of devices both ac and dc.
In the above wiring diagram all the io expanders and arduino nano are being powered by the first relay board through the serial bus. Controlling ac light using arduino with relay module. Controlling a relay module with the arduino is as simple as controlling any other output as well see later on. The goal was to establish a wireless protocol for switching a light bulb on and off using a simple app on a smartphone.
Relays are used where it is necessary to control a circuit by. The 12v adaptor is used for powering the circuit. We have connected transistor base to arduino pin a0 through a 1k resistor. Many relays use an electromagnet to mechanically operate a switch but other operating principles are also used such as solid state relays.
Arduino is a microcontroller based prototyping board that runs on small dc power. How to make relay circuit board for arduino. A relay is an electrically operated switch. The first to connections are the ground and power pins you need to connect the arduino 5v to the 4 relay board vcc pin and the arduino ground to the 4 relay board gnd pin.
The arduino can be programmed to turn on the relay when a certain event occurs for example when the temperature of a thermistor gets higher than 300 c. I used an hc 05 bluetooth module a relay switch a light bulb switch and an arduino uno to create a wireless home automation light switch. A relay is a device that helps microcontrollers or microcontroller based boards like arduino to switch on or off different household appliances like motors lights water heaters television and fans etc. The ac light will also turn on and off according to relay.