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

Unknown Temperature Sensor

temperature

  • Please log in to reply
5 replies to this topic

#1 Dovev Golan

Dovev Golan

    New Member

  • Members
  • Pip
  • 4 posts

Posted 12 December 2013 - 11:59 AM

Hello,

 

I have an unknown temeprature sensor that has 3 wires.

I got it from my rc helicopter charger and thoght of using it with netduino plus.

I have connected it to 3.3V, GND & A0.

When i read the value I get a 3 digit number between 790 to 810.

 

Any idea how to translate this to real temperature ?

 

 



#2 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 12 December 2013 - 05:25 PM

Are there any numbers on the sensor package?   What is your room temperature, resp. temperature where the sensor is located? (Nearby heat sources like LCD monitor, power supply etc. can affect local temperature).



#3 Dovev Golan

Dovev Golan

    New Member

  • Members
  • Pip
  • 4 posts

Posted 12 December 2013 - 08:01 PM

There are no numbers on the sensor.

 

 

My room temp is around 20C at the moment.and the sensor is located on my table.



#4 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 12 December 2013 - 09:51 PM

Could you please show the code from which you get those 790, 810 results? Does it already include scale conversion ("x*3.3/1023")?



#5 Dovev Golan

Dovev Golan

    New Member

  • Members
  • Pip
  • 4 posts

Posted 13 December 2013 - 03:33 PM

int read = temp.Read();byte bA = (byte)(read/100);byte bB = (byte)(int.Parse(read.ToString().Substring(1)) / 10);byte bC = (byte)int.Parse(read.ToString().Substring(2));int milivolts = read * (3300 / 1024);int tempC = (milivolts - 500) / 10;Debug.Print("Read " + read + ", Milivolts " + milivolts + ", TempC " + tempC + ", byte " + bA +" " +bB + " " +bC);


#6 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 13 December 2013 - 08:08 PM

So, you've already figured it out (?)







Also tagged with one or more of these keywords: temperature

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.