Hi everyone,
I have a Netduino Plus and a TMP36 temperature sensor.
My code already worked perfect with firmware 4.1:
using System;using System.Net;using System.Net.Sockets;using System.Threading;using Microsoft.SPOT;using Microsoft.SPOT.Hardware;using SecretLabs.NETMF.Hardware;using SecretLabs.NETMF.Hardware.NetduinoPlus;namespace TemperatureSensorTest{ public class Program { public static void Main() { //Temperature sensor var voltagePort = new AnalogInput(Pins.GPIO_PIN_A1); var lowPort = new OutputPort(Pins.GPIO_PIN_A0, false); var highPort = new OutputPort(Pins.GPIO_PIN_A2, true); double rawValue = voltagePort.Read(); double result = ((rawValue - 0.5) * 1000) / 10; Debug.Print("Result: " + result); } }}
Now, it doesn't work with my new firmware. Would you please let me find a solution for this problem?
Thanks in advance,
Mohammad