SlideShare ist ein Scribd-Unternehmen logo
1 von 16
Downloaden Sie, um offline zu lesen
1
COMPLEX
ENGINEERING PROBLEM (CEP)
Course Title:
Introduction to Embedded Systems
Title:
ANDROID CONTROLLED ROBOT USING MICROCONTROLLER
8051
Submitted to:
Engineer: Atif Mahmood Khaki
Submitted by:
Sadam Hussain
GCPKI-00857
Department:
BEEE (4th)
2
ABSTARACT
Many of the wireless robot using RF modules. But this project make use of android mobile
phone for robotic control. The control commands are available more than modules. For this the
Android mobile user has to install the application on his/her mobile phone. The user need to
turn on the Bluetooth in the mobile. The wireless communication technique used to control the
robot is Bluetooth technology. User can use various command like move forward, reverse,
move left and move right using these commands which are sent from the android mobiles,
Bluetooth has a Bluetooth receiver unit which receive the command and gave it to
microcontroller circuit to control the motors. The microcontroller then transmitting the signal
to the motor driver ICs to operate the motors.
3
OVERVIEW
CONTENTS
1) INTRODUCTION-------------------------------------------------------------- 4
1.1) Problem Statement………………………………………………………….4
1.2) Objectives…………………………………………...………………………4
2) HARDWARE REQUIRED-----------------------------------------------------4
3) SOFTWRE REQUIRED--------------------------------------------------------4
4) EXPLANTION--------------------------------------------------------------------5
5) SOFTWRE CODE AND SCHEMATIC DIAGRAM---------------------5
5.1) Kiel u Vision C language code………………………………………………….5-11
5.2) Proteus schematic Diagram………………………………………………………11
6) SOFTWARE OUTPUT----------------------------------------------------------12
6.1) Kiel u Vision…………………………………………………………………….12
6.2) Proteus professional…………………………………………………………13-14
7) CONCLUSION-------------------------------------------------------------------15
8) REFRENCES---------------------------------------------------------------------15
9) FUTURE SCOPE----------------------------------------------------------------15
10) GLOSSORY----------------------------------------------------------------15-16
4
1) INTRODCTION.
1.1) Problem Statement:
Design and Implement Android Controlled Robot Using 8051 Microcontroller.?
1.2) Objectives.
Android is software stack for mobile devices that include an operating system middleware and key
application. Android boast a healthy array of connectivity options, including Wi-Fi Bluetooth and
wireless data over a cellular connection (for example, GPRS, EDGE (Enhanced Data rate for GSM
revolution) and 3G. Android provide access to wide range of useful libraries and tools that can be
used to build rich applications. In addition, Android includes a full set of tools that have been built
from the ground up alongside. The plate form providing developers high productivity and deep
insight their applications.
The controlling device of the whole system is microcontroller, Bluetooth module, Dc motors
are interfaced to microcontroller. The data received by the Bluetooth module Android smart
phone as feed as input to the controller. The controller acts according on the dc motor of the
Robot. The robot in the project can be made to move in all four directions using the Android
phone the direction of the robot is indicated using Virtual Terminal and Motors. In achieving
the task the controller is loaded with program written using embedded C language using Kiel
u Vision.
2) HARDWARE REQUIRED.
The following Components are required to complete the CEP.
▪ 8051 microcontroller (AT89S52)
▪ HC-05 Bluetooth module
▪ L293D Motor Driver
▪ Robot chassis
▪ DC Motors (2)
▪ Wheels (2)
5
▪ Castor Wheel
▪ Jumper wires
▪ Bluetooth terminal android app
3) SOFTWARE REQUIRED
▪ Kiel u Vision
▪ Proteus professional
▪ Android App (Bluetooth App)
4) EXPLANTION
The project aims in designing a robot that can be operated using Android mobile phone.
The controlling of the robot is done wirelessly through Android smart phone using the
Bluetooth feature present in it. Here in the project the Android smart phone is used as remote
controlling for operating the robot.
Here in this robot I have used a Bluetooth module to control via two motor at 100RPM
approximately the robot is controlled by an Android application microcontroller used as
AT89C51 from 8051 family to work in serial communication UART mode the communication
is configured on 9800bps to communicate it with the Bluetooth module.
The Bluetooth module used is a HC-05 in smd package which works on 3.3v and have a serial
communication with any devices connected to it the communication speed can be configured
on various speed via AT command.
The BT module is a SPP supported profile so it can be connected easily to any Bluetooth
module or phone. In this profile the data can be sent and receive to module. The BT module is
connected to the RX pin of microcontroller.
The L293D is a motor driver IC to operate the motor in any direction required dependent on
the logic applied to the logic pin.
A readymade compact size chassis I have used to avoid the chassis Assembly the chassis
contain two decks the lower is used for Motors fitting the upper is used as a battery stack.
6
On top the plate the board is mounted by screw fitting.
5) SOFTWRE CODE AND SCHEMATIC DIAGRAM
5.1) Kiel u Vision C language code
#include<reg51.h>
unsigned char ch1;
unsigned char s;
sbit m1f=P2^0; // in1 pin of motor1
sbit m1b=P2^1; // in2 pin of motor1
sbit m2f=P2^2; // in1 pin of motor2
sbit m2b=P2^3; // in2 pin of motor2
void delay(unsigned int) ; //function for creating delay
char rxdata(void); //function for receiving a character through serial port of 8051
void txdata(unsigned char); //function for sending a character through serial port of 8051
void main(void)
{
unsigned char i;
unsigned char msg1[]={"robot is moving forward"};
unsigned char msg2[]={"robot is moving backward"};
unsigned char msg3[]={"robot is moving right"};
unsigned char msg4[]={"robot is moving left"};
unsigned char msg5[]={"robot is stopped"};
TMOD=0x20; //timer 1 , mode 2 , auto reload
SCON=0x50; //8bit data , 1 stop bit , REN enabled
7
TH1=0xfd; //timer value for 9600 bits per second(bps)
TR1=1;
while(1) //repeat forever
{
s=rxdata(); //receive serial data from hc-05 bluetooth module
if(s=='f') //move both the motors in forward direction
{
m1f=1;
delay(1);
m1b=0;
delay(1);
m2f=1;
delay(1);
m2b=0;
delay(1);
for(i=0;msg1[i]!='0';i++)
{
txdata(msg1[i]);
} }
else if(s=='b')
{
m1f=0;
delay(1);
8
m1b=1;
delay(10);
m2f=0;
delay(10);
m2b=1;
delay(10);
for(i=0;msg2[i]!='0';i++)
{
txdata(msg2[i]);
}
}
else if(s=='r')
{ m1f=1;
delay(1);
m1b=0;
delay(10);
m2f=0;
delay(10);
m2b=1;
delay(10);
for(i=0;msg3[i]!='0';i++)
{ txdata(msg3[i]);
}
9
}
else if(s=='l')
{
m1f=0;
delay(1);
m1b=1;
delay(1);
m2f=1;
delay(1);
m2b=0;
delay(1);
for(i=0;msg4[i]!='0';i++)
{
txdata(msg4[i]);
}
}
else if(s=='s')
{
m1f=0;
delay(1);
m1b=0;
delay(1);
m2f=0;
10
delay(1);
m2b=0;
delay(1);
for(i=0;msg5[i]!='0';i++)
{
txdata(msg5[i]);
}
}
txdata('n');
}
}
char rxdata()
{
while(RI==0); //wait till RI becomes HIGH
RI=0; //make RI low
ch1=SBUF; //copy received data
return ch1; //return the received data to main function.
}
void txdata(unsigned char x)
{
SBUF=x; //copy data to be transmitted to SBUF
while(TI==0); //wait till TI becomes high
11
TI=0; //mae TI low for next transmission
}
void delay(unsigned int z)
{
unsigned int p ,q;
for(p=0 ; p<z ; p++) //repeat for 'z' times
{
for(q=0 ; q<1375 ; q++); //repeat for 1375 times
}
}
5.2) Proteus professional schematic Diagram:
12
6) SOFTWARE OUTPUT:
6.1) Kiel u Vision:
13
6.2) Proteus Output:
14
15
7) CONCLUSION
Wireless control is one of the most important basic need of all living beings. But unfortunately
due to huge amount of data and communication overheads the technology is not fully utilized.
Many of the wireless-controlled robot use RF modules. But this project make use of Android
mobile phone for Robotic which is very cheap and easily available. The control command
available are more than RF module. For this the Android mobile user has to install the
application on his/her mobile phone then the user need to turn on the Bluetooth in the mobile,
the wireless communication technique used to control the robot is Bluetooth technology. User
can use various command like move forward, reverse, move left and move right using these
commands which are sent from the android mobiles, Bluetooth has a Bluetooth receiver unit
which receive the command and gave it to microcontroller circuit to control the motors. The
microcontroller then transmitting the signal to the motor driver ICs to operate the motors.
8)REFRENCES:
Following are all the references used to compile this project report:
▪ https://circuitdigest.com/microcontroller-projects/bluetooth-controlled-robot-using-8051.
▪ https://youtu.be/PNm-9I9KAR8.
▪ Google Search Engine for Basic definition.
9)FUTURE SCOPE:
This project will be implemented further on AVR, ARM and Microcontroller etc.
More can be done in the process of UART communication control and many challenges will
be carry out to increase reliability and efficiency.
This system can also be developed using GSM technology.
10)GLOSOORY:
Kiel u Vision: Kiel u Vision is microcontroller software used to create hex file of Assembly
and C language.
Proteus: proteus is electrical software used to draw and tests the completion of various
electrical circuits.
16
Robot Chassis: Aluminium Chassis comprise the body of a robot. Roll cages, bumpers and
other body accessories can also be found in this category.
HC-05 Bluetooth module: HC-05 module is an easy to use Bluetooth SPP (Serial Port
Protocol) module, designed for transparent wireless serial connection setup.
UART. Universal Asynchronous Receiver transmitter is a physical circuit not communication
protocol like SPI and I2C.

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

