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.
Photo

Analog voltage incorrect


  • Please log in to reply
23 replies to this topic

#21 Marius

Marius

    Advanced Member

  • Members
  • PipPipPip
  • 59 posts
  • LocationCenturion RSA

Posted 30 October 2010 - 01:30 PM

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);
If at first you don't succeed, then try and try again.

#22 Troll feeder

Troll feeder

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationArizona, USA

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 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

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 Troll feeder

Troll feeder

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationArizona, USA

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

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.