DS18B20 and jm_1-wire.spin2
doggiedoc
Posts: 2,241
Anybody been able to get this to work. I've tried different internal pull-up settings, different P2 boards, and different compilers. All I can get is "not detected" on the PST output. I've tried with Vdd connected and without. (Parasitic power option I think). I've even tried 3 different DS18B20 ICs.
Any ideas - I don't have the code here at work but it's the strait up demo in the PropTool Library Folder (using 2.4.1)
Paul
EDIT:
It would not surprise me if I'm doing it wrong. @JonnyMac might have to bail me out on this one.
Any ideas - I don't have the code here at work but it's the strait up demo in the PropTool Library Folder (using 2.4.1)
Paul
EDIT:
It would not surprise me if I'm doing it wrong. @JonnyMac might have to bail me out on this one.
Comments
Attached is my driver for the MAX31820. That device is just a rebranded version of the DS18B20 that runs on 3V only. The protocols and registers are identical. My driver uses Cam Thompson's onewire object. Maybe it will work for you.
-Phil
Paul
I'm not sure what's in the demo folder, but here is my latest. I've recently added ANSI output to help those not using PST, but it's new, so probably needs a bit of work. You can see what the output should look line -- PST and Putty images attached with latest code.
If you're using a TO-92 type part... with the flat face pointed at you, the connections are: ground, signal, 3.3v.
Edit: Updated Demo with fixes in jm_ansi.spin2
@"Phil Pilgrim (PhiPi)" - I noticed what you posted is for P1 - which is good, because I'd like to try it on a FLiP module too. I will report back after I get a chance to wire one up.
Thank you both for quick response and help!
Paul
-Phil
That said, please download the updated demo that has fixed jm_ansi.spin2. The new file is in the original post.