Smart Fan and change the Color of the Light
The Idea is Based on Turning ON and OFF a Fan using the Mobile and Controlling the Change of the Color of the Lighting
The number of each key is shown during operation
This Makes it Easier for the User to Control the Devices from his Place
Website tinkercad
Arduino IDE Program
Android Phone GUI
USB Cable Arduino
Arduino Uno
Bluetooth HC-05 Sensor
Jumper Wires
Breadboard
7Segment
LED RGB
10 Resistor 220 ohm
Smart mobile phone
Fan 5 vollt
I opened the tinkercad website
I choose from a list Component ( Slideswitch - Bluetooth HC-05 Sensor - Arduino uno - - 7Segment - DC Motor - LED RGB-10 Resistor 220 Ω )
Connect the ends of the components using wiring
connection Arduino:
TX pin HC-05 Sensor on pin 0.
RX pin HC-05 Sensor on pin 1.
A pin 7Segment on pin 2.
B pin 7Segment on pin 3.
C pin 7Segment on pin 4.
D pin 7Segment on pin 5.
E pin 7Segment on pin 6.
F pin 7Segment on pin 7.
G pin 7Segment on pin 8.
Green pin RGB LED on pin 9.
Blue pin RGB LED on pin 10.
Red pin RGB LED on pin 11.
Vin Relay Module on pin 12.
inputs is (Android Phone GUI - Bluetooth HC-05 Sensor )
outputs is ( 7 Segment- RGB - Fan)
the Code
If PushButton Number 1 is Pressed through the Mobile
The LED Lights up in Red and Shows the Number 1 on 7Segmant
else If Push Button Number 2 is Pressed through the Mobile
The LED lights up in green and the number 2 Appears on 7Segmant
else If Push Button Number 3 is Pressed through the Mobile
The LED Lights up in Blue and the Number 3 Appears on 7Segmant
else If Push Button Number 4 is Pressed through the Mobile
The LED goes out and the Number 4 Appears on 7Segmant
else If Push Button Number 5 is Pressed through the Mobile
The Relay Works, and therefore the Fan Works, and the Number 5 Appears on 7Segmant
else If Push Button Number 6 is Pressed through the Mobile
The Relay is Disconnected, so the Fan Stops, and the Number 6 Appears on 7 Segmant
for One Second
I connected the wires as in the circuit diagram shown earlier
I Could not Simulate the Circuit Because the Bluetooth HC-05 Sensor is not in the Tinkercad Menu
The Circuit was Connected Directly and No Errors Appeared