INTRODUCTION TO ROBOTS
Robotics is the study of robots. Robots
are machines that can be used to do
jobs. It helps to reduce the human
efforts and provide them ease. These
technologies deal with automated
machines that can take the place of
humans. Today, robotics is a rapidly
growing field, as technological
advances continue; researching, designing, and building new
robots that serves various practical purposes.
For example: robotic arm can move large objects, robotics
airplanes can fly without a pilot control and many more.
A robot is a mechanical or virtual artificial agent, usually an
electro-mechanical machine that is guided by a computer
program or electronic circuitry. Robots can be autonomous or
semi-autonomous and range from humanoids such as Honda's
Advanced Step in Innovative Mobility (ASIMO) and TOSY's TOSY
Ping Pong Playing Robot (TOPIO) to industrial robots, medical
operating robots, patent assist robots, dog therapy robots,
collectively programmed swarm robots, UAV drones such as
General Atomics MQ-1 Predator, and even microscopic nano
robots.
The branch of technology that deals with the design, construction,
operation, and application of robots, as well as computer systems
for their control, sensory feedback, and information processing is
robotics. These technologies deal with automated machines that
can take the place of humans in dangerous environments or
1. DC MOTOR :
A dc motor is a motor that
converts direct current electric
power into mechanical power. Most
types of dc motor produce rotary
motion. It works on the principle,
when a current carrying conductor
is placed in a magnetic field, it
experiences a torque and has a
tendency to move .this is known as
motoring action. It helps the
robot to move forward, backward, left and right. So it is one of the
main component of a robotic car.
WORKING OF L293D
There are two drive pins on L293D. Pin 1 (left H-bridge) and pin 9
(right H-bridge). To turn ON the corresponding motor, pin 1 or 9
need to be set to HIGH. If either pin 1 or pin 9 goes low then the
motor in the corresponding section will go OFF (high impedance).
These inputs (1 and 9) are the ones that should be used to control
motor START/STOP and motor speed under PWM, since there
would be high impedance output during low semi period of PWM,
it would not provoke overload of the L293D when the motor is
turning. Thus, PWM or motor ON/OFF control should never be
input to pins 2, 7, 15, 10, which should only be used to control
direction (Clockwise - Counterclockwise). The direction-defining
four Input pins for the L293D are pin 2 and 7 on the left and pin
15 and 10 on the right as shown on the pin diagram. Left input
pins will determine the rotation of motor connected on the left
side and right input for motor on the right hand side. The motors
are rotated on the basis of the inputs provided at the input pins as
LOGIC 1 or LOGIC 0.
3. PIC MICROCONTROLLER:
CORE ARCHITECTURE
ADVANTAGES
LIMITATIONS
One accumulator
Register-bank switching is required to access the entire RAM
of many devices
Operations and registers are not orthogonal; some
instructions can address RAM and/or immediate constants,
while others can use the accumulator only.
PIC 16F877A
The PIC microcontroller PIC16F877A is one of the most renowned
microcontrollers in the industry. This controller is very convenient
to use, the coding or programming of this controller is also easier.
One of the main advantages is that it can be write-erase as many
times as possible because it use FLASH memory technology. It has
a total number of 40 pins and there are 33 pins for input and
DESCRIPTION:
Microchip PIC16F877A Microcontroller Features
Peripheral Features :
Analog Features:
PIN 1: MCLR
The first pin is the master clear pin of this IC. It resets the
microcontroller and is active low, meaning that it should
constantly be given a voltage of 5V and if 0 V are given then the
controller is reset. Resetting the controller will bring it back to the
first line of the program that has been burned into the IC.
A push button and a resistor is connected to the pin. The pin is
already being supplied by constant 5V. When we want to reset the
IC we just have to push the button which will bring the MCLR pin
to 0 potential thereby resetting the controller.
PIN 2: RA0/AN0
L293D. The logic 00 and 00 will stop both the motors connected
to the L293D and hence the robotic car remains in stationary
condition.
FORWARD: When both the switches are pushed in forward
direction, the corresponding input 1, 0, 1, 0 appears on the input
pins RB0, RB1, RB2, RB3 (PORT B) of the microcontroller. This is
taken as output from pins RC0, RC1, RC2, RC3 (PORT C) and
applied as input to L293D. The logic 10 and 10 will rotate both the
motors connected to the L293D in clockwise direction and hence
the robotic car moves in forward direction.
BACKWARD: When both the switches are pushed in backward
direction, the corresponding input 0, 1, 0, 1 appears on the input
pins RB0, RB1, RB2, RB3 (PORT B) of the microcontroller. This is
taken as output from pins RC0, RC1, RC2, RC3 (PORT C) and
applied as input to L293D. The logic 01 and 01 will rotate both the
motors connected to the L293D in anti clockwise direction and
hence the robotic car moves in backward direction.
RIGHT: When the left switch is pushed in forward direction and
the right switch is pushed in backward direction , the
corresponding input 1, 0, 0, 1 appears on the input pins RB0, RB1,
RB2, RB3 (PORT B) of the microcontroller. This is taken as output
from pins RC0, RC1, RC2, RC3 (PORT C) and applied as input to
L293D. The logic 10 and 01 will rotate the left motor in clockwise
direction and the right motor in anti clockwise direction connected
to the L293D and hence the robotic car moves in right direction.
LEFT: When the right switch is pushed in forward direction and
the left switch is pushed in backward direction , the corresponding
input 0, 1, 1, 0 appears on the input pins RB0, RB1, RB2, RB3
(PORT B) of the microcontroller. This is taken as output from pins
RC0, RC1, RC2, RC3 (PORT C) and applied as input to L293D. The
logic 01 and 10 will rotate the right motor in clockwise direction
//STOP
portc.f1=0;
portc.f2=0;
portc.f3=0;
}
if(portb.f0==0&&portb.f1==1&&portb.f2==1&&portb.f3==0)
{
portc.f0=0;
//LEFT
portc.f1=1;
portc.f2=1;
portc.f3=0;
}
if(portb.f0==1&&portb.f1==0&&portb.f2==0&&portb.f3==1)
{
portc.f0=1;
//RIGHT
portc.f1=0;
portc.f2=0;
portc.f3=1;
}
if(portb.f0==0&&portb.f1==1&&portb.f2==0&&portb.f3==1)
{
portc.f0=0;
//BACKWARD
portc.f1=1;
portc.f2=0;
portc.f3=1;
}
if(portb.f0==1&&portb.f1==0&&portb.f2==1&&portb.f3==0)
{
portc.f0=1;
//FORWARD
portc.f1=0;
portc.f2=1;
portc.f3=0;
}
delay(500);}
CONTENTS
1)Introduction to robotics
2)Requirements to build a robot
3)Components of remote control robotic car
a) DC motor
b)L293D motor driver IC
c) PIC Microcontroller
4)Core architecture of PIC Microcontroller
5)Introduction to PIC16F877A microcontroller
6)Pin description of PIC16F877A
7)Interfacing PIC microcontroller with L293D IC
8)Description of the movement of robotic car
9)How to program the input and output ports of
PIC16F877A microcontroller.
10) Program to drive the motors of remote control robotic
car
A
Seminar report
On
REMOTE CONTROL ROBOTIC CAR
Submitted
In Partial Fulfillment of the Requirements
For the Degree of
BACHELOR OF TECHNOLOGY
In
Shweta Kumari
(1318731109)
Under the Supervision of
Mr. Digvijay Singh Chauhan
REFERENCES