Remote Control car project

Published on January 2017 | Categories: Documents | Downloads: 38 | Comments: 0 | Views: 332
of 7
Download PDF   Embed   Report

Comments

Content

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 car’s 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

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close