This Arduino project implements a simple smart home system that allows remote control of lights, appliances and doors. This project involves controlling various devices (LEDs, DC motor, and servo) using an Arduino board and Bluetooth communication. The project also includes an IR allows the door to automatically open when a objects walk up to it and close after they pass through.
- Arduino board
- Bluetooth module
- LEDs
- DC motor
- relay to control motor
- Servo motor
- IR sensor
- Resistors (220 ohm)
- Jumper wires
- Connect the Bluetooth module to the Arduino board's RX and TX pins.
- Connect the IR sensor ,Servo ,relay and LEDs to the specified pins on the Arduino board.
- Connect the DC motor to the relay to safely start and stop a moto
- Install the required libraries (SoftwareSerial.h, Servo.h) in the Arduino IDE.
- Upload the provided code to the Arduino board using the Arduino IDE.
- Bluetooth Control:
- The Arduino is connected to a Bluetooth module to receive commands wirelessly.
- When a character is received from Bluetooth, the corresponding action is performed:
- 'A'/ 'a' - Controls LED1
- 'B'/ 'b' - Controls LED2
- 'C'/ 'c' - Controls LED3
- 'D'/ 'd' - Controls LED4
- 'M'/ 'm' - Controls the DC motor
- 'E' - Opens the door by turning the servo motor to 90 degrees
- 'e' - Closes the door by turning the servo motor to 0 degrees
- IR Sensor Control:
- IR sensor is used to detect objects and automatically open/close the door.
- When the IR sensor detects an object (IR is HIGH), the servo motor turns to 90 degrees to open the door.
- When no object is detected (IR is LOW), the servo motor turns to 0 degrees to close the door.
- This smart home system allows remote control of lights, appliances and doors through either Bluetooth commands or motion detection using an IR sensor
- It's a simple implementation of smart home automation.