You are viewing an older revision! See the latest version

SRF08 Ultrasonic Ranger

Table of Contents

  1. Hello World!
  2. Library

This is the page for the SRF08 Ultrasonic Ranger, with I2C interface.

It is available at a number of places including :

The datasheet can be found from the Rapid Electronics website, or there is a good resources at Robot Electronics

Hello World!

#include "mbed.h"

#include "SRF08.h"

SRF08 srf(p9, p10, 0xE0);

int main()
{
  while (1) {
    printf("Mesured distance: %f cm\n", temperature.read());
    wait(1.0);
  }  
}

Library

http://mbed.org/users/chris/programs/SRF08


All wikipages