2. ROBOT MOTION
AIM:
To control the motions of a robot using a wireless communication (Bluetooth) device.
INTRODUCTION:
By using a Bluetooth we can control the actions of a robot by asking it to move forward , or backward
or even reverse by giving certain user defined commands to it. But a small drawback of using this
Bluetooth device is we cannot communicate if the distance is too long.
BLOCK DIAGRAM:
COMPONENTS REQUIRED:
Micro controller 8051
Lcd(liquid crystaldisplay)
Bluetooth(represented as virtual terminal in circuit diagram)
L293D
Battery of 9v
2 Motors
DESCRIPTION:
MICRO-CONTROLLER:A micro controller is a single chip VLSI unit which , although having
limited computational capabilities possess enhanced input/output capability and a number of on chip
LCD
LCD
L293D
M
1
M
2
3. functional units. They are particularly used in embedded systems for real time control applications
with on chip program memory and devices.
LCD: LCD is used display numbers , characters,and some special symbols also. Using its data lines
we can send our required data which has to be displayed. It consists of 16-pins.
Bluetooth: It’s a communication technology . It acts as major role in embedded systems for wireless
communication.
CIRCUIT DIAGRAM:
WORKING:
Actually we need app named ARDUINO BLUETOOTH ( in the form of app in mobile
phone)inorder to control the actions of a robot by asking it to move forward ,or backward or even
reverse by giving certain user defined commands to it. First of all, we allot the user defined
commands to that device which we define in our code. As in the given code we gave the instruction
for that particular symbol for movement of motors. Here in the lcd we can visualize the motion of
the robot on the form of motors.
RESULT:
Here we can see different kind of motion of a robot using motors.
Forward motion of a robot can be done by giving a command *f# (as we have pre mentioned
in the program)
4. To make the robot to move backward we shall give command*b#( as we have pre-mentioned
in the program)
To make the robot to rotate right we shall give a command as *r#(as a message)(we have pre-
mentioned it in the program)
5. To make the robot to rotate to its left side we can send a message *l#(as we have pre-
mentioned in the program ).
To stop the robot motion we have to send a message *s#(as we have pre-mentioned it in kthe
program).
6. CONCLUSION:
By using the wireless communication, we can control the movements of robot. There is no
need of any switches, ……. and so on to operate the robot.
PROGRAM:
#include<reg51.h>
#define lcd P2
sbit m1a=P1^0;
sbit m1b=P1^1;
sbit m2a=P1^2;
sbit m2b=P1^3;
sbit sw1=P1^4;
sbit RS=P2^0;
sbit EN=P2^1;
void lcdcmd(unsigned int x);
void lcddata(unsigned char y);
void display(unsigned char b[]);
void delay(unsigned int time);