Online CatalogueuCAM Ultrasonic Rangers USB to I2C Interfaces Ultrasonic Rangers Robot Drive System 
 Home Contact Search View Cart CheckoutLogin  

Wiring and Software Examples for Popular Controllers

Any MPU
  
  
I2C bus tutor
An I2C bus tutorial for the newcomer to this bus. It includes all the essential details of the bus, together with a worked example of a software master driver and how to use it. Written in C, only very small changes should be necessary for almost any micro-controller. The example is for a PIC.
PIC16F877
LCD03.C
CMPS03.C
SRF04.C
SRF05.C
SRF08.C
TPA81.C
This small suite of example C source code files shows how to use the internal synchronous port on the PIC series microcontrollers to communicate with the compass, SRF04, SRF05, SRF08 and TPA81 modules, displaying the results on the LCD02/LCD03 modules. They are written for the Hitech PICC compiler. The SRF05 example demonstrates the SRF05's single pin feature for both trigger and echo signals.
PIC18CMPS03
CMPS09
SRF01
SRF02
SRF04
SRF05
SRF06
SRF08
SRF10
SRF235
SRF485(WPR)
TPA81
SD20
SD21
MD03
MD22
MD25
MD49
RLY08

Examples using a PIC18Fxxxx to control our modules.
PIC24FCMPS03
SRF01
SRF02
SRF04
SRF05
SRF08
SRF10
SRF235
TPA81
SD20
SD21
MD03
MD22
MD23
RLY08

Examples using a PIC24F16GA002 to control our modules.
Arduino  
 
CMPS03
CMPS09
CMPS10
SRF01
SRF02
SRF04
SRF05
SRF08
SRF10
SRF235
SRF485(WPR) TPA81
SD20
SD21
MD03
MD22
MD25
MD49
RLY08

These examples were developed on the Freeduino.
Arduino Due  
 
MD25

Arduino Due Examples.
AVRCMPS03
CMPS09
SRF01
SRF02
SRF05
SRF05
SRF08
SRF10
SRF235
TPA81
MD03
MD22
MD25
RLY08
SD20
SD21
A set of examples demonstrating how to use a ATMEGA32 to communicate with our modules
Basic Atom  
 
CMPS03
SRF04
SRF08
SP03
Connect to the Basic Atom using the I2C bus
Measures range using echo pulse width
Includes changing SRF08 I2C address
Text to speech via the I2C Bus
BrainStem







   
SRF02
SRF04
SRF05

SRF08
SRF10
CMPS03
MD03
MD22
SP03
Links to Acroname's documentation pages







   
BS2 Stamp











  
CMPS03 PWM
CMPS03 I2C
SRF08
SP03  
LCD02_SER LCD02_I2C
SD21
SRF02
SRF08
SRF10
SRF235
TPA81
RLY08_I2C

RLY08_SER

MD23
BS2 measures compass PWM to determine bearing
Connect to any BS2 using the I2C bus
Includes changing SRF08 I2C address
BS2p code using the I2C bus
BS2 Serial mode example
BS2p I2C mode example
BS2p controlling SD21 on an EH2 robot
Serial Mode example including address change, for SRF02
 
BS2p code for connecting to our standard I2C connector pin-out
  
BS2, BS2e, BS2sx and BS2p, Display the TPA81 thermal pixel values on a PC
I2C and Serial examples using the RLY08 8 channel Relay Module with the Stamp
  
Driving the MD23 from a BS2 using bit-bashed I2C routines
BX-24




  
CMPS03
SRF04
SRF08
SD21
EH2/SD21
LCD03
Connect to BX-24 using the I2C bus
Measures range using echo pulse width
Includes changing SRF08 I2C address
Using the BX24 on the SD21: Contributed by Luigi Carnevale of www.robot-italy.com
RC control of the EH2+SD21 using 3 channel receiver: Contributed by Luigi Carnevale
Demonstration of Printing, Backlight control and Keypad scanning
CCIUM
  
   
CMPS03
SRF04
SRF08
Examples supplied by H.J. Windt, for the C-Control I Application Board 1.x and 2.x. The SRF04 example includes a neat circuit for converting the SRF04 echo line into a pulse stream for counting on a micro.
CCSSRF08Performs SRF08 ranging using the CCS compiler. Contributed by Harry Mueller
Dios


  
CMPS03
SRF04
SRF08
SP03
Displays software version and bearing on PC
Links directly to Kronos Robotics App Note
Displays software version, Light sensor reading and range on PC
Demonstrate dynamic speech by speaking the software version number
Freedomotic  
 
ETH-RLY16
Freedomotic is an open source building automation framework. This plugin allows Freedomotic to control the ETH-RLY16.
HC11 SRF08 Zagros Robotics HC11 C code using Grant Beattie's I2C bit banging routines
iPhone USB Relay Modules An iPhone app to control our USB Relay Modules via a PC.
Javelin Stamp
 
