……computer controlled robot
description
Transcript of ……computer controlled robot
![Page 1: ……computer controlled robot](https://reader036.fdocuments.net/reader036/viewer/2022062321/568139bb550346895da15b75/html5/thumbnails/1.jpg)
![Page 2: ……computer controlled robot](https://reader036.fdocuments.net/reader036/viewer/2022062321/568139bb550346895da15b75/html5/thumbnails/2.jpg)
WHY PARALLEL PORT?The simplest computer controlled robotRequires only basic programming skills in C
to start off withCan take inputs from your robot and
accordingly give output signalsCircuitry is simple
![Page 3: ……computer controlled robot](https://reader036.fdocuments.net/reader036/viewer/2022062321/568139bb550346895da15b75/html5/thumbnails/3.jpg)
![Page 4: ……computer controlled robot](https://reader036.fdocuments.net/reader036/viewer/2022062321/568139bb550346895da15b75/html5/thumbnails/4.jpg)
The PinsData Register:This is the register that allows the user to
write values into the port. Status Register (Pins):This port acts like a reader and it has 5
pins for inputs.Control Register (Pins):This register can be used in both ways: it
enables a user to write values to the outside world, as well as read values
![Page 5: ……computer controlled robot](https://reader036.fdocuments.net/reader036/viewer/2022062321/568139bb550346895da15b75/html5/thumbnails/5.jpg)
What is High and Low?A Parallel port uses Transistor Transistor
Logic.A high signal i.e.1 means the output of the
transistor arrangement is from 2.2V to 5V.A low signal i.e.0 means the output of the
transistor arrangement is from 0.0V to 0.8V.
![Page 6: ……computer controlled robot](https://reader036.fdocuments.net/reader036/viewer/2022062321/568139bb550346895da15b75/html5/thumbnails/6.jpg)
Motor DriverIt acts as an interface between the port and
motor.The output of the parallel port is too low to
drive a motor.The motor driver receives signals(1 or 0)
from the port and gives an output to the motor.
![Page 7: ……computer controlled robot](https://reader036.fdocuments.net/reader036/viewer/2022062321/568139bb550346895da15b75/html5/thumbnails/7.jpg)
L293D(Motor Driver)
![Page 8: ……computer controlled robot](https://reader036.fdocuments.net/reader036/viewer/2022062321/568139bb550346895da15b75/html5/thumbnails/8.jpg)
Programming#include<stdio.h>#include <dos.h>
void main(void){ outportb(0x378,0xFF); }0xFF=1111 1111 outportb(0x378,0x00); ---------STOP MOTOR outportb(0x378,0x03);---------MOVE MOTOR(Break!)) outportb(0x378,0x01);---------MOVE MOTOR(CCW) outportb(0x378,0x02);---------MOVE MOTOR(CW) .
![Page 9: ……computer controlled robot](https://reader036.fdocuments.net/reader036/viewer/2022062321/568139bb550346895da15b75/html5/thumbnails/9.jpg)
![Page 10: ……computer controlled robot](https://reader036.fdocuments.net/reader036/viewer/2022062321/568139bb550346895da15b75/html5/thumbnails/10.jpg)
Finding the addressGo to Start > Control Panel > System >
‘Hardware’ Tab > Click on Device Manager > Look for ‘Ports’ in the device list > Double click on LPT1 > Click on the ‘Resources’ Tab.
Here you can see the starting address of I/O Range.
It is usually 0x378 or 0x278
![Page 11: ……computer controlled robot](https://reader036.fdocuments.net/reader036/viewer/2022062321/568139bb550346895da15b75/html5/thumbnails/11.jpg)
![Page 12: ……computer controlled robot](https://reader036.fdocuments.net/reader036/viewer/2022062321/568139bb550346895da15b75/html5/thumbnails/12.jpg)
Materials Required:1 parallel port Male connector 1 DC Motor 1 Motor Driver [L293D] 1 5V regulator [7805]Warning:Your Parallel port is not designed to handle
more than 5V.
![Page 13: ……computer controlled robot](https://reader036.fdocuments.net/reader036/viewer/2022062321/568139bb550346895da15b75/html5/thumbnails/13.jpg)
![Page 14: ……computer controlled robot](https://reader036.fdocuments.net/reader036/viewer/2022062321/568139bb550346895da15b75/html5/thumbnails/14.jpg)
Useful Software and LinksParmon(www.geekhideout.com/downloads/parmon.zip)www.machinegrid.com