Online CatalogueText to Speech Synthesiser USB to I2C Interfaces Ultrasonic Rangers Robot Drive System 
 Home Contact Search View Cart Checkout   

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.
PIC18F452Example18f452.cAs above, for the PIC18 series using Microchip C18 compiler - Contributed by Jindong Liu
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
SRF08
SRF10
SRF235
TPA81
RLY08_I2C

RLY08_SER
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
  
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
  
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
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
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
SP03
SRF08
TPA81
Connect to PICAXE-28x  using the I2C bus

Picaxe18X for the TPA81. Contributed by Dr Stephen Prior and his team from Middlesex University.
PICBASIC
PRO
CMPS03
An example using PicBasic-Pro on the PIC16F872 - contributed by Vladimir Kornienko  
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.
Robotics
Studio







 
USBI2C
RF04/CM02
CMPS03
TPA81
SRF08
SRF235
SP03
MD23
SD21
LCD03
GPIO14
Latest (August 2007 Release) - version 0.6 Driver files for Microsoft Robotics Studio (1.0). 
Contributed by Chris Kilner.
Chris has further information on these drivers here.






  
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.
HC11 SRF08 Zagros Robotics HC11 C code using Grant Beattie's I2C bit banging routines
AVR







     
SRF02
CMPS03
LCD03


SRF08
SRF08
SRF04
LCD03
GPIO14
AVR code to read the CMPS03 and SRF02, displaying the results on the LCD03
with wiring diagram for the ATMEGA32.


Chris Efstathiou's AVR C code using GCC-AVR. 
Bret Truchan's program is for tracking objects using two SRF08's and a servo.
Koen Van den Heuvel's BASCOM-AVR code for controlling two SRF04's
Colin Sauze's code for the AVR using GCC-AVR for 
the LCD03 and GPIO14.
Linux

  
SP03
CMPS03
TPA81
Bram Stolk's C code on Cerfcube StrongARM Linux machine
Compass example adapted from Bram Stolk's code above, by Josh Marshall
Matt Crump's Fedora FC3 code to use the TPA81 on an OAP robot
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.

 
Visual Basic
Express 2008
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
Visual C#
Express 2008
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
1st Rule of Robotics - Have Fun!