11.07.2015 Views

Builders guide robot pacman.pdf

Builders guide robot pacman.pdf

Builders guide robot pacman.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Since the beacon signal needs to cover 360 degrees but each emitter only has a60-degree transmission angle, we arranged 6 emitters into a circle to form the IRbeacon. Both IR beacon and IR receivers are positioned on the top of the <strong>robot</strong>sabove the wall, so they are not obstructed as the <strong>robot</strong>s move around the maze.5.4 Contact SensorThe contact sensor on both Pac-Man and Ghost uses a simple pull-down circuit tonotify the microprocessor upon collision of the two <strong>robot</strong>s. The circuitry is asshown below in Figure 28. The contact sensor is designed to be a ringsurrounding the base of the <strong>robot</strong>s. The circular shape was chosen to provide anall-around, large surface area for contact. The ring is constructed with a flexibleplastic support with brass strips mounted on it. The conductive strips on the tworings are designed to be offset, so the contact would be detected by both <strong>robot</strong>s.The contact sensor is shown below in Figure 28.5.5 LCD displayFigure 28. Contact SensorThe number of dots collected, as well as the number of times contacts are madeare shown on the top layer of Pac-Man by an LCD display. Each time a dot iscollected, the microcontroller will increment the dot count on the LCD display.The last two digits belong to the dot count, and the first digit is the contact count.Originally we intended to use LED 7-segment displays; however, due to currentconsideration, we changed our design to the less current intensive LCDtechnology. Upon testing, we discovered that the segments on the LCD displayfades quickly if we simply supply DC power to the segment pin. The solution isto use a square wave to drive the display segments allowing the LCD to dischargeduring the off period. Testing also shows that the frequency of the square wave21

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

Saved successfully!

Ooh no, something went wrong!