CORDLESS SYSTEMS
CORDLESS SYSTEMSCORDLESS SYSTEMS
CORDLESS SYSTEMS
 
PROJECT REPORT ON Home automation using by Bluetooth
 PROJECT REPORT ON Home automation using by Bluetooth PROJECT REPORT ON Home automation using by Bluetooth
PROJECT REPORT ON Home automation using by Bluetooth
 
War field spying robot
War field spying robotWar field spying robot
War field spying robot
 
Bluetooth Controlled Robot Project Report
Bluetooth Controlled Robot Project ReportBluetooth Controlled Robot Project Report
Bluetooth Controlled Robot Project Report
 
Project Report on Embedded Systems
Project Report on Embedded Systems Project Report on Embedded Systems
Project Report on Embedded Systems
 
DTMF CONTROLLED ROBOT
DTMF CONTROLLED ROBOTDTMF CONTROLLED ROBOT
DTMF CONTROLLED ROBOT
 
soldier tracking and health monitoring system
soldier tracking and health monitoring systemsoldier tracking and health monitoring system
soldier tracking and health monitoring system
 
GSM-BASED-HOME-AUTOMATION-PPT
GSM-BASED-HOME-AUTOMATION-PPTGSM-BASED-HOME-AUTOMATION-PPT
GSM-BASED-HOME-AUTOMATION-PPT
 
