1-wire protovol

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
JimTal001
Posts: 176
Joined: Thu Jul 30, 2015 4:59 pm

1-wire protovol

Post by JimTal001 » Thu Jul 30, 2015 5:19 pm

I have a need to connect multiple (4-6) thermocouple to either a pyboard or a Wipy board and I was hoping to use the MAX31850K 1-wire breakout board listed here:
https://www.adafruit.com/products/1727

I read in the forum that there was some work done on a 1-wire library but that it may have a bug preventing the use of multiple 1-wire device, discussion here:
http://forum.micropython.org/viewtopic.php?t=345

If anyone has knowledge of this (or other) 1-wire library current state I would appreciate the update.

Thanks
Jim

Damien
Site Admin
Posts: 647
Joined: Mon Dec 09, 2013 5:02 pm

Re: 1-wire protovol

Post by Damien » Thu Jul 30, 2015 7:03 pm

The official 1-wire driver found at https://github.com/micropython/micropyt ... onewire.py works on the pyboard an supports multiple 1-wire devices on the same wire.

There is also a driver for the DS18x20 temp sensors at https://github.com/micropython/micropyt ... ds18x20.py which supports multiple sensors on the single wire.

I looks like you can use the DS18x20 driver for the MAX31850 with a small change to the way the temperature is calculated from the raw value.

JimTal001
Posts: 176
Joined: Thu Jul 30, 2015 4:59 pm

Re: 1-wire protovol

Post by JimTal001 » Wed Aug 26, 2015 8:50 pm

I now have the MAX31850 working with the pyboard. The changes to the ds18x20.py driver were minimal. If anyone is interested in the project I will upload the MAX31850 driver.

Image

SpotlightKid
Posts: 463
Joined: Wed Apr 08, 2015 5:19 am

Re: 1-wire protovol

Post by SpotlightKid » Thu Aug 27, 2015 8:55 pm

Just put it on Github and post the link here. That way somebody can still find if they come here later, even if you're not active on the forum anymore.

Garyjuergens
Posts: 1
Joined: Wed Oct 12, 2016 8:46 pm

Re: 1-wire protovol

Post by Garyjuergens » Wed Oct 12, 2016 8:57 pm

Where can I get the max31850 python library mentioned above?

Post Reply