Chris,
I dont know if I did it right. Remember I am new to this environment. Below is the code bit that I used. It did not seem to correct the problem.
public class Program
{
static OutputPort led = new OutputPort(Pins.ONBOARD_LED, false);
static SerLCD disp = new SerLCD("COM1", 0);
static OutputPort dummyPin = new OutputPort(Pins.GPIO_PIN_A1, false);
static AnalogInput humidity;// = new AnalogInput(Pins.GPIO_PIN_A0);
static AnalogInput temp;// = new AnalogInput(Pins.GPIO_PIN_A1);
static char printChar = 'x';
static bool state = false;
public static void Main()
{
dummyPin.Dispose();
humidity = new AnalogInput(Pins.GPIO_PIN_A0);
temp = new AnalogInput(Pins.GPIO_PIN_A1);
InterruptPort button = new InterruptPort(Pins.ONBOARD_SW1, false, Port.ResistorMode.Disabled, Port.InterruptMode.InterruptEdgeHigh);
button.OnInterrupt += new NativeEventHandler(button_OnInterrupt);
Timer ticker = new Timer(new TimerCallback(timeCycle), null, 500, 1000);
Analog voltage incorrect
Started by Marius, Oct 23 2010 09:08 PM
23 replies to this topic
#21
Posted 30 October 2010 - 01:30 PM
If at first you don't succeed, then try and try again.
#22
Posted 19 April 2011 - 02:01 PM
Chris et. al,
Has this been resolved? I'm about to move my tricorder project to a normal netduino board and was curious to the status. For what it's worth i seem to be having possible issues similar to these on a fez panda II also. Like Marius I ended up having to use physical pull-down resistors too. I could pill out my lm35 temp sensor and watch the value remain almost unchanged.
Mike.
#23
Posted 19 April 2011 - 07:02 PM
Hi Mike,
We've never been able to reproduce voltage reading issues with AnalogInputs here, unfortunately.
Do you have a simple repro (few lines of code, project zipped up in a file...with a simple schematic)? If so, we can build out a test, drill into the .NET MF firmware, and measure the voltage on an oscilloscope to investigate.
Chris
#24
Posted 19 April 2011 - 08:46 PM
Hi Mike,
We've never been able to reproduce voltage reading issues with AnalogInputs here, unfortunately.
Do you have a simple repro (few lines of code, project zipped up in a file...with a simple schematic)? If so, we can build out a test, drill into the .NET MF firmware, and measure the voltage on an oscilloscope to investigate.
Chris
I'm seeing it on a fez panda 2 where I can physically pull the pin out of the board and still get a reading of 1.5 volts. I'm about to switch the project over to my netduino board and I'll let you know if I see anything weird. Right now I haven't got anything. Thanks for responding so quickly, I'm going to move over to the netduino this weekend, finish the troubleshooting and install the board and oled screen next week.
Thanks again!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users