11.07.2015 Views

Builders guide robot pacman.pdf

Builders guide robot pacman.pdf

Builders guide robot pacman.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 31. Pin assignments for Pac-Man6.1.1 Obstacle SensorsWe decided to control the power to the obstacle sensors with the PIC toreduce current consumption instead of having the sensor LEDs constantlypower from our battery supply. When the sensors are powered on, the left,right, and front obstacle sensors readings are valid.How the sensors readings represent the proximity to the maze walls isdetermined in the manual calibration stage when the <strong>robot</strong> is first turnedon. When the <strong>robot</strong> is being calibrated, measurements are taking toestablish whether a signal represents the presence of a wall or not. Alsomeasured is the nearest acceptable distance to a sidewall before someadjustments are made for being off-centred.Voltage increases as a sensor approaches a wall so by establishing athreshold for the presence of a wall, any reading that is lower than thisthreshold assumes that there is no presence of a wall.25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!