Robot With Wireless Camera

Download Robot With Wireless Camera

Post on 27-Apr-2015

6.646 views

Category:

Documents

1 download

Embed Size (px)

DESCRIPTION

project report document of robot with wireless camera..............

TRANSCRIPT

<p>1</p> <p>1</p> <p>1</p> <p>CONTENTS</p> <p>1. ABSTRACT 2 2. BLOCK DIAGRAM... 3 3. SCHEMATIC DIAGRAM 5 4. CIRCUIT DISCRIPTION. 7 5. INTRODUCTION5.1. EMBEDDED INTRODUCTION... 12 5.2. MICROCONTROLLER INTRODUCTION..18 5.3. INTRODUCTION TO ROBOTICS.. 20 5.4. INTRODUCTION TO RF.. 29 5.5. INTRODUCTION TO LCD .. 35 5.6. INTRODUCTION TO LED.. 39 5.7. KEIL INTRODUCTION ... 43</p> <p>6. COMPONENT DESCRIPTION6.1. AT89S52 47 6.2. XBEE MODULE... 56 6.3. L293D. 66 6.4. ISP PROGRAMMER. 69</p> <p>7. CODING 76 8. CONCLUSION.88 9. BIBLIOGRAPHY.89</p> <p>2</p> <p>2</p> <p>2</p> <p>1. ABSTRACTThe present condition in Industry is that they are using the crane system to carry the parcels from one place to another, including harbors. Some times the lifting of big weights may cause the breakage of lifting materials and will cause damage to the parcels too. Application of the proposed system is for industries. The robot movement depends on the track. Use of this robot is to transport the materials from one place to another place in the industry. A robot is a machine designed to execute one or more tasks repeatedly, with speed and precision. There are as many different types of robots as there are tasks for them to perform. A robot can be controlled by a human operator, sometimes from a great distance. In such type of applications wireless communication is more important. In robotic applications, generally we need a remote device to control. If we use IR remote device, it is just limited to meters distance and also if any obstacle is in between its path then there will be no communication. If we consider, RF modules for remote operations there is no objection whether an obstacle is present in its path. So that it is very helpful to control robot. RF modules itself can generates its carrier frequency which is around 2.4 GHz. We need to generate serial data using micro controller and fed to the RF transmitting module. On other side RF receiver receives sent data as RF signals and given to another micro controller. Here, RF receiver itself demodulates the data from carrier signal and generate serial data as output. By using this communication network we can design a remote device for controlling robot. If u send move forward command from RF remote transmitter, then receiver receives that data and perform operation on robot to move in that particular direction. Similarly if u sends turn left command then, robot will take left direction with respect to that command. So by this way we can design remote using RF modules for robotic applications. Apart from this we are placing wireless camera so that user is able to control the robot direction from transmitter.</p> <p>3</p> <p>3</p> <p>3</p> <p>2. BLOCK DIAGRAM 2.1 TRANSMITTER:LCD TV</p> <p>KEYS AT89S52 RF TX</p> <p>2.2 RECEIVER:</p> <p>WIRELESS CAMERA</p> <p>LCD</p> <p>MOTOR L293D RF RX AT89S52 MOTOR</p> <p>L293D</p> <p>MOTOR</p> <p>4</p> <p>4</p> <p>4</p> <p>2.3 REQUIREMENTS: HARDWARE REQUIREMENTS: AT89S52 L293D ROBOT 16X2 LCD RF MODULES WIRELESS CAMERA</p> <p>SOFTWARE REQUIREMENTS: KEIL C COMPILER PROGRAMMING IN EMBEDDED C</p> <p>5</p> <p>5</p> <p>5</p> <p>3. SCHEMATIC DIAGRAM 3.1 TRANSMITTER:</p> <p>1 0 K</p> <p>P</p> <p>U</p> <p>L</p> <p>L U</p> <p>P 1 0 K V V 1 2 3 4 5 6 7 8 9 1 1 1 1 1 1 1 1 0 1 2 3 4 5 6 7 C ( ( P P P ( ( ( R ( ( ( ( ( ( ( ( X C 4 1 . 0 V C C3 E X P) 0P . 1 0 . / 1 A3 2 P 0 . 1 / A3 3 P 0 . 2 / A3 4 P 0 . 3 / A3 S I )P P0 . 1 4 . / 5 A3 S O )P P0 . 1 5 . / 6 A3 K ) P P 0 1 . . 6 7 / A3 T P 0 . 7 / A3 E A / V P R X D ) P 3 . 0 3 T X D ) A P L 3 E . 1/ P R I N T 0 ) P 3 . 2 2 I N T 1 ) P P 3 S. 3 E 2 N T 0 ) P 3 P . 42 . 7 / A T 1 ) P 3 . 5 2 W R ) P P 3 2 . .6 6 / 2 A R D ) P P 3 2. 7 . 5 / 2 A P 2 . 4 / 2 A T A L 2 P 2 . 3 / 2 A P 2 . 2 / 2 A T A L 1 P 2 . 1 /2 A N D P 2 . 0 / A T 2 T 2 1 . 1 . 1 . M O M I S C S ) P 0 9 D 8 D 7 D 6 D 5 D 4 D 3 D 2 D 1 0 C C P U L L U P</p> <p>V</p> <p>C</p> <p>C</p> <p>R8 R7 R6 R5 R4 R3 R2 R1 VCC</p> <p>VCC R1 R2 R3 R4 R5 R6 R7 R8</p> <p>G N DV 4 . 7 K C C 1 2 3 4 5 6 7 8 9 1 1 1 1 1 1 1 C C</p> <p>V C R R R R R R R R1 0 K</p> <p>C1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9P U</p> <p>4 ( L 2 S S S I N 3 ( L 2 F R F R F R R V C C 3 . 3 D I N S S S S SL L U P</p> <p>I N</p> <p>9 3 D ( W 7 W 8 W 1 9 3 D ( O M I O M I O M I E S E V ( X B W W W W W 2 3 4 5 6 E</p> <p>C</p> <p>A</p> <p>M</p> <p>) )</p> <p>C S S S T E</p> <p>A P P P</p> <p>M</p> <p>) )</p> <p>P O 5 4 3 2 1 0</p> <p>0 1 2 3 4 5 6 7 G</p> <p>R E D D D D</p> <p>S N 4 5 6 7 ( ( ( (</p> <p>( L C ( L L L L L C C C C C</p> <p>D D D D D D ) ) ) )</p> <p>) ) 5 K I M P O T</p> <p>P G P</p> <p>0 0</p> <p>N</p> <p>. 1 D . 3</p> <p>T R</p> <p>)</p> <p>V</p> <p>C</p> <p>C</p> <p>P P P P</p> <p>0 0 0 0</p> <p>. . . .</p> <p>4 5 6 7</p> <p>9 8 1 7 61 51 41 31 21</p> <p>0 1 2 3 4 5V C C 6G N D</p> <p>G V V R R E D D D D D D D D</p> <p>N D C C E E S W N 0 1 2 3 4 5 6 7</p> <p>9 8 7 6 5 4 3 2 1</p> <p>1 2 3 4 5 6 7 8 9</p> <p>G N D</p> <p>V</p> <p>G N D</p> <p>L</p> <p>C</p> <p>D</p> <p>X T A X T A</p> <p>L 2 L 1</p> <p>1 8</p> <p>1 9 2 0 X G</p> <p>1 9 8</p> <p>1 2 3 4 5 6 7 8 9</p> <p>G N D</p> <p>A</p> <p>T 8 9 S</p> <p>5 2 V C</p> <p>V C</p> <p>C</p> <p>C</p> <p>= 3</p> <p>1 0</p> <p>K</p> <p>P</p> <p>U</p> <p>L L U</p> <p>P</p> <p>P 3 . 1</p> <p>. 3 V A 1 v c c 2 D O U T A A 3 D I N A 4 C D 5 R E S E TA 6 P W M 0 A V 7 N C S L 8 N C C 9 D T R A 1 0G N D</p> <p>D D D D D D R E T D</p> <p>0 1 2 3 6 5 E E S 4</p> <p>2 1 1 1 1 1 F 1 P 1 1 1</p> <p>0 9 8 7 6 5 4 3 2 1</p> <p>R8 R7 R6 R5 R4 R3 R2 R1 VCC</p> <p>G N D1</p> <p>X</p> <p>B</p> <p>E</p> <p>E</p> <p>M</p> <p>O</p> <p>D</p> <p>U</p> <p>L</p> <p>E</p> <p>B 2 1 2 3 0 V , A 2 +</p> <p>R 4</p> <p>I D</p> <p>G</p> <p>E</p> <p>R 1</p> <p>7 E 8 C 0 T 5 I F R I E E RGV I N V O U 3 T</p> <p>UV LC A C T = O 5 R V</p> <p>. CT R A N S F O R M E R</p> <p>G N D 23 3 p f 1 0 4 p f 3</p> <p>2 2 0</p> <p>o</p> <p>h m S W 7 P 1 . 1 S W 8 P 1 . 2</p> <p>( 9 V , 1</p> <p>A M P )1 0 0 0 u f / 3 5 V</p> <p>L</p> <p>E</p> <p>D</p> <p>P</p> <p>O</p> <p>W</p> <p>E</p> <p>R</p> <p>S</p> <p>U</p> <p>P</p> <p>P</p> <p>G N D</p> <p>L</p> <p>Y</p> <p>( 5</p> <p>V</p> <p>D</p> <p>C</p> <p>)S W 1 P 1 . 3</p> <p>V G N 1 3 5 7 9 V C C D S W IT C H 3 3 p f X T 3 3 p f 1 1 . 0 X T A L 2 5 9 2 M A L 1</p> <p>C</p> <p>C</p> <p>S</p> <p>W</p> <p>2 P 3 . 3</p> <p>S</p> <p>W</p> <p>4 P 3 . 5</p> <p>I S P</p> <p>2 4 6 8 1</p> <p>1 0z</p> <p>u f / 6 3 VR E S E T</p> <p>P P R 0 P</p> <p>1 1 1</p> <p>. 6 . 7 S T . 5</p> <p>S</p> <p>W</p> <p>3 P 3 . 4</p> <p>H</p> <p>8 . 2 KS W 5 P 3 . 6 S W 6 P 3 . 7</p> <p>G N D</p> <p>A</p> <p>T</p> <p>8</p> <p>9</p> <p>S</p> <p>5</p> <p>2</p> <p>I S</p> <p>P A</p> <p>T</p> <p>8</p> <p>9</p> <p>S</p> <p>5</p> <p>2</p> <p>C</p> <p>R</p> <p>Y</p> <p>S R</p> <p>G N D</p> <p>T</p> <p>E</p> <p>A</p> <p>S</p> <p>L</p> <p>E</p> <p>TG N D</p> <p>6</p> <p>6</p> <p>6</p> <p>3.2 RECEIVER:</p> <p>1</p> <p>0 K</p> <p>P</p> <p>U</p> <p>L L U</p> <p>P 1 V 1 2 3 4 5 6 7 8 9 1 1 1 1 1 1 1 1 0 1 2 3 4 5 6 7 C ( ( P P P ( ( ( R ( ( ( ( ( ( ( ( X C 4 1 . 0 V C C3 X P 0 . 1 0 . / 1 A3 ) P 2 P 0 . 1 / A3 3 P 0 . 2 / A3 4 P 0 . 3 / A3 S I )P P0 .1 4 . /5 A3 S O )P P0 .1 5 . /6 A3 K ) PP 0 1 . . 6 7 / A3 T P 0 . 7 / A3 E A / V P R X D ) P 3 . 0 3 T X D ) A P L 3 E . 1/ P R I N T 0 ) P 3 . 2 2 I N T 1 ) P P 3 S. 3 E 2 N T 0 ) P 3 P . 42 . 7 / A T 1 ) P 3 . 5 2 W R ) P P 3 2 . .6 6 / A 2 R D ) P P 3 2. 7 . 5 / A 2 P 2 . 4 / A 2 T A L 2 P 2 . 3 / A 2 P 2 . 2 / A 2 T A L 1 P 2 . 1 /2 A N D P 2 . 0 / A T 2 T 2 1 . 1 . 1 . M O M I S C S ) P E V 0 9 D 8 D 7 D 6 D 5 D 4 D 3 D 2 D 1 0 C C 0 K P U L L U P V C C</p> <p>R8 R7 R6 R5 R4 R3 R2 R1 VCC</p> <p>VCC R1 R2 R3 R4 R5 R6 R7 R8</p> <p>G N DV 4 . 7 K C C 1 2 3 4 5 6 7 8 9</p> <p>9 8 7 6 5 4 3 2 1</p> <p>I N</p> <p>4 ( L 2</p> <p>9 3 D</p> <p>( C</p> <p>A</p> <p>M</p> <p>) )</p> <p>I N</p> <p>V C R R R R R R R R1 0 K</p> <p>C1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9P U</p> <p>V</p> <p>C</p> <p>3 ( L 2 F R F R F R R C 3 . 3 D O U</p> <p>9 3 D ( O M I O M I O M I E S E V T ( X B</p> <p>C S S S T E</p> <p>A P P P E</p> <p>M</p> <p>) )</p> <p>)</p> <p>P O</p> <p>0 1 2 3 4 5 6 7 G</p> <p>R E D D D D</p> <p>S N 4 5 6 7 ( ( ( (</p> <p>( L C ( L L L L L C C C C C</p> <p>D D D D D D ) ) ) )</p> <p>) )</p> <p>P G P</p> <p>0 . 1 N D 0 . 3</p> <p>5 T R I M</p> <p>K P O T P P P P 0 0 0 0 . . . . 4 5 6 7</p> <p>V</p> <p>C</p> <p>C</p> <p>I I I IL L U P</p> <p>N N N N</p> <p>1 2 3 4</p> <p>( ( ( (</p> <p>L L L L</p> <p>2 2 2 2</p> <p>9 9 9 9</p> <p>3 3 3 3</p> <p>D D D D</p> <p>) ) ) ) X T A X T A L L 2 1</p> <p>9 8 1 5 7 61 51 41 31 21 1 4 3 2 1 0</p> <p>1 1 1 1 1 1 1 C C</p> <p>0 1 2 3 4 5 V C C 6 G N D</p> <p>G V V R R E D D D D D D D D</p> <p>N D C C E E S W N 0 1 2 3 4 5 6 7</p> <p>1 2 3 4 5 6 7 8 9</p> <p>G N D</p> <p>V</p> <p>G N D</p> <p>L</p> <p>C</p> <p>D</p> <p>1 8</p> <p>1 9 2 0 X G</p> <p>9 8</p> <p>V</p> <p>C</p> <p>C</p> <p>=</p> <p>1 2 3 4 5 6 7 8 9</p> <p>G N D</p> <p>P 3 . 0 A T 8 9 S 5 2V CC</p> <p>1 0 K</p> <p>P</p> <p>U</p> <p>L L U</p> <p>P 1</p> <p>1 2 3 4 5 6 7 8 9</p> <p>3 . 3 V D D C R P N N D 0G</p> <p>v c cO I D E W C C T N</p> <p>A A A A S E TA M 0 A V S L R C D A U T N</p> <p>D D D D D D R E T D</p> <p>0 1 2 3 6 5 E E S 4</p> <p>2 1 1 1 1 1 F 1 P 1 1 1</p> <p>0 9 8 7 6 5 4 3 2 1</p> <p>R8 R7 R6 R5 R4 R3 R2 R1 VCC G N D G N D</p> <p>X</p> <p>B</p> <p>E</p> <p>E</p> <p>M</p> <p>O</p> <p>D</p> <p>U</p> <p>L</p> <p>E</p> <p>G N DV C C 1 0 u f / 3 5 V</p> <p>1 B 2 1 2 3 0 V , A 2 +</p> <p>R 4</p> <p>I D</p> <p>G</p> <p>E</p> <p>R 1</p> <p>7E 8C 0 T 5 I F RI E E R GV I N V O U 3 T</p> <p>UV LC AC</p> <p>T = O 5RV1 0 u f / 3 5 V</p> <p>. CT R A N S F O R M E R</p> <p>G N D 21 0 0 0 u f / 3 5 V 3 3 p f 1 0 4 p f 3</p> <p>2 2 0</p> <p>o</p> <p>h m</p> <p>( 9 V , 1</p> <p>A M P )</p> <p>L E</p> <p>D</p> <p>P</p> <p>0</p> <p>. 5</p> <p>G N D</p> <p>G N D2</p> <p>P</p> <p>O</p> <p>W</p> <p>E</p> <p>R</p> <p>S</p> <p>U</p> <p>P</p> <p>P</p> <p>G N D</p> <p>L</p> <p>Y</p> <p>( 5</p> <p>V</p> <p>D</p> <p>C</p> <p>)V C C</p> <p>LG N DV G N 1 3 5 7 9 V C C D S W IT C H 3 3 p f X T A 1 3 3 p f X T A L 1 1 . 0 5 9 L 2 2 M H z C C 1 0 u f / 3 5 V 1 2 3 4 5 6 7 8 E I O G G O I V V N N U N N U N S C</p> <p>2</p> <p>9</p> <p>3</p> <p>D</p> <p>( CG N D</p> <p>A</p> <p>M</p> <p>)</p> <p>C 6 5 4 3 2 1 0</p> <p>1 0 u f / 3 5 V</p> <p>I S P</p> <p>D C M O TO R</p> <p>P</p> <p>1 . 5</p> <p>8 . 2 K G N D</p> <p>G N D</p> <p>P</p> <p>3 . 5</p> <p>P</p> <p>3</p> <p>. 6</p> <p>G N D2</p> <p>G N D2</p> <p>A</p> <p>T</p> <p>8</p> <p>9</p> <p>S</p> <p>5</p> <p>2</p> <p>I S</p> <p>P</p> <p>A</p> <p>T</p> <p>8</p> <p>9</p> <p>S</p> <p>5</p> <p>2</p> <p>C</p> <p>R</p> <p>Y</p> <p>S</p> <p>T</p> <p>R</p> <p>A</p> <p>L E</p> <p>S</p> <p>E</p> <p>T</p> <p>L</p> <p>V</p> <p>2</p> <p>C</p> <p>9</p> <p>C</p> <p>3</p> <p>D</p> <p>D C M O TO R</p> <p>2 4 6 8 1</p> <p>1 0</p> <p>u f / 6 3 VR E S E T 1 P 3 . 4</p> <p>P P R 0</p> <p>1 . 6 1 . 7 S T</p> <p>1 V S S 1 1 I N 4 1 T 1O U T 1 4 D G N D 1 D G N D 1 T 2O U T 1 3 2 I N 3 1 E N 2 9</p> <p>P</p> <p>3</p> <p>. 7</p> <p>1</p> <p>D C M O TO R</p> <p>1 2 3 4 5 6 7 8</p> <p>E I O G G O I V</p> <p>N N U N N U N S</p> <p>1 V S S 1 1 I N 4 1 T 1O U T 1 4 D G N D 1 D G N D 1 T 2O U T 1 3 2 I N 3 1 E N 2 9</p> <p>6 5 4 3 2 1 0</p> <p>P</p> <p>0</p> <p>. 1</p> <p>1</p> <p>7</p> <p>7</p> <p>7</p> <p>4. CIRCUIT DESCRIPTION 4.1 DESIGNING:Since the main intension of this project is to design a ROBOT with wireless camera. In order to fulfill this application there are few steps that has been performed i.e. 1) Designing the power supply for the entire circuitry. 2) Selection of microcontroller that suits our application. 3) Selection of Robot. 4) Selection of RF. 5) Selection of LCD. 6) Selection of DRIVER IC. 7) Selection of wireless camera Complete studies of all the above points are useful to develop this project.</p> <p>4.2 POWER SUPPLY SECTION:In-order to work with any components basic requirement is power supply. In this section there is a requirement of two different voltage levels. Those are 1) 5V DC power supply. 2) 3.3V DC power supply. Now the aim is to design the power supply section which converts 230V AC in to 5V DC. Since 230V AC is too high to reduce it to directly 5V DC, therefore we need a step-down transformer that reduces the line voltage to certain voltage that will help us to convert it in to a 5V DC. Considering the efficiency factor of the bridge rectifier, we came to a conclusion to choose a transformer, whose secondary voltage is 3 to 4 V higher than the required voltage i.e. 5V. For this application 0-9V transformers is used, since it is easily available in the market.</p> <p>8</p> <p>8</p> <p>8</p> <p>The output of the transformer is 9V AC; it feed to rectifier that converts AC to pulsating DC. As we all know that there are 3 kind of rectifiers that is 1) half wave 2) Full wave and 3) Bridge rectifier Here we short listed to use Bridge rectifier, because half wave rectifier has we less in efficiency. Even though the efficiency of full wave and bridge rectifier are the same, since there is no requirement for any negative voltage for our application, we gone with bridge rectifier. Since the output voltage of the rectifier is pulsating DC, in order to convert it into pure DC we use a high value (1000UF/1500UF) of capacitor in parallel that acts as a filter. The most easy way to regulate this voltage is by using a 7805 voltage regulator, whose output voltage is constant 5V DC irrespective of any fluctuation in line voltage. In this project 3.3V power supply is used to operate the Xbee module. To get 3.3V we are using LM1117 voltage regulator which is 3.3V regulator.</p> <p>4.3 SELECTION OF MICROCONTROLLER:As we know that there so many types of micro controller families that are available in the market. Those are 1) 8051 Family 2) AVR microcontroller Family 3) PIC microcontroller Family 4) ARM Family Basic 8051 family is enough for our application; hence we are not concentrating on higher end controller families.</p> <p>9</p> <p>9</p> <p>9</p> <p>In order to fulfill our application basic that is AT89C51 controller is enough. But still we selected AT89S52 controller because of inbuilt ISP (in system programmer) option. There are minimum six requirements for proper operation of microcontroller. Those are: 1) power supply section 2) pull-ups for ports (it is must for PORT0) 3) Reset circuit 4) Crystal circuit 5) ISP circuit (for program dumping) 6) EA/VPP pin is connected to Vcc. PORT0 is open collector thats why we are using pull-up resistor which makes PORT0 as an I/O port. Reset circuit is used to reset the microcontroller. Crystal circuit is used for the microcontroller for timing pluses. In this project we are not using external memory thats why EA/VPP pin in the microcontroller is connected to Vcc that indicates internal memory is used for this application.</p> <p>4.4 SELECTION OF ROBOT:Here in this project I designed one robot which has three gear motors. Two gear motors are connected to two wheels and another motor is connected to wireless camera for rotating the webcam. And we are placing one flexible wheel in the front side of the robot.</p> <p>4.5 SELECTION OF LCD:A liquid crystal display (LCD) is an electronically-modulated optical device shaped into a thin, flat panel made up of any number of color or monochrome pixels filled with liquid crystals and arrayed in front of a light source (backlight) or reflector. In this project we are using LCD, to display the direction of the robot.</p> <p>10</p> <p>10</p> <p>10</p> <p>4.6 SELECTION OF RF:The aim of this project is to control the robot direction from remote areas, so wireless communication is required to fulfill our application. There are different wirelesses communications exist. For this application we prefer XBee modules as RF. As per RF communication basic RF modules works on 434MHz frequency. Based on this frequency we are not able to transmit the data from transmitter to receiver with proper synchronization. To overcome this problem we are using XBee modules as a RF. The XBee module works on 2.4GHz frequency, which is more than the basic RF module frequency. By using these XBee modules we can transmit data for long distances as compared to basic RF modules. This XBee module works as a transceiver i.e. it is connected at both transmitter as well as receiver. For this application we are using the XBee modules either transmitter or receiver.</p> <p>4.7 SELECTION OF DRIVER:When the motors of robot is rotating they will produce back EMF. Due to that back EMF high current is produced. If we connect these motors directly to the microcontroller the microcontroller may damage because of that current thats why we are selected L293d driver IC.</p> <p>4.8 CIRCUIT OPERATION:The main aim of this project is to control the robot with wireless technolo...</p>