Communicate wirelessly with a Smart Circuit via a Graphical User Interface (GUI) on your phone or PC.
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.
RGB LED
I want to control LCD and RGB LED.
My project is controlling RGB-led to "light red when we press 1, green when we press 2, blue when we press 3, and white when we press 3" & LCD to view the names of colors.
links of inspiration:
Tinkercad to design the circuit
Arduino to upload the code
9V adaptor
Arduino uno and usb
Jumper Wire
LCD
Bluetooth module
RGB LED
Resistors
STEP 1
I designed my circuit on Tinkercad.
I used the LCD & RGB LED as the output component and the Bluetooth module as the input component.
I used 9V adapter as a power source.
I used Arduino Uno as a controller.
I simulate the circuit on Tinkercad.
The goal of the project is that when I press one of the numbers on the phone, one of the colors lights up and the name of the color appears on the screen.
STEP 2
I start by searching for codes.
After researching how to write the special components in the project, I started writing the code that achieves the project goal.
I started by defining the Bluetooth sensor library and the display library and defining each pin of the LED.
void setup() In this void we will define INPUT and OTPUT. I also specified the word that will be displayed initially once when the circuit is connected.
void loop() At this stage, we will set the scenario that the process will follow.
When I press the number 1 on the phone, the red light turns on, and we write the word “Light turned on:” in the first line and write “RED light”.
When I press the number 2 on the phone, the green light turns on, and we write the word “Light turned on:” in the first line and write “GREEN light”.
When I press the number 3 on the phone, the blue light turns on, and we write the word “Light turned on:” in the first line and write “BLUE light”.
If any other button is pressed, the light turns off.
In the end, I checked the code, then connected the Arduino, selected the board, and uploaded the code.
STEP 1
I made my circuit.
I connected the LED to the coded pins and connected a resistor to each pin.
After that, I connected the screen so that the VCC pin is with the 5 volts, the GND pin is with the GND pin for Arduin, the SDA pin is with A4, and the SCL pin is with A5.
After that, I connected the Bluetooth sensor so that the VCC pin is connected to 5 V, the GND pin is connected to the Arduino’s GND, the TXD pin is connected to the Digital pin 0, and the RXD pin is connected to two resistors so that the end of the first resistance is connected to the RXD and the point where the two resistors meet is connected to the Arduino’s GND and the resistance pin. The second connects to digital pin 1.
connect the 9V adapter and test the circuit.
After connecting all the elements in the circuit as necessary and running the circuit, I found that when I press the buttons when writing new sentences on the screen, I found that there are some letters from the old ones on the screen. After researching, I found that we must be given an order to clean the screen before printing the new word.
After connecting all the elements in the circuit as necessary and running the circuit, I found that when I press the buttons when writing new sentences on the screen, I found that there are some letters from the old ones on the screen.
After researching, I found that we must be given an order to clean the screen before printing the new word.
I modified the code so that I added a line "lcd.clear();" before the writing line.
I understood how Bluetooth sensors work and how can i control the circuit.
With my team, we made this arm To catch fish.