This week was very wonderful, especially in learning to control electronics remotely using Bluetooth and means of communication without wires, so I thought about controlling the RGB LED by giving it a different command to produce different colors and also controlling the buzzer with it
We designed the circuit on Tinkercad
electronic component:
-ON/OFF Switch -DC Power Adapter -DC Jack to terminal block converter
-Jumper Wires (Male-Female) -Crocodile Wires
Arduino
resistor
adapter power
adapter power
on/of switch
bluetooth module
wire male or female
RGB ED
RGB LED
Buzzer module
resistor
Arduino
Push Bottom
bluetooth module
RGB with buzzer by bluetooth module
I made a definition of the pin, a picture of the numbers, that was easy to deal with without any difference between them
I defined the input buttons and the output as the LED so that I can output signals or its readings as you can see in the code
I defined the input buttons and the output as the LED so that I can output signals or its readings as you can see in the code
Here, in the stages of the loop, we first check the data coming from abroad via the Bluetooth module. If the next signal is equal to a specific number, it performs the required action that expresses or indicates the number coming from the other device.
I connected the RGB LED as we can see the ground with the negative and with each end a resistance of 220 ohms so as not to burn the LED
I connected the RGB LED as we can see the ground with the negative and with each end a resistance of 220 ohms so as not to burn the LED and then I connected the ground buzzer to the negative and the other end to a pin connected to the Arduino
And in the Bluetooth model I connected it as we see in the picture :
GND with GND pin arduino
VCC with 5v pin arduino
TX with RX pin arduino
RX with TX pin arduino
The problem we are facing:
The problem was that the bluetooth was disconnected and required to restart the Arduino
Solve the problem :
The power was not stable, and I replaced the USB with the power adapter, in addition to that some units have this problem and must be changed so I used a 9V adapter for Arduino instead of USB for the laptop in order to make the power more stable and keep the connection between the device connected to the Bluetooth with the project
Title of Media
Title of Media
Title of Media