User manual

AREXX Engineering & JM3 Engineering
Version: 1.20 Apr. 20, 2014 page: 13
2.4 IOExtDemo SW
Provides a base implementation to control the Sensor & IO board. A display 2 x 16 char will be
supported. The description is within the source code.
Source code files for both boards are included in the package (see src folder). The software can be
complied with Visual Studio 2010 Express (free download at Microsoft) the makefile is included.
The makefile supports the existing C- code libs from the RP6V2 and RP6WIFI and combined this
with the C++ code from the sensor boards in an easy way.
Load the IoExtDemo.hex file into the RP6WIFI control board. The source code (included in the
package) for the demo software can be complied with Visual Studio 2010 Express (free download
at Microsoft) the makefile is included.
The following messages will be shown on the LCD (Pressing SW1 RP6WIFI board will move to the
next screen):
1. StartScreen: RP6 IO Extension Demo Program
followed with Date (08.03.2013)
and Time (starting from 00:00:00)
2. Accelerometer: P (Pitch angle in 1/10 degree)
R (Pitch angle in 1/10 degree)
3. Compass: Hd (heading in degree)
Compass calibration (use SW2 on the RP6WIFI board):
1.) Press S1 after aligning the robot to North,
2.) Align to East followed and press S1
3.) Same for South and West to calibrate compass.
After calibration is completed the status LED should switch of.
HINT: Ferro-magnetic material will influence the result in heading
quality!!!
4. Temperatur: T (in degree C)
5. LED: SW2 toggles all LEDs ON/OFF
6. Servo: SW2 toggles between 2 PWM values
-45 deg and +45 deg
Keep in mid this is only a basic implementation to show how the IC shall be initialized and to
compute some data, e.g. the 2D-Compass application is included. The source code should be
adapted to your RP6V2 / RP6 software. Further documentation please refer to the source.