Me getting ready for the final project
The final project is getting me anyway 😅
Creating part of the coding and the circuit of the final project.
The Bluetooth module with the motor and LCD screen.
I started with creating the wiring on TinkerCad.
Below, will include all the details.
Input Components:
1. Bluetooth Module (Serial Communication):
Input Type: Bluetooth commands (F, B, L, R, S).
Action Triggered:
F: Move motors forward.
B: Move motors backward.
L: Turn left.
R: Turn right.
S: Stop motors.
Action(Output) Components:
1. Motors (Motor 1 & Motor 2):
Control Pins
- Motor 1: in1, in2.
- Motor 2: in3, in4.
Action:
- Move forward, backward, left, right, or stop based on Bluetooth commands.
2. LCD Display:
Control Type: Display text (quotes) on a 16x2 LCD.
Action:
- Displays motivational quotes, updated every 10 seconds.
Bluetooth Module:
RX ===> TX Arduino Uno (green)
TX ===> RX Arduino Uno (orange)
GND ===> -ve rail breadboard (black)
Vcc ===> +ve rail breadboard (red)
MOTORS - L298n
OUTPUTS 1,2 ===> motor 1 ( red+brown)
OUTPUTS 3,4 ===> motor 2 ( green+orange)
Vcc ===> socket of the battery 9v (green)
GND ===> -ve rail on breadboard (black)
5v ===> +ve rail on breadboard (orange)
IN1,IN2 ===> pin 5,6 Arduino Uno (green, orange)
IN3,IN4 ===> pin 9,10 Arduino Uno (black,brown)
LCD screen
SDA ===> A4 Arduino Uno (green)
SCL ===>A5 Arduino Uno (blue)
GND ===> -ve rail breadboard (black)
Vcc ===> +ve rail breadboard (red)
Started with testing the components, there was a problem in the Bluetooth module, I'll explain the features:
1. Bluetooth Control: The user can control motor movement with Bluetooth commands such as F (Forward), B (Backward), L (Left), R (Right), and S (Stop).
2. Quote Display: Motivational quotes are shown on a 16x2 LCD, changing every 10 seconds.
Bluetooth Module:
RX ===> TX Arduino Uno (green)
TX ===> RX Arduino Uno (orange)
GND ===> -ve rail breadboard (black)
Vcc ===> +ve rail breadboard (red)
MOTORS - L298n
OUTPUTS 1,2 ===> motor 1 ( red+brown)
OUTPUTS 3,4 ===> motor 2 ( green+orange)
Vcc ===> socket of the battery 9v (green)
GND ===> -ve rail on breadboard (black)
5v ===> +ve rail on breadboard (orange)
IN1,IN2 ===> pin 5,6 Arduino Uno (green, orange)
IN3,IN4 ===> pin 9,10 Arduino Uno (black,brown)
LCD screen
SDA ===> A4 Arduino Uno (green)
SCL ===>A5 Arduino Uno (blue)
GND ===> -ve rail breadboard (black)
Vcc ===> +ve rail breadboard (red)
12 volt adopter
+ve ===> +ve rail on breadboard
-ve ===> negative rail on breadboard
الwiring هيجنني يا مُعتز
First, it wasn't working so I had to change it.
Second, I learned to remove the TX & RX from Arduino while compelling the code because the signals interfere.
Honestly, I used Chatgpt, and it helped me out.
Top el top bgd
Generating a code from the beginning.
Using Chatgpt to debug my code.
This is half of the final project, so it'll help me a lot.
How I looked like when:
Menna said:
"نأولو الأولايات"
I knew it, I'll be late forever :"'''
"كدا التسليمات خلصت؟؟؟"