i I wanted to try how to control the lights through the Bluetooth module because I want to apply it later in different projects So I thought of using the led and controlling it while pressing the buttons inside the app . when user press button 1 the led color will be blue . when press 2 the color will be green when press 3 the color will be red
https://learn.adafruit.com/party-parrot-zoetrope
Arduino App
Arduino ID
TinkerCad
-breadboard
-Arduino UNO
-220-ohm resistors
-100 and 150 resistors
-Jumpers
-Buzzer sensor
-RGB LED
-Bluetooth Module
In the beginning i made this curcuit in tinkercad and search how to connect the bluetooth module with the curcuit
-buzzer negative leg to the positive on breadboard , and the other leg to pin ( 3) output Arduino.
- RGB LED negative leg to the negative side on the breadboard and the green leg to resistor 220 ohm to the pin ( 4) output Arduino
- the blue leg to the resistor 220 ohm to the pin (5) Arduino
the red leg to the resistor 220 ohm to the pin ( 6) output Arduino
- Bluetooth module the TX to the Arduino pin (RX) and, the RX with the two resistors ( 100 and 150 ohm) and the 100 to the Arduino pin (TX ) .
I wrote the code to test the module, whether it works well or not, and I connected the circuit and the bluetooth module as it was shown to us.
-pin (3 , output ) buzzer.
i wrote in the code when the data entering into the bluetooth module is 1 then that makes the buzzer appear a sound, but if it is 0 it makes the buzzer silent
i connected buzzer positive leg in pin (3) and the negative in the breadboard
, and the Bluetooth module the TX to the aarduino pin (RX) and, the RX with the two resistors ( 10 and 150) and the 100 to the Arduino pin (TX ) . After making sure that the bluetooth is working fine, I completed the rest of the electrical circuit .
Title of Media
Then I finished writing the code
pin 3 output (buzzer)
pin 4 output (green )
pin 5 output ( blue )
pin 6 output (red)
i wrote in the code when the data entering into the Bluetooth module is 1 then that makes the buzzer appear a sound
and the led color will be white
when the data entering is 2 makes the buzzer silent and RGB led color will be green
if the data entering is 3 it makes the buzzer silent and RGB led color will be blue
if the data entering is 4 it makes the buzzer silent and RGB led color will be red
i connected buzzer positive leg in pin (3) and the negative in the breadboard
, and the Bluetooth module the TX to the aarduino pin (RX) and, the RX with the two resistors ( 100 and 150 ) and the 100 to the Arduino pin (TX ) .
and the RGB led negative leg to negative of the breadboard
- the green leg to resistor 220 ohm to the pin ( 4)
- the blue leg to resirtor 220 ohm to pin(5) arduino
- the red leg to resistor 220 ohm to the pin (6) arduino
-used the (5v) on the arduino nad connected it to the breadboard
Title of Media
Esraa and Rawan, help me choose the resistor that we use in the bluetooth module (1 k and 2k ) resistors
Title of Media
I have enjoyed using the bluetooth module and how to control the device through the mobile application
Title of Media
At the end of this week, we were supposed to make the (hackathon) my team was (,rawan and farida ) We were a cooperative team, and Rawan wrote the code and shared with us the work of the circuit, code modifications, and connected the components together on the breadboard
Title of Media