This week my assessment revolves around making a circuit and connecting it with Bluetooth
I get inspired by smart home and how easily we can control light and fan by Bluetooth
electric component for making the circuit (LED/breadboard / resistor / Lots of wires / fan / Arduino/ Bluetooth module/Arduino / Lots of wires )
Arduino program for coding
Arduino blue-control mobile app for controlling the circuit by Bluetooth
I started the circuit design using the previous components I have explained(breadboard / resistor / Lots of wires / LCD I2C screen / Arduino/ RGB LED / Bluetooth module / fan )
then uploaded the code to the Arduino program after that I started stimulation to ensure the circuit worked.
Here i used 4 pin current because thinker cad don't have Bluetooth module
and dc motor instead of the fan because thinker cad don't have a fan
in this circuit, I want to stimulate the fan and RGB LED by Bluetooth module so for stimulation :
1- I connected the positive ( breadboard ) to the 5v pin in the Arduino / negative ( breadboard) to the ground pin in the Arduino , for multiball stimulation current for many components ( fan / RGB LED / Bluetooth module )
2—Connect the fan positive pin to pin (8) in the Arduino and the negative pin to the ground on the breadboard.
3- Connect the RGB LED positive pin to pin (5)(6)(9) in the Arduino because those pins are analog / RGB LED negative pins to the ground in the breadboard. also 3 resistors ( 330 oms) to the 3 RGB LED pins except for the ground pin ( resistor for organizing the amount of voltage applied to the LED because the maximum LED voltage is 20 om )
4- connect the Bluetooth module's positive pin to the positive pin in the breadboard/ground pin to the negative pin on the breadboard, and the other 2 pins to (tx ) (rx) in the Arduino ( I didn't put the resistor in the circuit because we only receive data not sending data ).
After uploading the code on the Arduino I connected my mobile with the Bluetooth module name, then I opened the Arduino blue-control mobile app and controlled the circuit by numbers ( 1 for the fan and (2-3-4) for the RGB LED colors))
yes, I asked my beers and instructor about the color and coding of LED LDR. Their ideas helped me complete the circuit with my favorite color.
I got stuck during the RGB LED coding. I didn't know how to make the different colors (red/blue/purple) so I searched for the code and it worked.
also, I was stuck in the Bluetooth wiring. when I tried the circuit the first time it didn't work so I checked the wiring and found that I didn't connect the Bluetooth module to the ground.
I can use these skills in designing the circuit of my final project by using thinker cad and the electric components also connecting it with Bluetooth.
The coolest thing is how easily I can make a circuit and control it with Bluetooth.
I will never forget how enjoyable working in different team