mohdazhar
INDIA • + Follow
Edit Project
Description
A ESP32 BASED BLUETOOTH MINI ROBOT
A simple mini robot that you can control with your phone. The robot can be improvised and implemented for various objectives. We here are going to speak about the making of the robot.
MATERIALS REQUIRED
ESP32
Breadboard
L293D motor controller
IR module
10 mm LED
1 k resistor
Robot Chassis
4 x AA Battery
Micro usb cable
6 x male to male and male to female cables
STEPS TO BUILD THE ROBOT CHASSIS
STEP 1 - MOUNT MOTORS TO THE BODY
Mount the motors with the help of supports , nuts , and bolts.
STEP 2 - ADDING THE FRONT WHEEL
Mount the pillars to the wheel and screw on the pillars to acrylic body
STEP 3 - ATTACHING BATTERY BOX AND SWITCH
Place the switch into the hole in the acrylic body. Screw the battery box onto the body.
STEP 4 - SOLDERING THE SWITCH
Solder the switch to the battery
STEP 5 - INSTALLING BATTERIES AND MAKING THE MOTOTR CONTROLLER INTERFACE
Follow the circuits above.
STEP 6 - CONNECT MOTOR CONTROLLER
STEP 7 - CONNECT TO ESP32
Make the final connections and your robot is ready to go
Code
MOTOR CONTROL INTERFACE
C/C++
#include "BluetoothSerial.h"
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
#endif
#if !defined(CONFIG_BT_SPP_ENABLED)
#error Serial Bluetooth not available or not enabled. It is only available for the ESP32 chip.
#endif
BluetoothSerial SerialBT;
// Variable for storing incoming value
char Incoming_value = 0;
//L293D
//Motor A
const int motorPin1 = 26; // Pin 14 of L293
const int motorPin2 = 25; // Pin 10 of L293
//Motor B
const int motorPin3 = 33; // Pin 7 of L293
const int motorPin4 = 32; // Pin 2 of L293
//This will run only one time.
void setup(){
// for serial data transmission
Serial.begin(115200);
SerialBT.begin("Azhar"); //Bluetooth device name
//Set pins as outputs
pinMode(motorPin1, OUTPUT);
pinMode(motorPin2, OUTPUT);
pinMode(motorPin3, OUTPUT);
pinMode(motorPin4, OUTPUT);
}
void loop(){
{
if (SerialBT.available() > 0)
{
// Read the incoming data and store it in the variable
Incoming_value = SerialBT.read();
// Print value of Incoming_value in Serial monitor
Serial.print(Incoming_value);
Serial.print("\n");
// Checking whether value of the variable
if (Incoming_value == 'f')
forward();
else if (Incoming_value == 'b')
backward();
else if (Incoming_value == 'l')
left();
else if (Incoming_value == 'r')
right();
else if (Incoming_value == 's')
stopRobot();
}
// Adding a delay before running the loop again
delay(1);
}
}
void forward(){
digitalWrite(motorPin1, HIGH);
digitalWrite(motorPin2, LOW);
digitalWrite(motorPin3, HIGH);
digitalWrite(motorPin4, LOW);
}
void backward(){
digitalWrite(motorPin1, LOW);
digitalWrite(motorPin2, HIGH);
digitalWrite(motorPin3, LOW);
digitalWrite(motorPin4, HIGH);
}
void left(){
digitalWrite(motorPin1, HIGH);
digitalWrite(motorPin2, LOW);
digitalWrite(motorPin3, LOW);
digitalWrite(motorPin4, LOW);
}
void right(){
digitalWrite(motorPin1, LOW);
digitalWrite(motorPin2, LOW);
digitalWrite(motorPin3, HIGH);
digitalWrite(motorPin4, LOW);
}
void stopRobot(){
digitalWrite(motorPin1, LOW);
digitalWrite(motorPin2, LOW);
digitalWrite(motorPin3, LOW);
digitalWrite(motorPin4, LOW);
}
Schematic and Layout
Jun 28,2022
519 views
A ESP32 BASED BLUETOOTH MINI ROBOT
An ESP32 based bluetooth mini robot that you can control with your mobile phone.
519
0
0
Published: Jun 28,2022
Purchase
Donation Received ($)
PCBWay Donate 10% cost To Author
Copy this HTML into your page to embed a link to order this shared project
Copy
Under the
Attribution-ShareAlike (CC BY-SA)
License.
- Comments(0)
- Likes(0)
Upload photo
You can only upload 5 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP
0 / 10000
It looks like you have not written anything. Please add a comment and try again.
You can upload up to 5 images!
Image size should not exceed 2MB!
File format not supported!
View More
View More
VOTING
0 votes
- 0 USER VOTES
0.00
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Design
1/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Usability
2/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Creativity
3/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Content
4/4
More by mohdazhar
- Automatic Bus Stop Announcement System When we travel by bus ,the route of the bus is unknown to a new passenger. It mostly affects the ill...
- Earthquake Alert System Based On IOT Many countries have implemented EEW(early earthquake warning) systems to save human lives. The earth...
- Smart Street Light Smart Street Light spotlights different restrictions and difficulties identified with traditional an...
- Line Break Detector With Alert System Line Break Detector With Alert System is a mechanism which helps the consumer and KSEB officers to d...
- Smart Railway Gate Opening System Using IOT The railway crossing accidents are increasing day by day due to human-manned railway crossings. Live...
- Advanced Biometric Finger Print Scanner We took the case of our hostel mess and concluded that there is no proper way to manage the hostel m...
- Baby Monitoring System We are very well familiar with the hurdles faced by Parents to nurture their infant and especially i...
- TOKEN MACHINE AND QUEUE MANAGEMENT SYSTEM FOR HOSPITALS ABSTRACTPatient wait times have a strong influence on patient satisfaction levels. A common scenario...
- Make your own branded ESP32 development board with PCBWay! What about making your own custom PCB boards with your own branding? Doesn't that sound nice? PCB ma...
- FOODIE BOT Automation has become an integral part of today's modern life. We are increasingly noticing that mor...
- A ESP32 BASED BLUETOOTH MINI ROBOT A simple mini robot that you can control with your phone. The robot can be improvised and implemente...
- IOT smart AC plug A smart plug is a home automation device and is a hot new thing. Several types of smart plugs are av...
- "A perfectly working line follower robot using arduino" LINE FOLLOWER ROBOT - THE EASIEST!This is a simple tutorial to make a line follower robot using Ardu...
- IOT PLANT - GROW YOUR PLANTS FROM ANYWHERE AROUND THE WORLD. Watch the video The device and plant setupWhat about growing any plants from anywhere around the wor...
- HOW TO PROGRAM ESP8266 - 01 In this tutorial, I am going to show how to program ESP8266 - 01 using an Arduino board or using FTD...
- Make Your First Arduino Robot - the Best Tutorial Out There Smartphone-controlled obstacle avoiding and wall follower robot.Are you a beginner in Arduino and ha...
- THE ULTIMATE OFFROAD RC ROVER Let's make an all-terrain remote-controlled rover bot. This is a great starter project for hobbyists...
- MAKE A 3.3 VOLT REGULATOR FOR ESP8266 The 3.3-volt power supply is one of the main issues when we use ESP8266 - 01 as a standalone board. ...
You may also like
-
-
-
kmMiniSchield MIDI I/O - IN/OUT/THROUGH MIDI extension for kmMidiMini
125 0 0 -
DIY Laser Power Meter with Arduino
173 0 2 -
-
-
Box & Bolt, 3D Printed Cardboard Crafting Tools
164 0 2 -