This week's assignment was to build a simple smart circuit that contains at least TWO action components that you can control wirelessly. and to use either the Android GUI or PC GUI to control the action components. And as it was the last week of MD and it was time to go rock the world with our projects. I was inspired by the traffic lights and how cars move to their destination by just changing lights. So here we goo.
The software used for the assignment:
TinkerCad circuits building and simulation online tool
Arduino IDE
The Hardware:
Arduino UNO
Bluetooth module
Jumpers wires
Buzzer (5V)
RGB LED
3 1k ohm resistors
3 330 ohm resistors
Cardboard
I dragged and dropped the components of the circuit in the design workspace in Tinker CAD
1- I connected the GND and 5V of the Arduino to the breadboard.
2-I connected the three anodes of the LED to three 330ohm resistors and the Arduino pins (3,5,6). And the cathode to the ground.
3- I connected the buzzer negative part to the ground in the breadboard and the positive one to pin 11.
4- I then connected the bluetooth module to the breadboard where I connected the GND to the ground, VCC to the 5V, TXD to the TX, and RXD to a 1k and 2k resistors then to the RX of the Arduino.
Coding:?
Serial . begin 9600
- Specify the output : ( RGB LED , buzzer )
void setup :
{ while serial avaliable =0} to the clarification that output will not work without value
{ incoming data = serial read } the value that will come from the Arduino control app will save on it
Specify every button what will do :
button1 : blue led will work
button2 : green led will work
button3 : red led will work
button4 : buzzer will work
and delay (1000)
I had a problem wiring the Bluetooth module as I didn't fully understand it from the videos, and I aactully burned one trying to wire it. So I asked Twancy; an MD alumni who told me the right way to wire it.
I got more confident with writing code and debugging and I guess it will really help me later with my final project .
I worked with my friends SALMA and AHMED to make the coolest robot arm. It was really fun and delightful project that got me excited for my final project