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: AustraliaPosts: 290 |
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: RomaniaPosts: 1697 |
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/ Hobbit name: Togo Toadfoot of Frogmorton Elvish name: Mablung Miriel Beyound Arduino Lang |
||||
Print this page |