LCD - LiquidCrystal
Homework idea this week
It is my creation to use mainly in the final project
It is about using Bluetooth to send commands
via mobile
Show a question on the screen
(press the red button)
This is part of the final project where I will get an answer that implements another action
This idea is for training and preparation for the final project
Softwares :
I used Arduino IDE Software .
Tinkercad
Arduino BlueControl
I uesd These materials :
Arduino Uno
Bluetooth module
Buzzer .
Breadboard .
LCD Liquidcrystal i2c .
Jumpers .
Usb cable .
the beginning :
Develop steps for work and the required components and prepare them .
Then : Connecting the parts in the tinkercad like a picture
and identifying the pins i will used
Then I went to the practical implementation,
and the first thing was the breadboard Then connect the wires from the Arduino to it
Where I connected the red wire from the arduino
To the breadboard to red volt line and the same GNB connected a black wire that connects between the ground on the Arduino and the black ground line on the post board
And connects the buzzer to Arduion pin (9) and GNB in breadboard
And I connected the bluetooth module, which is 4 wires
GNB & vlot to breadboard an the other two pins to Arduin TX , RX pins
Then the screen also arrived with four wires
Two grounds and voltages on the e board
and others on A4 & A5
Then downloaded the bluetooth control software on my mobile phone
I used the Arduino program to write the codes and download the screen driver library
And write codes to operate the button, screen and bluetooth according to the commands sent from the mobile .
This smart circuit is built to be used via Bluetooth
Where Bluetooth sends three commands
The first operates the buzzer
And the second turn on the screen with a message written in it a question
Press the green button
The third is also a message with a question, press the green button
This is done by using the attached code, where a character is reserved
I used the IF conditional code to place the orders
Where the first command says if the value sent from Bluetooth == 1
He makes the button play a short piece of music
Also, if Bluetooth sends command number 2
The screen displays the first question
Also, if you send an order number 3
The screen displays the last question
The smart circuit has been tested and works perfectly and functional
Attached are three video files of the circuit and a video of the Bluetooth mobile application
and attached file Arduino code (*.ino)
the challenge :
The first challenge: Bluetooth did not work at first because I connected the wires According to the writing on the board
TX TO TX
RX TO RX .
And write on the Arduino
Then the instructor advised me to reverse the wires where the sender communicates with the receiver
And vice versa
This modification succeeded and the bluetooth worked
The second challenge:
I was putting in the code for the screen
Line number (1 & 2 ) , the words did not appear on the screen
After searching and seeing examples on screen
I found out that the numbering of the screen lines is zero and one
And it has 16 sixteen columns
This number and line place must be taken into account when writing the code
Title of Media
THE idea this week IT'S FOR MY FINAL PROJECT
It is about using Bluetooth to send commands
via mobile
Show a question on the screen
IT'S the first step then in my project i will add push button to answer this questions
and make action when it's right or Wrong