Shop OBEX P1 Docs P2 Docs Learn Events
DS18S20 Not working with code provide via other threads — Parallax Forums

DS18S20 Not working with code provide via other threads

AcquaLifeAcquaLife Posts: 19
edited 2012-06-11 11:06 in Propeller 1
Okay, I've been trying to get the DS18S20-PAR to work for sometime now. It works perfectly fine on the arduino. I've tried use every code that claims the ds18s20 works. I can't get any of them to work. I know it is hooked up correctly. The problem could be this:

The 1-Wire bus must be switched to the strong pullupwithin 10 s (max) after a Convert T [44h] or Copy Scratchpad [48h] command is issued, and the bus
must be held high by the pullup for the duration of the conversion (tconv) or data transfer (twr = 10 ms).
No other activity can take place on the 1-Wire bus while the pullup is enabled

Maybe I'm not keeping the bus high during the convert T and copy scratchpad command?


The mod3 is when i have attempted to achieve high resolution from the DS18S20. I get a value that changes a little bit. The mod2 is when i don't attempt the high resolution conversion. That is when i get the 85(which means the conversion isn't even taking place i believe). Also the timestap is another object i downloaded from the object exchange. You can just comment that stuff out.

Well... after looking at it again i figured it out. After converting the temperature you need to make sure it is delayed for 750ms. For some reason it was only delaying 25ms i think.
Sign In or Register to comment.