M8in - Viewing Profile: Posts - Netduino Forums
   
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.

M8in

Member Since 04 Jan 2013
Offline Last Active Jan 19 2013 09:12 AM
-----

Posts I've Made

In Topic: Netduino Plus 2 Native OneWire Temp Sensor

11 January 2013 - 09:08 AM

Hi,

 

i ran into the same problem, but my solution was to provide +5V to PIN3 of the DS18S20. The delay of 750ms may be only needed when using "parasitic power"...

 

I discovered a similar problem when playing around with a serial DIY Board for a PC, running Linux and digitemp. The solution was also to use extra power on PIN3 or the delay of 750ms...

http://www.m8in.de/2...igenbau-sensor/ (sorry, german ;-) )

 

Regards, Martin

 

Hi,

I don't know why, but I had to change this line, otherwise I was getting only 85 degC (which is the power-on reset value of the temperature register, which is +85°C)

 

while (owBus0.ReadByte() == 0) ; //wait while busy

into this

 

 Thread.Sleep(750);

 

 

The Temperature Conversion Time is maximum 750miliseconds (for a DS18B20), See also datasheet link
 
And ofcourse you have to add the following reference (Microsoft.SPOT.Hardware.OneWire)
 

In Topic: NeonMika deploy problems

05 January 2013 - 09:11 PM

Hi,

 

i ran into the same Problem yesterday with an other project (twitter library) i've downloaded from the web. My solution was remove every external assembly/dependency, download the sources for this assemblies from web, rebuild them an re-add them as dependency.

 

After that, i was able to compile an deploy my project.

 

Best regards from Cologne/Germany,

Martin 


In Topic: Netduino Plus 2 Native OneWire Temp Sensor

05 January 2013 - 05:10 PM

Hi,

 

i would like to say thanks for this piece of code. I was able to get all my DS1820 running in two hours of work. And I would like to call me an newbie... ;-)

 

Also I would like to contibute a modified Main() which iterates trought all DS1820 found on the bus and displays the read temperature:

static string DS1820ID = "";static float sensorTemp = -99;public static void Main(){    while (true)    {	Array owSensors = owBus0.FindAllDevices().ToArray();	foreach (byte[] s in owSensors)	{	    DS1820ID = ""; 	    foreach (byte b in s) {		//Debug.Print( );		DS1820ID += b.ToString() + " ";	    }	    sensorTemp = GetOneWireTempByByteArray(s);	    Debug.Print(DS1820ID + " => " + sensorTemp + "°F");	}	Thread.Sleep(1000);    }}

Maybe this is usefull for someone....

 

Best regards from Cologne/Germany,

Martin


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.