Title of Media
inspired by this project and my project aims to control the color of the light and fan using Arduino and a smartphone via Bluetooth module
Arduino uno
Bluetooth Module
Relay Module
5v Fan
RGB LED
Resistors (220 ohms - 1Kohms)
Breadboard
jumber wires
smart phone
android Bluetooth controller forArduinoo
blue tooth HC-05 module wiring
TX pin to RX port
RX pin to TX port
VCC pin to 5V port
GND pin to GND port
Relay and 5v Fan wiring
note: the power source of the fan is 5V adapter not 12 V
and i connected the relay to pin 9
RGB LED wiring diagram
I connected RED to pin 13
GREEN to pin 12
BLUE to pin 11
define pins of red green and blue and define the pin of the relay which controls the fan all of them are outputs and start the serial communication
define a variable of name incomingdata which represents the serial data input sent from the phone according to this data
1 means to open the fan
0 close the fan
2 open red light only
3 open green light only
4 open blue light only
5 close all lights
preparing all parts needed in the project
fan - relay - arduino - RGB led - resistors - blutooth module
connecting circuit as mentioned before according to the previous wiring diagrams noting that:
1- relay on pin 9 to control the fan
2- use 5v adapter for the fan
3- pins 11 , 12, and 13 for Red, Green, and Blue colores
smart controller for room lighting and fan in final phase
there was a problem in connecting the Bluetooth module due to interruption from other devices using Bluetooth but its solved by regulating connecting Bluetooth modules with my colleagues
I used the android user interface as a GUI and I used the Bluetooth module to build a wireless serial communication with the Arduino to control different outputs
Title of Media
Title of Media