Bluetooth Controlled Robot using pic microcontroller




Bluetooth Controlled Robot: This project is used to control robot motion using Bluetooth and android application. User send control commands from android app to Bluetooth which is connected with pic microcontroller. Microcontroller receives commands from Bluetooth and take respective actions to drive two motor. These two motors are connected with microcontroller through motor driver integrated circuit called L298N. Bluetooth Controlled Robot involved building a robot that can receive commands via Bluetooth and then execute those commands. An Android app was used to send the commands via Bluetooth. Commands were received by Bluetooth module connected to microcontroller and the microcontroller then executed those commands.

Bluetooth Controlled Robot using pic microcontroller

Components of Bluetooth Controlled Robot

Followings are the main components used in Bluetooth controlled robot and all these components  are very easy to use. I will explain working of each of this components for used in this Bluetooth Controlled Robot. Lets explain them one by one.

  1. Pic microcontroller: This is a main part of this project.  Pic microcontroller take main actions like receiving data from Bluetooth module and to control the motors based on received data from Bluetooth module. Microcontroller receives data from BT module through serial communication or UART communication. In serial communication data is transferred bit by bit only one bit at time. Motor driver also gets signal from microcontroller.
  2. Motor Driver L298D: Now the question is why we need to use Motor driver L298D. Because we want to drive motors and microcontroller pins can not provide enough output current to drive motors. Another reason to use this dual full bridge driver is that we want to control direction and speed of both dc motors. It is possible with dual full bridge driver only.
  3. DC motors: Two dc motors are used which are interfaced with microcontroller through dual full bridge driver. When both motors rotate clock wise, robot will move forward and when both motors will rotate anti-clock wise, robot will move reverse. Similarly when one motor rotates clock wise with increasing speed and one motor rotates anti-clock wise with decreasing speed, Bluetooth Controlled Robot will move either left or right. Movement direction of robot depends on which motor is rotating clock wise and which is rotating anti-clock wise. The mechanism is similar to car control system.
  4. HC-05 Bluetooth module: HC-05 module is interfacing with pic microcontroller through serial or UART communication. HC-05 gets commands from android app wireless  and send data to pic microcontroller receive pin.
  5. Android application. We have used Bluetooth RC Car Android app. This app connect with HC-05 Bluetooth through mobile app. When both BT modules are paired with each other. User can send commands from this app to HC-05 Bluetooth module. This is a wonderful app.
READ  Object Detecting Android Mobile Phone Controlled Bluetooth Robot Using PIC Microcontroller 16F877A

Circuit diagram of Bluetooth controlled robot

Circuit diagram of bluetooth controlled robot is shown below. I have already explained working and function of each component of this robot above. I assume that you have understand all the things about the circuit diagram. we can also used LCD to show movement of robot.But it is optional. The circuit we used was the micro controller. There was a Bluetooth module attached to the Rx and Tx signal of the kit and the L298 PWM module was attached to the kit:

Circuit diagram of Bluetooth controlled robot

Operating Voltages of all modules are given below:

Bluetooth Module – 3.3V

Microcontroller board – 5V

L298 Motor Driver – 12V

working of Bluetooth controlled robot using pic microcontroller

The user sends a command, either a direction, change of speed, or turning on/off lights/horn, via the Android app interface. The app sends these commands in the form of a single character. HC-05 bluetooth module, received those commands and sends it to the microcontroller. Depending on the command sent, the microcontroller then executes one of the following:

Direction of movement: Microcontroller generates two waves and using PWM, we drive the motors. If the command for forward came, two waves of the same duty cycle are generated and sent to the motors, via L298 motor driver. For Back command, two same waves are sent, but two more inputs that determine the direction of movement are sent to motor driver to then drive the motor. For Forward movements, In1,In3 are set to 1 and In2,In4 are set to 0. For reverse movement, These inputs are reversed, and that reverses the direction of movement of the motor. For moving right, only one wave is sent to the left motor, and right wave is set to zero. For turning left, opposite is done. For moving forward right, forward left, back right, back left, one motor is sent a wave with half the duty cycle of the other, e.g for FR, right motor is half duty cycle in order to move more towards the right.

READ  DIY Bluetooth RC Car

Read more: Bluetooth Controlled Robot using pic microcontroller




Leave a Comment

*
= 5 + 2

Read previous post:
Make 10x Printed Circuit Boards For $5 On PCBWay
Make 10x Printed Circuit Boards For $5 On PCBWay

The quest for making low cost printed circuit boards is one that will always keep on going and it is...

Close
Scroll to top