Linux Examples

These examples are designed to demonstrate how to use a range of  our modules on a Linux system. All code was written in C and compiled using gcc on Ubuntu 10.4 LTS but should work on other Linux distributions too. We have provided the source code for download ready to be compiled and used on your system.

Source:
USB-I2C CMPS03 Using a USB-I2C to read bearing data from the CMPS03
USB-I2C CMPS09 Using a USB-I2C to read bearing, pitch and roll data from the CMPS09/CMPS10.
USB-I2C SRF02 Using a USB-I2C to read range data from an SRF02, this example will also work for the SRF10 and SRF235.
USB-I2C SRF08 Using a USB-I2C to read range, bearing and light data from an SRF08.
TPA81 Using a USB-I2C to read ambient temperature and 8 pixel temperature readings from the TPA81
USB-ISS Serial Using a USB-ISS in serial mode to gear range data from an SRF02
USB-ISS I/O Set the USB-ISS I/O pins to high or low states
USB-ISS I2C Using a USB-ISS to read range, and light data from an SRF08.
USB-ISS SPI Using a USB-ISS in SPI mode to read and write microchips 23k256 SRAM
USB-ISS MD25 USB-ISS controlling an MD25 to drive a motor to an encoder value of 0x00003000
USB-RLY08B A command line tool to show how to set the states of the relays on the USB-RLY08 from an input from the user. This will also set the relay states of the USB-RLY16.
USB-OPTO-RLY88 A command line tool that sets the states of the relays from an input binary value from the user and displays the states of the inputs. This also works with the USB-OPTO-RLY816.
USB-RLY02 A command line tool that will set the relay states according to input from the user.
SD84 A command line tool that sets a servo to a position. input by the user.