GSM. Global System for Mobile Communication.
GSM. Global System for Mobile Communication.GSM. Global System for Mobile Communication.
GSM. Global System for Mobile Communication.
 
Anthocnet routing algorithm
Anthocnet routing algorithmAnthocnet routing algorithm
Anthocnet routing algorithm
 
LPG gas leekage dectection
LPG gas  leekage  dectectionLPG gas  leekage  dectection
LPG gas leekage dectection
 
Embedded systems
Embedded systemsEmbedded systems
Embedded systems
 
Robo wireless controll
Robo wireless controllRobo wireless controll
Robo wireless controll
 
Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming
 
Voice controlled robot ppt
Voice controlled robot pptVoice controlled robot ppt
Voice controlled robot ppt
 
Bluetooth technology presentation
Bluetooth technology presentationBluetooth technology presentation
Bluetooth technology presentation
 
Characteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded SystemCharacteristics and Quality Attributes of Embedded System
Characteristics and Quality Attributes of Embedded System
 
Automatic Dam Shutter Opening System: A Review
Automatic Dam Shutter Opening System: A ReviewAutomatic Dam Shutter Opening System: A Review
Automatic Dam Shutter Opening System: A Review
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 
Project report on home automation using Arduino
Project report on home automation using Arduino Project report on home automation using Arduino
Project report on home automation using Arduino
 

Ähnlich wie Android Control robot using 8051 microcontroler

