Skip to content

Driver for the One-Wire-Bus and the DS18B20 on an Atmega2560 (on an Arduino Mega Dev-Board). Then later ported to a smaller ATmega328P processor as found on the Uno and others.

Notifications You must be signed in to change notification settings

Marc-Bender/htwsaarPraktischePhaseOneWireBusPlusDS18B20

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

htwsaarPraktischePhaseOneWireBusPlusDS18B20

Driver for the One-Wire-Bus and the DS18B20 on an Atmega2560 (on an Arduino Mega Dev-Board). Then later ported to a smaller ATmega328P Processor as found on the Uno and others.

Developed as part of my work during the practical phase of my studies for temperature measurements in an engine-test-rig.

This repository contains the Driver for the One Wire Bus, the DS18B20 Temperature Sensor, Timer0 and Timer2 (for Timing control of the readouts).

Written in pure C without using the premade libraries for the tasks since they rely heavily on busy-wait and other bad practices.

Where it was not possible to get around busy-wait since time delays too short for timers and interrupts to act where needed busy-wait was used but focus was on keeping such places at minimum.

I started out with coding the timers since that was relatively easy to do and also since the One-Wire-Bus-Protocol is implemented by heavily using timers here it was the most logical thing to start with. Therefor the Atmel Studio Project is called Timer although this is not entirely acurate anymore.

About

Driver for the One-Wire-Bus and the DS18B20 on an Atmega2560 (on an Arduino Mega Dev-Board). Then later ported to a smaller ATmega328P processor as found on the Uno and others.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages