Full Version : Dallas DS1820 DS18S20 DS18B20 Temp Routines
avr >>HOME & TIME & TEMPERATURE PROJECTS >>Dallas DS1820 DS18S20 DS18B20 Temp Routines


AVR_Admin- 04-18-2006
DS18X20 with AVR by Martin Thomas

Demo application to read DS1820, DS18S20 and DS18B20 temperature-sensors with an Atmel AVR controller. 1Wire-Bus with several devices on the wire supported, parasite power-supply supported without external FET ("strong-pullup" sourced from AVR-Portpin). The source-code is for avr-gcc/avr-libc. The 1-Wire- and DS18x20- routines may be used as "library" for own developments. 1-Wire-Bus I/O-Pin can be changed during runtime.

Credits:

Peter Dannegger (some DS18x20- and most of the 1wire-code),
Peter Fleury (uart-library),
Colin O'Flynn (CRC-code)

P. Fleury's uart-library and P. Danneggers 1-Wire code have been slightly extended. There is not too much left from P. Dannegger's DS18x20-code but it has been the base for the presented "project". Used C. O'Flynns CRC8-Code only.

Hardware

Atmel AVR-Controller (ATmega16 and ATmega32 @ 1MHz, 2MHz, 4MHz, 8MHz internal R/C and 1,8432 MHz, 3.6864MHz ext. XTAL used for testing)
DS18X20 temperature-sensors (3 DS18B20 used during development)
4,7 kOhm pull-up resistor for 1-Wire data-line
UART-connection to PC

Link: http://www.siwawi.arubi.uni-kl.de/avr_projects

AVR_Admin- 04-18-2006
Previous Version of Software

mthomas- 04-19-2006
Realy good start for a forum and an exellent idea.

You should also reate a link-list to those projects and pages where you think your visitors can find more useful information.

Martin Thomas

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.