Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

No DS18B20 devices found on OneWire bus

netduino plus 2 onewire ds18b20

  • Please log in to reply
No replies to this topic

#1 dzilupl

dzilupl

    Member

  • Members
  • PipPip
  • 10 posts

Posted 08 January 2015 - 01:07 PM

Hi

I'm making measurements of temperatures with my Netduino plus 2 and DS18B20. I'm using OneWire but every one DS18B20 is connected to separate GPIO on Netduino board.

I'm creating each DS18B20 using code:
 

DS18B20 sonda0 = new DS18B20(Pins.GPIO_PIN_D0);


When on PIN D0 is no DS18B20 connected then program throw "No DS18B20 devices found on OneWire bus" and stops. How to make it to continue working without this PIN where no DS18B20 was found? I want to write code once and make it working on all my Netduino plus 2 without giving which PINs are connected and which aren't?







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.