I2C-It IR Rangefinder
The Sharp GP2D12 is an excellent, well proven sensor. Its analog outputmakes is reliable and inexpensive, but a bit processor-intensive to use with a microcontroller. Our DIRRS+ fixes this by letting you poll it for digital output in any of 3 methods.
But when you're using multiple sensors, you can quickly run out of I/O lines, or code-space to handle all the different sensors. Enter the I2C-It, a slave-mode I2C device!
The I2C-It lets you use the popular I2C / TWI (Two-Wire interface) to string up to 8 sensors on a single I/O line! And by simply changing the device address in your code, you can change which sensor you're asking data from!
Check the resources tab for code examples on how to use the I2C-It with your microcontroller.
Technical Data
| Parameter | Symbol | Rating | Unit |
|---|---|---|---|
| Operating Voltage | Vcc | 4.5 to 5.5 | V |
| Operating Temperature | Topr | -10 to +40 | C |
| Maximum Cable Length | CLmax | 35/14 | cm/in |
| I2C Clock Frequency | SCL | 100 | kHz |
| Bus pull-up Resistance | Rline | 1.2k to 10k | ohms |
| Required Current | Icc | 35 to 55 | mA |
Microcontrollers
Some popular Microcontrollers that support I2C in hardware ("bit-bang" emulation is possible) include:
| PICAXE | Atmel | PIC | Parallax |
|---|---|---|---|
| 18A | ATmega8 | 12F675 | BS2p24 |
| 18X | ATmega8L | 16F876A | BS2p40 |
| 28X1 | ATmega32L | 16F877A | BS2pe |
| 40X1 | ATmega48V | 18F4525 | BS2px24 |
| ATmega88V | Propeller | ||
| ATmega168 | Spin Stamp | ||
| ATtiny2313 | |||
| ATtiny2313V | |||
| ATtiny45 | |||
| ATtiny45V |
Addresses
You can select any of 8 addresses on the I2C-It with simple solder-jumpers.
| Device Address | JP1 | JP2 | JP3 |
|---|---|---|---|
| 0x20 | 0 | 0 | 0 |
| 0x22 | 0 | 0 | 1 |
| 0x24 | 0 | 1 | 0 |
| 0x26 | 0 | 1 | 1 |
| 0x28 | 1 | 0 | 0 |
| 0x2A | 1 | 0 | 1 |
| 0x2C | 1 | 1 | 0 |
| 0x2E | 1 | 1 | 1 |
The I2C-It is configured to only read a single distance sample and return that result to you - it is not spending time watching multiple samples to average out the distance to the object. It is generally a good idea to request multiple samples from the I2C-It to make sure you're seeing what you think you're seeing, but we figured we'd leave that up to you to decide. We designed the I2C-It to give you back a single measurement, as quick as it can!
Weight: 0.045 kg
Brand: HVW Tech

