Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:52 29 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : DS18B20

Author Message
ajkw
Senior Member

Joined: 29/06/2011
Location: Australia
Posts: 290
Posted: 01:51am 22 May 2014
Copy link to clipboard 
Print this post

I have recently introduced a DS18B20 into my current project on a Mircomite (v 4.0503) and whilst I have had no issues communicating with it I have found that the program will crash if the positive power, in external power mode, to the DS18B20 is accidentally disconnected. If you 'accidentally' disconnect the ground or data wire I get a returned value of -127.938

I have been using the built in command, DS18B20(pin)

Anybody with any other experience with this?

 
vasi

Guru

Joined: 23/03/2007
Location: Romania
Posts: 1697
Posted: 04:34pm 22 May 2014
Copy link to clipboard 
Print this post

I guess that is a normal behavior.
A good 1wire library should return error codes like:
- sensor not found;
- short circuit;
- bus error

etc.

____
Anyway, as it is, it provides basic functionality which is a good thing if is for learning or simple applications. A complete library, designed against any accident is much bigger.

A good library (as an inspirational source) can be found here:
http://siwawi.bauing.uni-kl.de/avr_projects/tempsensor/ Edited by vasi 2014-05-24
Hobbit name: Togo Toadfoot of Frogmorton
Elvish name: Mablung Miriel
Beyound Arduino Lang
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024