selomkofori / ds18b20_win10iot

Read ds18b20 1wire sensor with windows 10 iot
8 stars 12 forks source link

Several DS18b20 with windows IoT / C# #2

Open ReneGrootscholten opened 8 years ago

ReneGrootscholten commented 8 years ago

Hi,

my project needs to read 4 temperture sensors. I'm using windows IoT and programming in C#. -- H E L P -- Can you supply me with an example?

epastorejr commented 7 years ago

@ReneGrootscholten, were you successful in getting data from those 4 sensors ?

Thanks, Emilio

ReneGrootscholten commented 6 years ago

Not with IOT (jet) using windows NOOBS now

Op 16/07/2017 om 00:27 schreef epastorejr:

@ReneGrootscholten https://github.com/renegrootscholten, were you successful in getting data from those 4 sensors ?

Thanks, Emilio

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/selomkofori/ds18b20_win10iot/issues/2#issuecomment-315567500, or mute the thread https://github.com/notifications/unsubscribe-auth/ARewpGIk07UN6TrpaKh8q5Qt4GmkvlNCks5sOTzHgaJpZM4ICDTS.

eightyeightwolves commented 6 years ago

This can be made to work with a few modifications to onewire.cs. If you have multiple sensors wired to the same bus, use the Match Rom command (0x55) and then the 64-bit address of the sensor from which you wish to take a reading.

If you don't know the address of a probe, this can be retrieved by wiring it up (as a single on the bus) and then using the Read Rom command (0x33). Again, just a few modifications to the onewire.cs required to make this work. Google for the DS18B20 data sheet for more detail on these and additional commands.