Title of Media
This week’s assignment was to Design and program
Build a simple smart circuit that contains at least TWO action components that you can control wirelessly.
Use either the Android GUI or PC GUI to control the action components
i decide to build an RC Car wich beeps with a buzzer when going backword direction only
i used mainly Arduino IDE for coding it uses C language which they say the easiest "eye rolling", i still get confused trying to write any thing with it
the Arduino process the code in parts :
First part defining used library's and used variables and pins numbers.
Second part is Void Setup the code included in this runes one time only.
here also you setup pin Mode on the Arduino for OUTPUT "action component" like a buzzer or motors
the definition part /// setup for outputs pin
Third part:
Void loop its the part of the code where you want it to loop and repeat itself
until stopped by something in the code itself otherwise it will loop for ever.
here i used If conditions for waiting serial " if (Serial.available()) "
and storing files in a char called (T) "t = Serial.read();" when t =some kind of character defined lately it will do an action
the actual code Void Loop
first i connected components together as the wiring diagram of each
then i connected the Arduino and uploaded the cod via ide
Arduino ide
then i paired my phone to the Bluetooth module
its name is HC-05
i then downloaded an app called : Arduino BlueControl from the app store
it basically map some buttons and send them to the Arduino in whicgh it will do an action if the same choosed character in the code
i then downloaded an app called : Arduino BlueControl from the app store
it basically map some buttons and send them to the Arduino in whicgh it will do an action if the same choosed character in the code
i used an Arduino Nano i had before
and connected it to the h-bridge and buzzer and Bluetooth module like the diagram below
Title of Media
Title of Media
i learned how to make a function and how to add it to your code i added the beeping in a function when the car goes in the backward direction
Title of Media
Title of Media
controlling over Bluetooth is so easy actually
Title of Media
Title of Media