The Assignment for this week is to Communicate wirelessly with a Smart Circuit via a Graphical User Interface (GUI) on phone or PC.
My idea here is to build a simple smart home that can control Sound and light with my mobile wireless.
Hardware
Arduino UNO to control the system.
RGB led for light.
Buzzer to create sound.
Jumpers for wiring.
Bluetooth Module to communicate with mobile phone.
Software
Tinker Cad to simulate the design before wiring it.
Arduino IDE to write and test and burn the code.
Arduino Bluetooth controller android app to send commands.
First set pins mode in setup function to be output for motor and buzzer.
Give names to pins to be more readable.
Start the loop function with a while loop that waits until the user sends commands.
If the user sends '1' that means he wants to switch the buzzer.
If the user sends '2' that means he wants to switch the light.
Connect the buzzer to the ground and pin 2 in Arduino.
Connect led to ground and pin 3 in Arduino.
Connect Rx in Bluetooth module to Tx in Arduino.
Connect Tx in Bluetooth module to Rx in Arduino.
Power the Arduino using a 5v Adapter.
Use Mobile App to send 1 or 2 to the Bluetooth module.
I was very sure of the connections, but the buzzer did not work well, so I used the Avometer to check the jumper and it was the problem, then I replaced it with another one and it worked well.
I learned how to use The Bluetooth module and its connection and wiring technic.
Also, I learned how to use a mobile application to send commands wireless.
The challenge of fishing was very interesting and not only learned how to make this thing, but we also learned patience.