Escolar Documentos
Profissional Documentos
Cultura Documentos
Overview
IR Sensor Circuit
Wheels: In it three wheels are employed, two at rear end and one
at front end. Rear wheels are attached with the motors and also
control the steering of robot. Front wheel is the loose steered
wheel which moves in the direction of the pressure applied to it.
Block Diagram:
Description
The sensors are mounted at front end of the robot at both left and
right side. The sensors are designed to detect the light reflecting from
the platform on which it is moving and at the edge, sensors dont get
this light. The robot starts moving on platform and until it is on the
platform it is receiving the reflected light and robot keeps moving. As
soon as it reaches the edge (say left edge), the left sensor doesnt
DDRx register:
It stands for data direction register. This register is of 8 bits. Value of this
register decides whether the port will act as input port or as output port.
To make any port as input port, the contents of the associated DDRx
register are made 0x00 and to make any port as output port, the contents
of the associated DDRx register are made 0xff.
PORTx register:
This register is responsible for outputting any data to the port. Data to be
outputted to any port is loaded to the corresponding PORTx register after
making the direction of that port as output.
For example:
To send 0x14 to PORTA:DDRA=0xFF;
PORTA=0x14;
PINx register:
This register is responsible for inputting data from any port. Data to be
inputted from any port is taken from the corresponding PINx register
after making the direction of that port as input.
For example:
To get data from PORTB:DDRA=0x00;
var=PINB;