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.

StingerTopGun's Content

There have been 1 items by StingerTopGun (Search limited from 17-April 23)


By content type

See this member's

Sort by                Order  

#60465 Netduino 1 Pressure Sensor

Posted by StingerTopGun on 19 October 2014 - 08:13 PM in Netduino 2 (and Netduino 1)

Hello guys!

 

I have a Netduino 1 here and a pressure sensor with a range of 12-180 Ohm.

I want to somehow get a signal of this sensor into the netduino to work with it. It's for controlling a airride of a car.

I already tried to just take the 3.3V through the sensor to a analog input, but the resistance of the sensor is too low. I always get 1023 as the Value, no matter if its 12 or 180 Ohm.

Is there another way of reading the resistance of the sensor?

 

Here is the code I used for now:

using System;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;

namespace ButtonApp
{
    public class Program
    {
        public static void Main()
        {
            AnalogInput adcPort = new AnalogInput(Pins.GPIO_PIN_A1);

            while (true)
            {
                int digitalValue = adcPort.Read();
                Debug.Print(digitalValue.ToString());
            }
        }
    }
}

I hope you can help me, thanks :)

 

Regards, Ben





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.