CMPS03
SRF08
SD21
MD22
Example Java programs for the Parallax Javelin Stamp
Contributed by James Burrows

 
Jstamp CMPS03Java program for the CMPS03 includes calibration routines: Contributed by Tim White
LinuxCMPS03
CMPS10
SRF02
SRF08
TPA81
USB-ISS
USB-RLY02
USB-RLY08
USB-OPTO-RLY88
SD84
These Linux examples use gcc on Ubuntu 10.4 LTS to demonstrate how to communicate with our modules.
Mac USB-RLY08
USB-RLY16

USB-ISS
Full Project, use as an example or starter for further development.
There is also a compiled and ready to install version.

Full Project to control SRF08 ultrasonic ranger.
MAVRICCMPS03
SRF08
SP03
Links to BDMICRO's documentation pages
Examples for MAVRIC II using BASCOM-AVR and GCC-AVR
 
Mikro CLCD03An example for using the LCD03 with the Mikro C compiler, contributed by Ali Topping
.NET
CMPS03
SD20
SRF02
SRF05
A set of drivers written by Pavel BÁNSKÝ of Microsoft, for few of our modules
Used in .NET Micro Framework.

 
OOPic



     
CMPS03
SRF04
SRF08
SRF08

MD03
Reads the bearing and lights LED if pointing North
How to use multiple SRF04's with the OOPic
Displays ranges on LCD, includes changing I2C address
OOPic-R connections for the SRF08
Connects using I2C bus. Spins motor back and forth
Picaxe  
 
CMPS03
CMPS09
SRF01
SRF02
SRF04
SRF05
SRF08
SRF10
SRF235
TPA81
SD20
SD21
MD03
MD22
MD49
RLY08
These examples were developed using the Picaxe18x chip.

MD25
 

Example for the MD25/RD02. Contributed by Dr. Stephen Prior, Middlesex University.
PICBASIC
PRO
CMPS03
SRF01
SRF02
SRF04
SRF05
SRF08
SRF10
SRF235
TPA81
SD20
SD21
MD03
MD22
MD25
RLY08

Examples using PicBasic-Pro compiler and the PIC16F877 chip.
Propeller
  
  


 
SRF08
MD22
MD23
SD21

  
LCD03
SRF08
MD23
Example programs for the Parallax Propeller chip
Contributed by James Burrows 



and our example files for the LCD03, SRF08 and MD23
  
Proton+
Compiler

 
SFR04
SRF08

 
Examples written by Crownhill Associates for the Proton+ Pic Basic compiler. Includes a very nice introductory article on the principles of ultrasonics and even has schematics for building your own.
Raspberry Pi  
 
CMPS03
CMPS10
SRF01
SRF02
SRF08
SRF10
SRF235
TPA81
SD21
MD03
MD22
MD25
MD49
RLY08
USB-RLY08b

Raspberry Pi I2C examples.
Robotics
Studio







 
USBI2C
RF04/CM02
CMPS03
TPA81
SRF08
SRF235
SP03
MD23
SD21
LCD03
GPIO14
Latest (November 2008 Release) - version 0.7 Driver files for Microsoft Robotics Studio.
Contributed by Erik Oppedijk.







  
ZBasic
 
SRF10
 
This application note is for the SRF10, but is applicable to other modules as well.
The ZBasic files are here. Written by Mike Perks.
Chucky


  
CM02
CMPS03
MD22
RF04
SRF08
Chucky is our ever changing test robot. This article show how to use a PC to control your robot over a radio link. Sample code written in Visual C++ Version 6 is included to control Chucky using Behavior based techniques.

ThermaBot


  
RD02
TPA81
SRF08
ThermaBot is one of our test robots. This example shows how to build a robot that uses a thermal sensor to sense and follow a human. Sonar's are used to make sure the robot doesn't actually run you over!
Visual Basic
Express
VB_24C02/24C32This zipped project folder shows to use the USB_I2C module to Read/Write industry standard I2C EEPROMs. Presented for the 24C02 and 24C32 devices for Visual Basic Express 2008
USB-I2C to MD22 Controlling an MD22 via a USB_I2C module
USB-ISS to MD03 Controlling an MD03 via a USB_ISS module
USB-ISS to CMPS10Reads Bearing, Roll and Pitch from a CMPS10
SD84Simple demonstration program to control servo's on the SD84
Visual C#
Express
CS_24C02/24C32
CS_MD23/RD01 
CS_RLY08 
Connecting USB-I2C module to 24C02 and 24C32 devices.
and the RD01/MD23.
Using RLY08 in serial mode with RS232/MAX232
USB-ISS Example to connect USB-ISS to the LCD03 Display

Visual C++ V6

Visual C++ V6
USB-RLY16
Uli Behrenbeck's example of using Visual C++ V6 to drive the USB-RLY16 module

1st Rule of Robotics - Have Fun!