0% found this document useful (0 votes)
5 views16 pages

4in1 Robotics Tutorial 3 V2 2022

The document outlines a course on electronics, programming, and robotics, focusing on using Bluetooth modules (HC-05 and HC-06) for robot motion control. It covers the setup and configuration of the Bluetooth module with Arduino, including AT commands for setting baud rate, device name, and password. The tutorial emphasizes hands-on learning and practical application in robotics projects.

Uploaded by

Munashe Mazvanhi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views16 pages

4in1 Robotics Tutorial 3 V2 2022

The document outlines a course on electronics, programming, and robotics, focusing on using Bluetooth modules (HC-05 and HC-06) for robot motion control. It covers the setup and configuration of the Bluetooth module with Arduino, including AT commands for setting baud rate, device name, and password. The tutorial emphasizes hands-on learning and practical application in robotics projects.

Uploaded by

Munashe Mazvanhi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

BRUTE FORCE

ELECTRONICS-PROGRAMMING-ROBOTICS

BRUTE FORCE
Course Overview

▪ Week 1 – Electronics
▪ Week 2 – Programming
▪ Week 3 – Arduino
▪ Week 4 – Robotics

BRUTE FORCE
Tutorial 3

Bluetooth Module for Motion Control

BRUTE FORCE
Focus
● Bluetooth module (HC-05)
● Robot controlling

BRUTE FORCE
Recap
● In the previous tutorial we learned how
we can change the motion using Arduino
cone and Malkon.
● We learned how we can control the
forward, reverse, left, and right and stop
using delays.
● This means the robot can only change
motion after time.
● What happens then when we want to
remove the time factor?
● In this tutorial, we shall learn motion
control using Bluetooth.
BRUTE FORCE
HC-05 and HC-06
● HC-05 and HC-06 Bluetooth modules are Bluetooth to serial converters
that connect microcontrollers (like Arduino) to other Bluetooth-enabled
devices.
● Install the software serial library in order to be able to use the Bluetooth
module

BRUTE FORCE
HC-05 pins

BRUTE FORCE
HC-06 pins

BRUTE FORCE
PIN NO. Pin Name Pin Description
This pin is used to bring the Bluetooth module in AT
commands mode. By default, this pin operates in data mode.
1. KEY/En The Key/EN pin should be high to operate Bluetooth in
command mode. In HC-05, the default baud speed in
command mode is 38400bps and 9600 in data mode.
Used to power the Bluetooth module. Give 5V / 3.3 V to this
2. VCC
Pin.
3. GND The ground pin of the module
Connect this pin with the RXD pin of the Microcontroller. This
pin transmits Serial data (wireless signals received by the
4. TXD
Bluetooth module are converted by module and transmitted
out serially on this pin)
Connect this pin to the TXD pin of the Microcontroller. The
5. RXD HC-05 Bluetooth module receives the data from this pin and
then transmits it wirelessly.
It is used to check if the module is connected or not. It acts as BRUTE FORCE
6. STATE
a status indicator.
Arduino Bluetooth pin mode and name changing
● Before interfacing the Bluetooth module with the Arduino Uno, first open a basic Arduino
sketch consisting of the void setup and void loop functions.
● Before uploading this program, first of all, make sure that the Arduino is connected to the
laptop, and the right board and right comport are selected, then click on the upload button
and wait for a while, once the program is uploaded then connect the Bluetooth module with
the Arduino.
● Connect the En pin of the Bluetooth module with 3.3volts.
● Connect the VCC of the Bluetooth module with 5 volts.
● Connect the ground with the Arduino’s ground.
● Connect the Rx pin of the Bluetooth module with the Rx pin of the Arduino board and connect
the Tx pin of the Bluetooth module with the Tx pin of the Arduino.
● When you turn ON the Arduino Uno, make sure you hold the Bluetooth module Push Button,
otherwise, the Bluetooth module won’t enter into the AT commands Mode.

BRUTE FORCE
AT commands settings
• Once we power the Arduino we will
have the Bluetooth LED blinking fast in
an interval of half of a second
• This means the AT mode wasn’t
entered
• So before powering the Arduino just
hold the push-button pressed and then
power your Arduino.
• As a result, the LED will start blinking
slower in an interval of 2 seconds which
indicates the successful entering of
the AT command mode.
• Now we run the Arduino serial monitor
to start sending the AT commands.
BRUTE FORCE
AT commands settings
• In order to start the settings we run the
serial monitor and set the baud rate to
9600 and both NL & carriage return.
• We will start by setting the Baud rate to
9600BPS and to do so we need to
write AT+UART=9600, 0, 0 then hit
enter, in every successful operation
you need to get an OK response from
the Bluetooth module
• We will change also the Bluetooth
name to Device1 so we write
AT+NAME=Device1
• And we will change the Bluetooth
password as well to 2020 so we write
AT+PSWD=2020 BRUTE FORCE
Connection

BRUTE FORCE
The code

BRUTE FORCE
The code

BRUTE FORCE
THANK YOU ARDUINO GEEKS!

IGNITING CREATIVITY - LEARN BY DOING

You might also like