A weblog focused on interesting circuits, ideas, schematics and other information about microelectronics and microcontrollers.
AVR and 1-Wire interface
Dallas Semiconductor () produces a family of devices that are controlled through a proprietary 1-wire interface. On a 1-wire network, a single "master" device communicates with one or more 1-wire "slave" devices over a single data line, which can also be used to provide power to the slave devices. How to connect such devices to Arduino?
The 1-wire temperature sensors have become particularly popular, because they're inexpensive and easy to use, providing calibrated digital temperature readings directly. The sample code below demonstrates how to control a 1-wire device using Jim Studt's OneWire library, with the DS18S20 digital thermometer as an example. The DS18S20 can operate in both parasite and normal power modes; the sample code assumes the device is in parasite power mode, but also works for a normally powered device.