This assignment's idea is a Bluetooth control circuit for a small fan that was in the previous week to be controlled by a smartphone.
Arduino IDE: for programming.
Arduino Blue Control: for controlling the circuit.
9V Adaptor.
Hobby Gearmotor.
Motor driver LM298N.
Bread Board.
Buzzer
1k and 510 Ohm resistors.
Arduino Uno
Jumper wires.
Bluetooth module HC-05.
Adaptor Socket.
Firstly, I simulated the circuit on TinkerCAD
The Bluetooth module didn't exist in TinkerCAD So, I had to edit the circuit using the software "Paint"
the Bluetooth module has 4 pins Vcc, Gnd, Tx, and Rx.
I connected them with same pins in Arduino except the Rx and Tx hey will be inverted when connected to the Arduino
I started connecting the components of the circuit to the Arduino so that it was ready to be programmed
At this stage, I started creating the variables and defining the components connected to the Arduino pins in terms of whether they are input or output
In this part of the code, I used the While Loop and IF, else Condition Loop to control the fan motor with a smartphone. When we press button 1, the motor works and the buzzer beeps for half a second and when another button is pressed the motor stops working
Now, it's time to test the programmed code and run the circuit.
Final Outcome
When I was working on connecting the circuit, I had a problem with the voltage divider, but my classmate Hussain Al-Khodari helped me understand how to connect it.
Unfortunately, I won't use what I learned this week in my final project but what I learned was really useful for me
Serial Communication
Communication through a Graphical User Interface (GUI)
Title of Media