The idea of this week to use Blutooth module to control two outputs.
used RGB to give different statues and Screen to print the color.
Tinkercad
Electronics kit
Arduini IDE software
Arduino uno
First thing I grabbed the needed components :
- Arduino - RGB led
- breadboard - lcd Screen
- wires -Resistor
- Bluetooth Module
The Idea of the project to connect RGB led and lcd screen with Bluetooth .
using Bluetooth input and two outputs :
Screen
Buzzer
To do the following
when press " Button 1 " on GUI > then turn RGB Red light and print Red on the screen.
when press " Button 3 " on GUI > then turn RGB Green light and print Green on the screen
when press " Button 2 " on GUI > then turn RGB Blue light and print Blue on the screen .
when press " Button 4 " on GUI > then turn Cyan light print message on the screen .
and two outputs :
Screen to write a warning message
Buzzer
Assemble and wiring all the components together :
Screen SDA (pin A4)
Screen SCL (pin A5)
RGB led Red (pin 2) / Green (pin 3) / Blue (pin 4)
negative terminals connected to (GND )
Vcc connected to (5V )
Bluetooth Rx to Tx Arduino pin / Tx to Arduino Rx
no adaptor used
Code part 1
Code part 2
Code : Week 8
As seen in the video, the screen initially displayed green text, followed by blue text. However, because the blue text started from a different position, the 'G' from the green text remained visible. To address this, I added the lcd.clear() function to the code.
Title of Media
Title of Media
Title of Media