Click here to Skip to main content
15,886,617 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,

I am using raspberry pi 3 running windows 10 iot core.
and I have TMP36 Temperature sensor.
now I wants to read the temperature sensor value in c#
please can any one know how to do this step by step, I am completely new in EC stuff as i m not EC guy,
Thanks
Tink

What I have tried:

I spent couple of days, to get some idea now I am able to make circuit with raspberry pi 3 and TMP36 Sensor on breadbord,
but not know how to read this value.
plz help me
Posted
Updated 24-Jan-17 2:15am
v2

You have to read an analog value and it looks the raspberry cannot do that directly. Have a look at: Overview | Analog Inputs for Raspberry Pi Using the MCP3008 | Adafruit Learning System[^].
 
Share this answer
 
As already mentioned, the TPM36 sensor provides an analogue output which is not supported by the Raspberry Pi.

So you would need an ADC (Analogue to Digital Converter) with an interface that is supported by the Pi. For such low speed data the commonly used interfaces which are provided by the Pi are I2C and SPI.

The board mentioned in the above solution uses the SPI interface. Such a board (or using the plain interface chip instead) is the best solution if you want to connect multiple analogue signals because these ADC chips provide multiple channels (8 with the above mentioned one).

If you only need to read a single temperture it might be easier to choose a temperature sensor that already has an I2C or SPI interface.
 
Share this answer
 
We can't tell you.
We don't have a "TMP36 Temperature sensor" and we have no idea how it is connected to your board - so we can't even begin to tell you how to read values. We can guess that it's connected via USB so will appear to C# as a serial port - in which case you need to look at the SerialPort class[^] - but other than that we can have no idea.

You should talk to the people who created it - they should provide technical support and will know more about their product than we will. If they don't, then find another supplier and demand your money back!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900