Tutorial.DigitalPotentiometer History

Hide minor edits - Show changes to markup

November 16, 2011, at 04:41 AM by Scott Fitzgerald -
Changed line 54 from:
to:
September 22, 2010, at 09:24 AM by Christian Cerrito -
Changed lines 67-68 from:
to:
September 22, 2010, at 09:23 AM by Christian Cerrito -
Added line 65:
Deleted lines 68-69:
Added lines 72-73:
September 22, 2010, at 06:53 AM by Christian Cerrito -
Deleted lines 59-60:

See Also:

September 22, 2010, at 06:46 AM by Christian Cerrito -
Changed line 62 from:
  • [Reference/WireBegin | Wire.begin()]]
to:
September 22, 2010, at 06:46 AM by Christian Cerrito -
Changed lines 9-11 from:

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 different devices (in turn) while using just two pins (analog 4 and 5) of your microcontroller.

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 different devices (in turn) while using just two pins of your microcontroller.

Changed lines 66-69 from:
to:
Changed lines 72-73 from:
to:
September 22, 2010, at 06:41 AM by Christian Cerrito -
Changed lines 3-6 from:

Example Name

SRFxx Sonic Range Finder Reader

to:

AD5171 Digital Potentiometer

Changed lines 41-42 from:

When the AD5171's pin 6, ADO, is connected to ground, it's address is is 44. Too add another digital pot to the same SDA line, connect the second pot's ADO pin to +5V, changing it's address to 45.

to:

When the AD5171's pin 6, ADO, is connected to ground, it's address is is 44. To add another digital pot to the same SDA bus, connect the second pot's ADO pin to +5V, changing it's address to 45.

Changed lines 59-60 from:
to:
September 22, 2010, at 06:40 AM by Christian Cerrito -
Added lines 43-47:

When the AD5171's pin 6, ADO, is connected to ground, it's address is is 44. Too add another digital pot to the same SDA line, connect the second pot's ADO pin to +5V, changing it's address to 45.

You can only use two of these digital potentiometers simultaneously.

Changed lines 53-54 from:

Describe what's going on here

to:

Code

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

Description

to:

SRFxx Sonic Range Finder Reader

This example shows how to control a Analog Devices AD5171 Digital Potentiometer which communicates via the I2C synchronous serial protocol. Using Arduino's I2C Wire Library, the digital pot will step through 64 levels of resistance, fading an LED.

The I2C protocol involves using two lines 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 device 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 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 different devices (in turn) while using just two pins (analog 4 and 5) of your microcontroller.

September 22, 2010, at 06:22 AM by Christian Cerrito -
Changed lines 24-25 from:

Connect pins 3, 6, and 7 of the AD5171 to GND, and pins 2 and 8 to +5V. Connect pin 4, the digital pot's clock pin (SCL), to analog pin 5 on the Arduino, and pin 5, the data line (SDA), to analog pin 4. On both the SCL and SDA lines, add 4.7K ohm pull up resistors. Finally, wire an LED to pin 1, the AD5171's "wiper", with a 220 ohm LED in series.

to:

Connect pins 3, 6, and 7 of the AD5171 to GND, and pins 2 and 8 to +5V.

Connect pin 4, the digital pot's clock pin (SCL), to analog pin 5 on the Arduino, and pin 5, the data line (SDA), to analog pin 4. On both the SCL and SDA lines, add 4.7K ohm pull up resistors, connecting both lines to +5 V.

Finally, wire an LED to pin 1, the AD5171's "wiper", with a 220 ohm LED in series.

September 22, 2010, at 06:21 AM by Christian Cerrito -
Added lines 24-25:

Connect pins 3, 6, and 7 of the AD5171 to GND, and pins 2 and 8 to +5V. Connect pin 4, the digital pot's clock pin (SCL), to analog pin 5 on the Arduino, and pin 5, the data line (SDA), to analog pin 4. On both the SCL and SDA lines, add 4.7K ohm pull up resistors. Finally, wire an LED to pin 1, the AD5171's "wiper", with a 220 ohm LED in series.

September 22, 2010, at 06:16 AM by Christian Cerrito -
Added lines 10-16:
  • AD5171 Digital Pot
  • LED
  • (1) 220 ohm resistor
  • (2) 4.7K ohm resistors
  • breadboard
  • hook-up wire
Deleted line 18:

Circuit

Changed lines 22-23 from:
to:

Circuit

September 22, 2010, at 06:12 AM by Christian Cerrito -
Changed lines 17-18 from:
to:
September 22, 2010, at 05:46 AM by Christian Cerrito -
Changed line 25 from:
to:
September 22, 2010, at 05:45 AM by Christian Cerrito -
Changed line 25 from:
to:
September 22, 2010, at 05:44 AM by Christian Cerrito -
Changed line 25 from:
to:
September 22, 2010, at 05:21 AM by Christian Cerrito -
Changed lines 14-16 from:

to:

September 22, 2010, at 05:20 AM by Christian Cerrito -
Changed lines 14-16 from:
to:

August 13, 2010, at 10:37 PM by Tom Igoe -
Added lines 1-35:

Share