One-wire demo trouble.. HELP!!!
C-64
Posts: 1
I'm having trouble with the OW demo spin programs.
OW-SearchDemo works fine. All attached sensors serial numbers are reported.
OW-Demo1 reads the same temperature every time (10.6 degrees celsius)
I use the ds1820 sensor. The demo is for ds1822. Is that the problem?
The 1-wire documentation for those sensors looks the same.
Can it be fixed??
OW-SearchDemo works fine. All attached sensors serial numbers are reported.
OW-Demo1 reads the same temperature every time (10.6 degrees celsius)
I use the ds1820 sensor. The demo is for ds1822. Is that the problem?
The 1-wire documentation for those sensors looks the same.
Can it be fixed??
Comments
and although the parts numbers are similar, they are not interchangeable. I believe that the DS18S20 is actually labeled "DS1820" they omitted the "S" when labeling the parts. I may be wrong, but I believe I remember reading that on a forum for a different ucontroller. I did some searching before writing this reply, but couldn't find that reference.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Brian
uController.com - home of SpinStudio
I just started playing with this part and I'm going to check the actual bytes it outputs now, although if anyone else has any further information on this, that would be great.
AndrewQ
I modified the OW-demo routine to get all 8 bytes from the scratchpad - they are $AA,$00,$4B,$46,$FF,$ff,0C,$10
The CRC is correct (byte 9) but the actual data is junk and doesn't change with temperature fluctuation.
I found several references to the fact that the $aa means that the conversion hasn't completed so I did a hard-coded 1 second wait with the same results.
I have tried multiple DS18S20s with the same results.
Anyone have any ideas?
Thanks - Andrew
Mark
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It might be the Information Age but the Eon of Ignorance has yet to end.
Parasitic mode can be fussy about the way you configure the power supply. You MUST have the hard pullup configured correctly and within the timing limits in the spec to ensure it works properly.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cardinal Fang! Fetch the comfy chair.