Adafruit
DS2413 1-Wire Two GPIO Controller Breakout
You're too cool for I2C, and SPI has so many wires, 8-bit parallel... how can that be fashionable!? You are a 1-Wire kinda gal, and you want more 1-Wire brea...
You're too cool for I2C, and SPI has so many wires, 8-bit parallel... how can that be fashionable!? You are a 1-Wire kinda gal, and you want more 1-Wire breakouts in your life to complement all of your great engineering. Well rock on, because here you go, it's a 1-Wire controller with two open-drain GPIO.
You can put as many of the DS2413's as you want on a single I/O line, each one is uniquely addressable and shares the single I/O pin happily. The two controllable I/O lines (PIOA and PIOB) can be used as inputs or outputs. They are open-drain, so if you want to power an LED or something, you'll need a remote power supply (see Maxim's product page for more details)
We have a basic Arduino sketch that uses the OneWire library to communicate with this chip. Don't forget to add the 4.7Kohm resistor from I/O to your 1-Wire controller power supply (3.3V - 5V) on the Arduino side of the wires.
Jargon buster
Plain-language definitions for the technical terms used above.
- 1-Wire
- 1-Wire is a communication method where devices share a single data line, often with each device having its own address. It matters because several temperature modules can be connected to one microcontroller pin instead of needing a separate pin for each probe.
- GPIO
- General-purpose input/output pins are microcontroller pins you can set in software to read signals, switch devices on and off, or connect to peripherals. The number of GPIO pins matters because it limits how many buttons, LEDs, sensors, and other parts you can wire directly to the board.
- I2C
- I2C is a two-wire communication bus used by many sensors and small modules. It matters because several I2C devices can share the same two wires, but each device needs a compatible address and your controller must support I2C.
- LED
- A light-emitting diode is a small electronic component that lights up when current flows through it in the correct direction. In this kit, LEDs create the flashing effect, so polarity and correct soldering matter for the project to work.
- SPI
- A fast serial communication bus often used for displays, memory cards, and sensors. It matters because SPI devices need specific pins for clock and data, plus a separate chip-select line for each device.
Find this product in
Related Tutorials
Free guides on learn.littlebird.com.au