100% found this document useful (1 vote)
2K views

Remote Control Car Project

This report describes a remote control car project using a PIC microcontroller. A PIC18F452 microcontroller controls two DC motors connected to rear wheels via an L293D motor driver. The microcontroller is programmed in C language to make the car move forward, backward, left and right depending on input from four push buttons connected to its ports. When the appropriate buttons are pressed, the microcontroller energizes the motors in a way that makes the car turn in the desired direction. The circuit and programming are simulated using Proteus software before implementing on the real remote control car.

Uploaded by

safia
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
2K views

Remote Control Car Project

This report describes a remote control car project using a PIC microcontroller. A PIC18F452 microcontroller controls two DC motors connected to rear wheels via an L293D motor driver. The microcontroller is programmed in C language to make the car move forward, backward, left and right depending on input from four push buttons connected to its ports. When the appropriate buttons are pressed, the microcontroller energizes the motors in a way that makes the car turn in the desired direction. The circuit and programming are simulated using Proteus software before implementing on the real remote control car.

Uploaded by

safia
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 7

Submitted To:

Sir Azhar Zaidi

PROJECT REPORT
RC car using PIC microcontroller

This report explains the design and working of


a remote control car. It also contains the source
code of programming used for car
[01/06/2011]

Remote Control Car Using PIC

REMOTE CONTROL CAR USING PIC


Description:
The project named as REMOTE CONTROL CAR USING PIC is
built by making use of DC motors. One DC motor is attached with one
rear tyre and other is attached to other rear tyre. When these motors run
simultaneously, they cause motion of car in forward and reverse
direction. To move the car left or right, one motor is switched on earlier
than other. Hence the car will turn in direction of motor which is switched
on after a delay.
The application of this project is found in our daily life in the toys,
having a remote to control the cars movement.

Components Used:
PIC18F452
DC Motor
L293D
DC Supply
Car Model

PIC18F452:
PIC18F452 microcontroller is used to control the DC motors via
programming. The programming is done in C language. It has 40 pins
out of which 33 pins can be used for input & output. In this project,
PORTB is used as an output port and PORTD is used as an input port.
Push buttons are attached at input for control of car and motor driver is
attached at the output port which is further connected with DC motors.

DC Motor:
DC motors are used to move the car in forward & reverse direction
and to turn the car left & right. Two switches are used for forward and
2 | Page

Remote Control Car Using PIC

reverse direction and two switches are used for leftward and rightward
motion.

L293D:
To change the direction of DC motor, H-bridge circuit is used.
L293D is the integrated circuit of H-bridge. This is the driver of motors.

Circuit Diagram:
3 | Page

Remote Control Car Using PIC

Compiler & Other Software Used:


4 | Page

Remote Control Car Using PIC

The compiler used for compiling the C language code is MIKROC


PRO for PIC. Proteus 7.7 is also used for the simulation of circuit.

Source Code:
void main()
{trisb=0x00;
trisd=0xff;
while(1)
{
if(portd.f0==1)
{
portb.f0=1;
portb.f1=0;
portb.f2=1;
portb.f3=0;}
else if(portd.f1==1)
{
portb.f0=0;
portb.f1=1;
portb.f2=0;
portb.f3=1;
}
else if(portd.f2==1)
{ portb.f0=1;
portb.f1=0;
5 | Page

Remote Control Car Using PIC

delay_ms(700);
portb.f2=1;
portb.f3=0;}
else if(portd.f3==1)
{ portb.f2=1;
portb.f3=0;
delay_ms(700);
portb.f0=1;
portb.f1=0;}
else
{
portb.f0=0;
portb.f1=0;
portb.f2=0;
portb.f3=0; }

References:
6 | Page

Remote Control Car Using PIC

PIC Microcontroller & Embedded Systems Using Assembly & C for


PIC18
By:

Muhammad Ali Mazidi


Rolin D. McKinlay
Danny Causey

7 | Page

You might also like