Tutorial.SFRRangerReader History

Hide minor edits - Show changes to markup

November 16, 2011, at 04:41 AM by Scott Fitzgerald -
Changed line 41 from:
to:
September 22, 2010, at 09:26 AM by Christian Cerrito -
Added line 54:
Changed lines 56-60 from:
to:
September 22, 2010, at 03:00 AM by Christian Cerrito -
Added lines 24-25:

Attach the SDA pin of your SRFxx to analog pin 4 of your Arduino, and the SCL pin to analog pin 5. Power your SRFxx from 5V, with the addition of a 100uf capacitor in parallel with the range finder to smooth it's power supply.

September 22, 2010, at 02:57 AM by Christian Cerrito -
Changed lines 45-51 from:
to:
September 22, 2010, at 02:53 AM by Christian Cerrito -
Changed lines 35-36 from:

Describe what's going on here

to:

Code

If using two SRFxxs on the same line, you must ensure that they do not share the same address. Instructions for re-addressing the range finders can be found at the bottom of the code below.

September 22, 2010, at 02:50 AM by Christian Cerrito -
Changed lines 5-6 from:

This example shows how to read a Devantech SRFxx , an ultra-sonic range finder which communicates via the I2C synchronous serial protocol, using Arduino's Wire Library.

to:

This example shows how to read a Devantech SRFxx , an ultra-sonic range finder which communicates via the I2C synchronous serial protocol, using Arduino's Wire Library.

Changed lines 43-44 from:
to:
September 22, 2010, at 01:45 AM by Christian Cerrito -
Changed line 32 from:
to:
September 22, 2010, at 01:21 AM by Christian Cerrito -
Changed lines 24-25 from:
to:
September 22, 2010, at 01:21 AM by Christian Cerrito -
Changed lines 5-8 from:

Description

This example shows how to read a Devantech SRFxx , an ultra-sonic range finder which communicates it's data via the I2C synchronous serial protocol, using Arduino's Wire Library.

to:

This example shows how to read a Devantech SRFxx , an ultra-sonic range finder which communicates via the I2C synchronous serial protocol, using Arduino's Wire Library.

September 22, 2010, at 12:33 AM by Christian Cerrito -
Changed line 16 from:
  • Devantech SRFxx Range Finder (models SRF02, SRF08, or SRF10, click to compare
to:
  • Devantech SRFxx Range Finder (models SRF02, SRF08, or SRF10, click to compare)
September 22, 2010, at 12:33 AM by Christian Cerrito -
Changed line 16 from:
  • Devantech SRFxx Range Finder (SRF02, SRF08, or SRF10)
to:
  • Devantech SRFxx Range Finder (models SRF02, SRF08, or SRF10, click to compare
September 22, 2010, at 12:31 AM by Christian Cerrito -
Changed lines 7-8 from:

This example shows how to read a Devantech SRFxx , an ultra-sonic range finder which communicates it's data via an I2C synchronous serial protocol, using Arduino's Wire Library.

to:

This example shows how to read a Devantech SRFxx , an ultra-sonic range finder which communicates it's data via the I2C synchronous serial protocol, using Arduino's Wire Library.

September 22, 2010, at 12:31 AM by Christian Cerrito -
Changed lines 7-8 from:

This example shows how to read a Devantech SRFxx , an ultra-sonic range finder which communicates it's data via an I2C synchronous serial protocol, using Arduino's Wire Library.

to:

This example shows how to read a Devantech SRFxx , an ultra-sonic range finder which communicates it's data via an I2C synchronous serial protocol, using Arduino's Wire Library.

September 22, 2010, at 12:30 AM by Christian Cerrito -
Changed lines 7-8 from:

This example shows how to read a Devantech SRFxx, an ultra-sonic range finder which communicates it's data via an I2C synchronous serial protocol, using Arduino's Wire Library.

to:

This example shows how to read a Devantech SRFxx , an ultra-sonic range finder which communicates it's data via an I2C synchronous serial protocol, using Arduino's Wire Library.

September 22, 2010, at 12:28 AM by Christian Cerrito -
Deleted lines 12-13:
Added lines 16-20:
  • Devantech SRFxx Range Finder (SRF02, SRF08, or SRF10)
  • 1 100 uf capacitor
  • breadboard
  • hook-up wire
September 22, 2010, at 12:26 AM by Christian Cerrito -
Changed lines 11-14 from:

Because this protocol allows for each 12C enabled device to have it's own address, and both master and slave devices to take turns communicating over a single line, it is possible for your Arduino to communicate with many devices (in turn) while using just two wires.

to:

Because the 12C protocol allows for each enabled device to have it's own unique address, and as both master and slave devices to take turns communicating over a single line, it is possible for your Arduino to communicate with many devices (in turn) while using just two pins of your microcontroller.

September 22, 2010, at 12:22 AM by Christian Cerrito -
Changed lines 11-14 from:

Because this protocol allows for each 12C enabled device to have it's own address, and both master and slave devices to take turns communicating over a single line, it is possible to communicate with many devices in turn while using just two pins on your Arduino.

to:

Because this protocol allows for each 12C enabled device to have it's own address, and both master and slave devices to take turns communicating over a single line, it is possible for your Arduino to communicate with many devices (in turn) while using just two wires.

September 22, 2010, at 12:21 AM by Christian Cerrito -
Changed lines 3-4 from:

Example Name

to:

SRFxx Sonic Range Finder Reader

Added lines 7-14:

This example shows how to read a Devantech SRFxx, an ultra-sonic range finder which communicates it's data via an I2C synchronous serial protocol, using Arduino's Wire Library.

The I2C protocol involves using two wires to send and receive data: a serial clock pin (SCL) that the Arduino pulses at a regular interval, and a serial data pin (SDA) over which data is sent between the two devices. As the clock pulse changes from low to high (known as the rising edge of the clock), a bit of information containing the address of a specific device and a request for data, is transferred from the Arduino to the I2C devices over the SDA line. When the clock pin changes from high to low (the falling edge of the clock), the called upon device transmits it's data back to the Arduino over the same line.

Because this protocol allows for each 12C enabled device to have it's own address, and both master and slave devices to take turns communicating over a single line, it is possible to communicate with many devices in turn while using just two pins on your Arduino.

August 13, 2010, at 10:35 PM by Tom Igoe -
Changed line 29 from:
to:
August 13, 2010, at 10:35 PM by Tom Igoe -
Changed line 29 from:
to:
August 13, 2010, at 10:34 PM by Tom Igoe -
Added lines 1-35:

Share