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.

mohammad's Content

There have been 53 items by mohammad (Search limited from 05-June 23)


By content type

See this member's


Sort by                Order  

#47194 Analog Input in Firmware 4.2.0.1

Posted by mohammad on 14 March 2013 - 05:11 PM in Netduino Plus 2 (and Netduino Plus 1)

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




#47197 Analog Input in Firmware 4.2.0.1

Posted by mohammad on 14 March 2013 - 06:03 PM in Netduino Plus 2 (and Netduino Plus 1)

It might be useful: http://forums.netdui...nal-to-digital/




#48445 Analog Input in Firmware 4.2.0.1

Posted by mohammad on 16 April 2013 - 08:15 PM in Netduino Plus 2 (and Netduino Plus 1)

Hi Dave and Chris,

 

The problem was solved by the aforementioned link in my second post in this thread (http://forums.netdui...nal-to-digital/). So, thanks for your attention to my problem.

 

Cheers,

Mohammad





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.