I searched on Arduino project hup, I found some projects but I do not have the component.
So I search in my kit to make a project and learn new things.
I decided to make a DC fan controlled by the Bluetooth module.
Tinker Cad to simulate the circuit before doing it with a real components.
Breadboard to make the wires less as possible as we can.
Arduino board to upload the code on it.
DC fan to make an action( open and close)
Bluetooth sensor to control move of DC fan.
Jumpers to connect the components
At the first I opened Tinker to simulate the circuit, I didn't find the Bluetooth sensor so I searched about a project and I use it.
I made some edits, delete some components, so I can use it as I want.
After that I searched about the DC fan ,but I didn't find it, so I used the DC motor because it is similar to DC fan.
I started to connect the components together and connect them to the Arduino board.
First I connect the Bluetooth module to the Arduino which RX of Bluetooth module connects to TX of Arduino and also TX to RX, the ground and power connections to the breadboard which I connect the ground and power of Arduino.
Second I connect the ground of The DC-fan to the ground of Arduino on the breadboard, and the power to the 13 pin on Arduino to take the sign from Bluetooth.
I started to write the code
first I declared the data with initiative, so I can use it in my code without errors.
Second, at the Setup class, I wrote the things that need to happen once. I started the serial to open the communication with the Arduino and declared the pin of DC-fan.
Third at the void. I wrote the code which will repeated all the time in the loop, I wrote if, else condition that will open when receive H from app and close if did not recieve anything.
At the end of week session, some errors happened at our code and Mohammed helped us to fix them.
Sharkawy helped me at the assignment which I had a problem how to connect the fan to take the signal from the Bluetooth module.
Also I had a problem with the Bluetooth module, it did not connect to the Application.
I make sure that the connections right and the code also, and I change the Bluetooth module but it didn't work too.
When I was connecting the components to the Arduino I connect the power and ground of Bluetooth on the breadboard in the wrong way, and I noticed that the Bluetooth does not blink as supposed to happen.
So I checked the connections again to make sure that everything is right, and I figure out the mistake and correct it.
I do not think that I will use the Bluetooth sensor in my final project, but this week is very interesting which I learned how can I control a component remotely with the mobile phone or the PC.
Title of Media