RF based Wireless Robot using 8051 Microcontroller

Post on 12-Apr-2017

193 views 1 download

Transcript of RF based Wireless Robot using 8051 Microcontroller

Presentation On

Microcontroller 8051

Presented By - Rahul Kumar B.Tech /ECE 1325271

Department Of ECE Shaheed Udham Singh College of Engg. & Tech.

EMBEDDED SYSTEM• Special-purpose computer system designed

to perform a dedicated function.• Performs one or a few pre-defined tasks,

usually with very specific requirements, and often includes task-specific hardware and mechanical parts not usually found in a general-purpose computer.

INTRODUCTION TO 8051

• 4K bytes internal ROM• 128 bytes internal RAM• Four 8-bit I/O ports (P0 - P3).• Two 16-bit timers/counters• One serial interface

MicrocontrollerA single chip

RAM

I/O Port Timer

Serial COM Port

CPU ROM

Pin Description of the 8051

Inside Structure of 8051 Microcontroller

Software Used

• KEIL uVISION

PROJECT :- RF Based Car

Team Members :- Rahul Kumar Sahil Kumar Karan Dhall

Components

• AT89c51• Battery• LED(6)• HT12E• HT12D• L293D• Resistors

1 k ohm(7) 10 k ohm 50 k ohm 100 k ohm

• Xtal – 11.0592 KHz• Tectile switch (5)• DC motors• Voltage Regulator(IC7805)• Wheels and chechis• Capacitors

1 n f 10 uf1uf33pf(2)

Introduction of IC HT12E• HOLTEK Semiconductor.• HT12E is a encoder integrated circuit that

belongs to 212 series of encoders.• They are paired with 212 series of decoders

for use in remote control system applications.

• HT12E converts the parallel input into serial outputs. It encodes the parallel data into serial for transmission through an RF transmitter.

Pin Diagram:

Introduction of IC HT12D• HT12D is a decoder integrated circuit that

belongs to 212 series of decoders.• This series of decoders are mainly used for

remote control system applications.• HT12D converts the serial input into parallel

outputs. It decodes the serial addresses and data received by an RF receiver, into parallel data and sends them to output data pins.

Pin Diagram:

HT12D

Pin No Function Name

1

8 bit Address pins for input

A02 A13 A24 A35 A46 A57 A68 A79 Ground (0V) Ground

10

4 bit Data/Address pins for output

D011 D112 D213 D314 Serial data input Input15 Oscillator output Osc216 Oscillator input Osc117 Valid transmission; active high VT18 Supply voltage; 5V (2.4V-12V) Vcc

Pin Description of both: 

HT12E/HT12D FEATURES:• Operating voltage: 2.4V~12V• Low power and high noise immunity.• Low standby current.• Capable of decoding 12 bits of information.• Binary address setting.• Received codes are checked 3 times.• 8 address bits and 4 data bits.• Built-in oscillator needs only 5% resistor.• Valid transmission indicator.

RF Transmission and Reception

RF Transmitter

1 2 3 4

Block Diagram Of RF Transmitter RF Transmitter Module

RF Receiver

1 2 3 4 5 6 7 8

RF Receiver ModuleBlock Diagram of RF Receiver

Interfacing Of HT12E with RF Tx

Interfacing Of HT12D with RF Rx

L293D• L293D is a motor driver. As its name

suggests it can drive a motor . • Since the output voltage of 8051 is

limited to 5V only thus motors with higher required voltage need some drivers to provide them their desired input voltage.

• What L293D does is, it takes the (0/5v) input from the output pins of 8051 microcontroller and forwards the output through itself of higher voltage.

• Connecting a DC motor directly to the pins of 8051 would not work. It may even damage the microcontroller.

Interfacing of 8051 with L293D

Transmitter Hardware

Remote

Receiver Hardware

CAR

PROGRAM CODE #include<reg51.h>sbit sw1=P1^4;sbit sw2=P1^5;sbit sw3=P1^6;sbit sw4=P1^7;

sbit m1=P1^0;sbit m2=P1^1;sbit m3=P1^2;sbit m4=P1^3;void main(){m1=m2=m3=m4=0;while(1){if(sw1==1){

m1=1;}else{ m1=0;} if(sw2==1){m2=1;}else{m2=0;} if(sw3==1){

m3=1;}else{m3=0;} if(sw4==1){m4=1;}else{m4=0;}} }

WORKING VIDEO

Applications of RF Module

• Data Communication

• Escalators & Elevators

• Military• Security Monitoring• Unmanned Vehicles

Receiver Transmitter

Future Developments

• Spy cameras can be added for security purpose.

• GPS Module can be added to get the location or to move the car to a specific location.

• For Military , Remote weapons can be added to use as fighter Robo car.

THANKS FOR YOUR PRECIOUS TIME