Copyright © Parallax Inc.
Penguin Robot (#27313-27316)
v1.4 2/16/2010 Page 19 of 23
3.4. EXAMPLE PROGRAMS
Download the following test programs from the Penguin product page at www.parallax.com and test that
each Penguin subsystem is working properly. Complete code listings are also included in this document.
y
Penguin-CenterServos.bpx, page 6
y
Penguin-SpeakerTest.bpx, page 20
y
Penguin-IRTest.bpx, page 21
y
Penguin-7SegmentLEDTest-v1.3.bpx, page 21
y
Penguin-PhotoresistorTest.bpx, page 20
y
Penguin-CompassTest.bpx, page 22
Once you are familiar with the I/O capabilities of the Penguin, the following programs can be used to
demonstrate all of the Penguin’s abilities. Download from the Penguin product page at www.parallax.com.
y
Penguin-AutonomousNavigation.bpx
y
Penguin-MigrateNorth.bpx
3.5. OPTIONAL COMPASS CALIBRATION
To improve the accuracy of the compass, the calibration routines for the Hitachi HM55B Compass Module
have been ported to the Penguin. With the calibrated compass routines added to the Penguin's control
code, extra RAM and code space is required. Separate versions of the following programs have been
created to allow for either more available resources or a more accurate compass.
Original Code
Code Incorporating a Calibrated Compass
Penguin-CompassTest.bpx
Penguin-CalibratedCompassTest.bpx
Penguin-AutonomousNavigation.bpx
Penguin-AutonomousNavigation-CalibratedCompass.bpx
Penguin-MigrateNorth.bpx
Penguin-MigrateNorth-CalibratedCompass.bpx
Before the calibrated compass routines can be used, Penguin-CompassCalibration.bpx must be run to
record the compass calibration data. For more information about compass calibration, please read the
product documentation and the associated code available from the #29123 product page at
www.parallax.com.
3.6. OTHER HELPFUL DOCUMENTATION
The following materials are helpful documents for programming the Penguin; each can be downloaded
from its associated product page:
y
BASIC Stamp PBASIC Syntax Guide (on-line version of help file installed with the BASIC Stamp
Windows Editor)
y
HM55B Compass Documentation (#29123)
y
HM55B Graphical Viewer for the HM55B (#29123)
y
Smart Sensors and Applications (a Stamps in Class Text) (#28029)
y
IR Remote for the Boe-Bot Text (a Stamps in Class Text) (#70016)
y
Ping))) Ultrasonic Sensor Documentation (#28014)
Summary of Contents for Penguin
Page 24: ......