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