PC based Home Automation System using Arduino: In the modern era, everyone wants ease of life with fewer difficulties. Yes it is true technology has made us lazy but on another hand, it improves every field of life. Now a day’s Home automation or Smart homes improve the living standards. It gave us the access to switch on and off any device or appliances easily and efficiently. There are various ways to communicate with devices like IR remote, GSM module, Bluetooth, Wifi and through serial communication with the computer. The method we use in this project is serial communication with a computer. Serial monitor of Arduino IDE is used to send commands. you may also like to check home automation using wifi and pic microcontroller.
Block Diagram of PC based home automation using Arduino
Arduino Uno is used as a brain of the project. 16×2 LCD is used to show messages. 4 channel relay module is used to switch devices on and off. A computer is used to do serial communication with Arduino. We use AC bulbs instead of devices. But you can use any device you want. For demo purpose, We have used three AC lamps. We will send commands from PC to Arduino to turn on and turn off these devices.
Components Required for pc based home automation
- Arduino Uno: We use Arduino due to its simplicity and it also provides a much digital pin to interface with LCD and relay module at the same time. It is very friendly when you prototyping any project.
- 4 Channel Relay Modules: The module we use in this project is HL-54S. It switches on and off using the 5v logical signal from Arduino. It can handle up to 250VAC and 10A. These modules have 4 relays so we can control 4 AC devices or appliances.
- 16×2 LCD: LCD is used to display project name, a list of commands which can be entered then it asks to give any command and show the status of the command which is entered. We use 16×2 LCD because it is easy to interface with Arduino and very cheap in price. 10k potentiometer is used to control the contrast of display
- AC bulbs with holders: AC bulbs are used to represent devices and appliances. Because it is easy to handle and very useful when you are prototyping any AC project. In final product just replace with AC socket to control.
- AC wire with plug: I recommend you to use good quality wire when working with higher voltages. It is always good to use electrical tape to cover connections.
- External 5 Volt supply: 5-volt dc supply is required to switch the relay on and off. Otherwise, it did not work. Also, do not supply 5v from Arduino.
- VSS to ground.
- VDD to supply voltage.
- VO to adjust pin of 10k potentiometer.
- RS to Pin 8.
- RW to ground.
- Enable to Pin 9.
- LCD D4 to Pin 10.
- LCD D5 to Pin 11.
- LCD D6 to Pin 12.
- LCD D7 to Pin 13.
- Ground one end of potentiometer and cathode of LCD backlight.
- 5v to other end of potentiometer and anode of LCD backlight.
4 Channel Relay modules:
- External 5 volt to JD VCC.
- Ground to ground.
- Ini1 to Pin 3.
- Ini2 to Pin 4.
- Ini3 to Pin5.
- Vcc to Arduino 5v.
- Connect one end of all bulbs to normally open terminal of relays.
- One end of 220VAC to all common terminals of the relay and another end with another terminal of bulbs.
Working: First of all, it displays Home Automation using PC message of LCD then it displays the list of command you can enter. At last, it asks to enter the command and show the status of the command. When a command is entered from the serial monitor from Arduino IDE, Arduino checks whether it is the same command which is defined or not. If yes then it switches the corresponding relay on and off.
PC based home automation system code