The assignment of this week is Build and Program a smart circuit that that contains at least TWO action components that I can control wirelessly by A Graphical User Interface (GUI) using Arduino C (Text Code).
First, mi idea for this week is RGB led with buzzer controlled wireless, by making it like a birthday party with the colors and the buzzer make the birthday tone. also I wan interested to this idea to learn the RGB coding and controlling because my final project has a RGB led, so It will be an experience with assignment .
Software:
Tinkercad
To test my circuit to make sure that it is works without any problem and simulate it
Arduino IDE
to write the code and upload to the Arduino
Arduino Blue Control
To control the actions
Machine: ..............
Materials: .............
By searching for the right wiring of the RDB led
Create new circuit
Detect the components needed (Arduino, Breadboard, RGB led, resistor and buzzer )
And Bluetooth module but It does not exist in tinkercad
Insert the components and start connect (Wiring)
After wiring were finished, I start to coding and implement the design
Firstly, Start wiring the components as I did on the tinkercad with adding the Bluetooth module
Secondly, open the Arduino IDE and then start to write the code and the conditions by:
define the constants
define the inputs and outputs void setup
Serial print to see the data from the mobile
write the conditions that if I send from 1 to 6 will make deferent actions for example if I send 1 the red color will ON and 6 make it OFF
Then upload the code to the Arduino
Thirdly, test the serial print with the mobile before the conditions
At the end,
The final Output
I asked Mohamed Adel when i finish the code and upload to the Arduino and it does not upload and he told me to disconnect the Vcc and GND of the Bluetooth module during uploading and it works
when I test the data in serial print it does not work and there is no data in the serial). I checked the wires and the Bluetooth module and I modified a lot in the code and it didn't work either
At the end I searched for the Bluetooth module wiring and found that the RX and TX are connected to pin 0 and 1 only then I edit the wiring, after that it works.
I learned how to control any action wireless where if I want to run the fan for example by using Bluetooth and write a code which can deal with this process.
The coolest thing that I have learned this week is how to control many actions wireless by mobile phone
Title of Media