Android Operated Wireless Robot Using 8051 MCU
Android Operated Wireless Robot Using 8051 MCUAndroid Operated Wireless Robot Using 8051 MCU
Android Operated Wireless Robot Using 8051 MCU
Kamal Pradhan
 
Design and Construction of DC Motor Speed Controller Using Android.ppt
Design and Construction of DC Motor Speed Controller Using Android.pptDesign and Construction of DC Motor Speed Controller Using Android.ppt
Design and Construction of DC Motor Speed Controller Using Android.ppt
EEESrproject
 
War robot with night vision camera android application
War robot with night vision camera  android applicationWar robot with night vision camera  android application
War robot with night vision camera android application
Dheeraj Kumar
 

Ähnlich wie Android Control robot using 8051 microcontroler (20)

Project_report_voice_controlling_robot
Project_report_voice_controlling_robotProject_report_voice_controlling_robot
Project_report_voice_controlling_robot
 
Android Operated Wireless Robot Using 8051 MCU
Android Operated Wireless Robot Using 8051 MCUAndroid Operated Wireless Robot Using 8051 MCU
Android Operated Wireless Robot Using 8051 MCU
 
Automatic voice control wheelchair
Automatic voice control wheelchairAutomatic voice control wheelchair
Automatic voice control wheelchair
 
Bluetooth controlled robot
Bluetooth controlled robotBluetooth controlled robot
Bluetooth controlled robot
 
Design and Construction of DC Motor Speed Controller Using Android.ppt
Design and Construction of DC Motor Speed Controller Using Android.pptDesign and Construction of DC Motor Speed Controller Using Android.ppt
Design and Construction of DC Motor Speed Controller Using Android.ppt
 
Part 2 master
Part 2 masterPart 2 master
Part 2 master
 
Part 2 master
Part 2 masterPart 2 master
Part 2 master
 
Android controlled robot
Android controlled robotAndroid controlled robot
Android controlled robot
 
DTMF Based Intelligent Farming Robotic Vehicle
	 DTMF Based Intelligent Farming Robotic Vehicle	 DTMF Based Intelligent Farming Robotic Vehicle
DTMF Based Intelligent Farming Robotic Vehicle
 
Pick and Place Robotic Arm utilizing Microcontroller and Wireless Communication
Pick and Place Robotic Arm utilizing Microcontroller and Wireless CommunicationPick and Place Robotic Arm utilizing Microcontroller and Wireless Communication
Pick and Place Robotic Arm utilizing Microcontroller and Wireless Communication
 
Arduino bluetooth controlled robot
Arduino bluetooth controlled robotArduino bluetooth controlled robot
Arduino bluetooth controlled robot
 
Bluetooth controlled robot
Bluetooth controlled robotBluetooth controlled robot
Bluetooth controlled robot
 
Wireless robo Report
Wireless robo  ReportWireless robo  Report
Wireless robo Report
 
Bluetooth controled robot
Bluetooth controled robotBluetooth controled robot
Bluetooth controled robot
 
War robot with night vision camera android application
War robot with night vision camera  android applicationWar robot with night vision camera  android application
War robot with night vision camera android application
 
Spy Robot with Wireless Camera using GSM
Spy Robot with Wireless Camera using GSMSpy Robot with Wireless Camera using GSM
Spy Robot with Wireless Camera using GSM
 
IRJET- Smart Home Automation System using 8051 Micro-Controller
IRJET- Smart Home Automation System using 8051 Micro-ControllerIRJET- Smart Home Automation System using 8051 Micro-Controller
IRJET- Smart Home Automation System using 8051 Micro-Controller
 
project report
project reportproject report
project report
 
G1(1)
G1(1)G1(1)
G1(1)
 
Android mobile phone controlled bluetooth robot
Android mobile phone controlled bluetooth robotAndroid mobile phone controlled bluetooth robot
Android mobile phone controlled bluetooth robot
 

Kürzlich hochgeladen

VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 

Kürzlich hochgeladen (20)

VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 

