Inspiration
It is an RGB LED. I can control the color I want, and it has a fan that I can turn on or off. All of this is done via the mobile phone only. It is a simple smart home.
Design
Tinker cad
arduino IDE
BT Terminal
Component
RGB Led
Resistors
Wires
Breadpoard
Arduino Uno
Bluetooth module
5v DC fan
Tinker CAD
1 - I have collected all the components that I will use to create a simple smart home.
2 - I connected the DC motor instead of the fan because it is not on the tank, but it will be the same connection.
3 - I connected the RGB LED
4 - I connected this cat instead of the Bluetooth module because it is not available on the tinker either, but in the connections:
VCC is to 5V on the Breadboard
GND is to GND on the Breadboard
TX is to RX on the Arduino
RX is to TX on the Arduino
Wiring
1 - I have collected all the components that I will use to create a simple smart home.
2 - I connected the 5v DC fan
3 - I connected the RGB LED
4 - I connected the Bluetooth module
How it works ?
After connecting the circuit to a 5V power source, we connect it to the Bluetooth program on the phone.
When sending 1, the fan operates at full speed.
When sending 2, the fan operates at half power.
When sending 0, it turns off.
When sending R, a red light lights up.
When sending G, a green light lights up.
When sending B, a blue light lights up.
When sending W, a white light lights up.
When sending X, the light turns off.
How did i write the code?
I defined my inputs, which are the fan and LED, and the Bluetooth module.
I then used the Bluetooth module example and some of the elements used in the previous session.
I then wrote the outputs, which are commands linked to the results I specify, as I mentioned earlier.
Note: I used AI to figure out how to divide the RGB.
It's fun to control the fan and lights with your phone so I designed this circuit.
The Problem:
Some components were not present on the tank, such as the fan and the Bluetooth module.
The Solution:
I used some similar components, but in the case of the Bluetooth module, it was difficult, so I explained the connections as shown above.
It will help me to know how to control the car remotely via Bluetooth module.
It was so cool to be able to do something myself that I could control remotely. It was so cool for me.