µ[micro]electronics info

A weblog focused on interesting circuits, ideas, schematics and other information about microelectronics and microcontrollers.

E-books

Google

Disclaimer

Because I have not tested all electronic circuits mentioned on this pages, I cannot attest to their accuracy; therefore, I do not provide a warranty of any kind and cannot be held responsible in any manner.

My e-mail

My website

AVR and 1-Wire interface

Dallas Semiconductor (Maxim) 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.

Arduino Playground: Connecting 1-wire

Powered by Drupal - Design by Artinet