![]() | ![]() | ![]() |
| | |||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| I'm stumped on why my Dallas one wire temp sensor (ds18s20) is starting out in a crazy number state on power up. When the data line is disconnected, and a 0 C value is read, then reconnected all is well. The proper readings will survive a MCLR, but go back to crazy reading with a power off and on. Any ideas? Supposedly there was a problem with a certain die lot. Have tried another sensor with a newer die lot and same problem. | |
| |
| | (permalink) |
| It should always have an initial temperature reading of 85 degrees C after power-on (see data sheet). The solution is to do a dummy initial reading sequence after power-on, ignore it, then it will start showing the actual temperature for the next read sequences. | |
| |
| | (permalink) |
| Crazy value as in at 15C the returned value is 11,791. The value will increase or decrease by the least significant bit(s) as expected, so there is life going on, just some misinterpretation. Suspect its a hardware problem. Put a NC button on the data line till some point on down the road, as I will not be able to fix or respond after tommorrow. Understand about the 85C startup, but since readings are going on every five seconds or so it would be tossed out anyway. Tried a longer reset periord, double reset, 4k7 and 2k2 pullups. Breadboard with hookupwire wire to cat5e and pcb. The code has always worked before, and does so after the data line on, off, on routine mentioned before. Now I admit to a real bonehead move, when soldering the temp sensor to the pcb, I forgot to de-energize the power supply Its still a mystery. | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| Receive data via SPI | Sam Jelfs | Micro Controllers | 2 | 11th April 2007 06:33 AM |
| uC 'network' reset circuitry | rockin_rick | Electronic Projects Design/Ideas/Reviews | 8 | 30th May 2006 02:03 AM |
| Digital Troubleshooting and testing | walters | General Electronics Chat | 38 | 24th August 2005 09:21 AM |
| stealing power from Midi Data line | rbairos | General Electronics Chat | 3 | 18th June 2004 12:59 AM |
| USB data aqusition | discofunk | General Electronics Chat | 2 | 29th July 2003 12:01 PM |