Tutorial.SFRRangerReader History

Hide minor edits - Show changes to output

November 16, 2011, at 04:41 AM by Scott Fitzgerald -
Changed line 41 from:
(:source http://arduino.cc/en/pub/code/master/libraries/Wire/examples/SFRRanger_reader/SFRRanger_reader.pde lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/master/libraries/Wire/examples/SFRRanger_reader/SFRRanger_reader.ino lang=arduino tabwidth=4:)
September 22, 2010, at 09:26 AM by Christian Cerrito -
Added line 54:
* [[Reference/Wire | Wire Library]]
Changed lines 56-60 from:
* [[master_reader]]
* [[master_writer]]
* [[slave_receiver]]
* [[slave_sender]]
to:
* [[master_reader | Master Reader/Slave Writer]]
* [[master_writer | Master Writer/Slave receiver]]


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:
* [[Reference/Wire | Wire Library]]
to:
* [Reference/WireBegin | @@Wire.begin()@@]]
* [[Reference/WireBeginTransmission | @@Wire.beginTransmission()@@]]
* [[Reference/WireEndTransmission | @@Wire.endTransmission()@@]]
* [[Reference/WireSend | @@Wire.send()@@]]
* [[Reference/WireRequestFrom | @@Wire.RequestFrom()@@]]
* [[Reference/WireReceive | @@Wire.receive()@@]]
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 [[http://www.acroname.com/robotics/parts/R287-SRF02.html | Devantech SRFxx]] , an ultra-sonic range finder which communicates via the [[ http://en.wikipedia.org/wiki/I2C | I2C synchronous serial protocol]], using [[Reference/Wire | '''Arduino's Wire Library''']].
to:
This example shows how to read a [[http://www.acroname.com/robotics/parts/R287-SRF02.html | Devantech SRFxx]] , an ultra-sonic range finder which communicates via the [[ http://en.wikipedia.org/wiki/I2C | I2C synchronous serial protocol]], using Arduino's [[Reference/Wire | ''' Wire Library''']].
Changed lines 43-44 from:
* [[Reference/CommandName | Reference page for this command]]
* [[Other example in this category]]
to:

* [[Reference/Wire | Wire Library]]
* [[digital_potentiometer]]
* [[master_reader]]
* [[master_writer]]
* [[slave_receiver]]
* [[slave_sender]]
September 22, 2010, at 01:45 AM by Christian Cerrito -
Changed line 32 from:
%height=300px%[[ Attach:ExampleCircuit_sch.png | Attach:ExampleCircuit_sch.png]]
to:
%height=300px%[[ Attach:SRFxx_sch.png | Attach:SRF_sch.png]]
September 22, 2010, at 01:21 AM by Christian Cerrito -
Changed lines 24-25 from:
%height=300px%[[Attach:ExampleCircuit_bb.png | Attach:ExampleCircuit_bb.png]]
to:
%height=300px%[[Attach:SRFxx_bb.png | Attach:SRFxx_bb.png]]
September 22, 2010, at 01:21 AM by Christian Cerrito -
Changed lines 5-8 from:
Description

This example shows how to read a [[http://www.acroname.com/robotics/parts/R287-SRF02.html | Devantech SRFxx]] , an ultra-sonic range finder which communicates it's data via the [[ http://en.wikipedia.org/wiki/I2C | I2C synchronous serial protocol]], using [[Reference/Wire | '''Arduino's Wire Library''']].
to:
This example shows how to read a [[http://www.acroname.com/robotics/parts/R287-SRF02.html | Devantech SRFxx]] , an ultra-sonic range finder which communicates via the [[ http://en.wikipedia.org/wiki/I2C | I2C synchronous serial protocol]], using [[Reference/Wire | '''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, [[http://www.acroname.com/robotics/info/articles/devantech/srf.html#e11 | click to compare ]]
to:
* Devantech SRFxx Range Finder (models SRF02, SRF08, or SRF10, [[http://www.acroname.com/robotics/info/articles/devantech/srf.html#e11 | 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, [[http://www.acroname.com/robotics/info/articles/devantech/srf.html#e11 | 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 [[http://www.acroname.com/robotics/parts/R287-SRF02.html | Devantech SRFxx]] , an ultra-sonic range finder which communicates it's data via an [[ http://en.wikipedia.org/wiki/I2C | I2C synchronous serial protocol]], using [[Reference/Wire | '''Arduino's Wire Library''']].
to:
This example shows how to read a [[http://www.acroname.com/robotics/parts/R287-SRF02.html | Devantech SRFxx]] , an ultra-sonic range finder which communicates it's data via the [[ http://en.wikipedia.org/wiki/I2C | I2C synchronous serial protocol]], using [[Reference/Wire | '''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 [[http://www.acroname.com/robotics/parts/R287-SRF02.html | Devantech SRFxx]] , an ultra-sonic range finder which communicates it's data via an I2C synchronous serial protocol, using [[Reference/Wire | '''Arduino's Wire Library''']].
to:
This example shows how to read a [[http://www.acroname.com/robotics/parts/R287-SRF02.html | Devantech SRFxx]] , an ultra-sonic range finder which communicates it's data via an [[ http://en.wikipedia.org/wiki/I2C | I2C synchronous serial protocol]], using [[Reference/Wire | '''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 [[http://www.acroname.com/robotics/parts/R287-SRF02.html | Devantech SRFxx]] , an ultra-sonic range finder which communicates it's data via an I2C synchronous serial protocol, using [[Reference/Wire | '''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:
(:source http://arduino.cc/en/pub/code/master/libraries/Wire/examples/SFRRanger_Reader/SFRRanger_Reader.pde lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/master/libraries/Wire/examples/SFRRanger_reader/SFRRanger_reader.pde lang=arduino tabwidth=4:)
August 13, 2010, at 10:35 PM by Tom Igoe -
Changed line 29 from:
(:source http://arduino.cc/en/pub/code/master/libraries/Wire/examples/SFRRangerReader/SFRRangerReader.pde lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/master/libraries/Wire/examples/SFRRanger_Reader/SFRRanger_Reader.pde lang=arduino tabwidth=4:)
August 13, 2010, at 10:34 PM by Tom Igoe -
Added lines 1-35:
''Examples > Wire Library''

!!!Example Name

Description

(:div class=BOM :)
!!!Hardware Required
* Arduino Board
(:divend:)

!!!Circuit
(:div class=circuit :)

%height=300px%[[Attach:ExampleCircuit_bb.png | Attach:ExampleCircuit_bb.png]]

[-image developed using [[http://www.fritzing.org |Fritzing]]. For more circuit examples, see the [[http://fritzing.org/projects/|Fritzing project page]] -]

(:divend:)

!!!Schematic
(:div class=circuit :)
%height=300px%[[ Attach:ExampleCircuit_sch.png | Attach:ExampleCircuit_sch.png]]
(:divend:)

Describe what's going on here

(:div class=code :)
(:source http://arduino.cc/en/pub/code/master/libraries/Wire/examples/SFRRangerReader/SFRRangerReader.pde lang=arduino tabwidth=4:)
(:divend:)


!!!See Also:
* [[Reference/CommandName | Reference page for this command]]
* [[Other example in this category]]

Share