OneWire devices and Pico]OS

Here are two libraries which can be used to access Maxim/Dallas OneWire devices like DS1820 temperature sensor. Most of code is freely available from Maxim/Dallas, I have only added Makefiles and filled in device-specific things like which GPIO pin on microcontroller is connected to OneWire bus.

DS1820 sensor attached to Olimex LPC-E2129 board

This has been tested with Olimex LPC-E2129 board (GPIO pin 24) and old Embedded Artists ethernet quickstart board (GPIOpin 26). Olimex board has all necessary interfacing electronics and bus connector. For these boards, the library assumes that “lpc2xxx” Pico]OS is used.

Library works also with “unix” port.
Source code is available at Github.

Ari Suutari

Father of three 🙂
{ Electronics | Music | Computer | Motorbike } hobbyist.
Factory IT professional.
FreeBSD since day one.

Facebook LinkedIn