Android Control robot using 8051 microcontroler

  • 1. 1 COMPLEX ENGINEERING PROBLEM (CEP) Course Title: Introduction to Embedded Systems Title: ANDROID CONTROLLED ROBOT USING MICROCONTROLLER 8051 Submitted to: Engineer: Atif Mahmood Khaki Submitted by: Sadam Hussain GCPKI-00857 Department: BEEE (4th)
  • 2. 2 ABSTARACT Many of the wireless robot using RF modules. But this project make use of android mobile phone for robotic control. The control commands are available more than modules. For this the Android mobile user has to install the application on his/her mobile phone. The user need to turn on the Bluetooth in the mobile. The wireless communication technique used to control the robot is Bluetooth technology. User can use various command like move forward, reverse, move left and move right using these commands which are sent from the android mobiles, Bluetooth has a Bluetooth receiver unit which receive the command and gave it to microcontroller circuit to control the motors. The microcontroller then transmitting the signal to the motor driver ICs to operate the motors.
  • 3. 3 OVERVIEW CONTENTS 1) INTRODUCTION-------------------------------------------------------------- 4 1.1) Problem Statement………………………………………………………….4 1.2) Objectives…………………………………………...………………………4 2) HARDWARE REQUIRED-----------------------------------------------------4 3) SOFTWRE REQUIRED--------------------------------------------------------4 4) EXPLANTION--------------------------------------------------------------------5 5) SOFTWRE CODE AND SCHEMATIC DIAGRAM---------------------5 5.1) Kiel u Vision C language code………………………………………………….5-11 5.2) Proteus schematic Diagram………………………………………………………11 6) SOFTWARE OUTPUT----------------------------------------------------------12 6.1) Kiel u Vision…………………………………………………………………….12 6.2) Proteus professional…………………………………………………………13-14 7) CONCLUSION-------------------------------------------------------------------15 8) REFRENCES---------------------------------------------------------------------15 9) FUTURE SCOPE----------------------------------------------------------------15 10) GLOSSORY----------------------------------------------------------------15-16
  • 4. 4 1) INTRODCTION. 1.1) Problem Statement: Design and Implement Android Controlled Robot Using 8051 Microcontroller.? 1.2) Objectives. Android is software stack for mobile devices that include an operating system middleware and key application. Android boast a healthy array of connectivity options, including Wi-Fi Bluetooth and wireless data over a cellular connection (for example, GPRS, EDGE (Enhanced Data rate for GSM revolution) and 3G. Android provide access to wide range of useful libraries and tools that can be used to build rich applications. In addition, Android includes a full set of tools that have been built from the ground up alongside. The plate form providing developers high productivity and deep insight their applications. The controlling device of the whole system is microcontroller, Bluetooth module, Dc motors are interfaced to microcontroller. The data received by the Bluetooth module Android smart phone as feed as input to the controller. The controller acts according on the dc motor of the Robot. The robot in the project can be made to move in all four directions using the Android phone the direction of the robot is indicated using Virtual Terminal and Motors. In achieving the task the controller is loaded with program written using embedded C language using Kiel u Vision. 2) HARDWARE REQUIRED. The following Components are required to complete the CEP. ▪ 8051 microcontroller (AT89S52) ▪ HC-05 Bluetooth module ▪ L293D Motor Driver ▪ Robot chassis ▪ DC Motors (2) ▪ Wheels (2)
  • 5. 5 ▪ Castor Wheel ▪ Jumper wires ▪ Bluetooth terminal android app 3) SOFTWARE REQUIRED ▪ Kiel u Vision ▪ Proteus professional ▪ Android App (Bluetooth App) 4) EXPLANTION The project aims in designing a robot that can be operated using Android mobile phone. The controlling of the robot is done wirelessly through Android smart phone using the Bluetooth feature present in it. Here in the project the Android smart phone is used as remote controlling for operating the robot. Here in this robot I have used a Bluetooth module to control via two motor at 100RPM approximately the robot is controlled by an Android application microcontroller used as AT89C51 from 8051 family to work in serial communication UART mode the communication is configured on 9800bps to communicate it with the Bluetooth module. The Bluetooth module used is a HC-05 in smd package which works on 3.3v and have a serial communication with any devices connected to it the communication speed can be configured on various speed via AT command. The BT module is a SPP supported profile so it can be connected easily to any Bluetooth module or phone. In this profile the data can be sent and receive to module. The BT module is connected to the RX pin of microcontroller. The L293D is a motor driver IC to operate the motor in any direction required dependent on the logic applied to the logic pin. A readymade compact size chassis I have used to avoid the chassis Assembly the chassis contain two decks the lower is used for Motors fitting the upper is used as a battery stack.
  • 6. 6 On top the plate the board is mounted by screw fitting. 5) SOFTWRE CODE AND SCHEMATIC DIAGRAM 5.1) Kiel u Vision C language code #include<reg51.h> unsigned char ch1; unsigned char s; sbit m1f=P2^0; // in1 pin of motor1 sbit m1b=P2^1; // in2 pin of motor1 sbit m2f=P2^2; // in1 pin of motor2 sbit m2b=P2^3; // in2 pin of motor2 void delay(unsigned int) ; //function for creating delay char rxdata(void); //function for receiving a character through serial port of 8051 void txdata(unsigned char); //function for sending a character through serial port of 8051 void main(void) { unsigned char i; unsigned char msg1[]={"robot is moving forward"}; unsigned char msg2[]={"robot is moving backward"}; unsigned char msg3[]={"robot is moving right"}; unsigned char msg4[]={"robot is moving left"}; unsigned char msg5[]={"robot is stopped"}; TMOD=0x20; //timer 1 , mode 2 , auto reload SCON=0x50; //8bit data , 1 stop bit , REN enabled
  • 7. 7 TH1=0xfd; //timer value for 9600 bits per second(bps) TR1=1; while(1) //repeat forever { s=rxdata(); //receive serial data from hc-05 bluetooth module if(s=='f') //move both the motors in forward direction { m1f=1; delay(1); m1b=0; delay(1); m2f=1; delay(1); m2b=0; delay(1); for(i=0;msg1[i]!='0';i++) { txdata(msg1[i]); } } else if(s=='b') { m1f=0; delay(1);
  • 10. 10 delay(1); m2b=0; delay(1); for(i=0;msg5[i]!='0';i++) { txdata(msg5[i]); } } txdata('n'); } } char rxdata() { while(RI==0); //wait till RI becomes HIGH RI=0; //make RI low ch1=SBUF; //copy received data return ch1; //return the received data to main function. } void txdata(unsigned char x) { SBUF=x; //copy data to be transmitted to SBUF while(TI==0); //wait till TI becomes high
  • 11. 11 TI=0; //mae TI low for next transmission } void delay(unsigned int z) { unsigned int p ,q; for(p=0 ; p<z ; p++) //repeat for 'z' times { for(q=0 ; q<1375 ; q++); //repeat for 1375 times } } 5.2) Proteus professional schematic Diagram:
  • 12. 12 6) SOFTWARE OUTPUT: 6.1) Kiel u Vision:
  • 14. 14
  • 15. 15 7) CONCLUSION Wireless control is one of the most important basic need of all living beings. But unfortunately due to huge amount of data and communication overheads the technology is not fully utilized. Many of the wireless-controlled robot use RF modules. But this project make use of Android mobile phone for Robotic which is very cheap and easily available. The control command available are more than RF module. For this the Android mobile user has to install the application on his/her mobile phone then the user need to turn on the Bluetooth in the mobile, the wireless communication technique used to control the robot is Bluetooth technology. User can use various command like move forward, reverse, move left and move right using these commands which are sent from the android mobiles, Bluetooth has a Bluetooth receiver unit which receive the command and gave it to microcontroller circuit to control the motors. The microcontroller then transmitting the signal to the motor driver ICs to operate the motors. 8)REFRENCES: Following are all the references used to compile this project report: ▪ https://circuitdigest.com/microcontroller-projects/bluetooth-controlled-robot-using-8051. ▪ https://youtu.be/PNm-9I9KAR8. ▪ Google Search Engine for Basic definition. 9)FUTURE SCOPE: This project will be implemented further on AVR, ARM and Microcontroller etc. More can be done in the process of UART communication control and many challenges will be carry out to increase reliability and efficiency. This system can also be developed using GSM technology. 10)GLOSOORY: Kiel u Vision: Kiel u Vision is microcontroller software used to create hex file of Assembly and C language. Proteus: proteus is electrical software used to draw and tests the completion of various electrical circuits.
  • 16. 16 Robot Chassis: Aluminium Chassis comprise the body of a robot. Roll cages, bumpers and other body accessories can also be found in this category. HC-05 Bluetooth module: HC-05 module is an easy to use Bluetooth SPP (Serial Port Protocol) module, designed for transparent wireless serial connection setup. UART. Universal Asynchronous Receiver transmitter is a physical circuit not communication protocol like SPI and I2C.