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 inputs on the N+


  • Please log in to reply
5 replies to this topic

#1 Stefan W.

Stefan W.

    Advanced Member

  • Members
  • PipPipPip
  • 153 posts

Posted 16 September 2011 - 07:51 PM

Hi, I remember someone saying here that the analog input pins of the N+ are unreliable if there's an ethernet cable plugged in - to what extend does that happen and what are the symptoms (loss of a few bits of precision, or mostly right readings and some completely bogus ones, or ...) and is that valid for all the analog pins? Is it also valid if the pins are not used in analog mode (but for e.g. I2C)? Also, is the 3.3V limit on the analog ports valid if they are in analog mode or also when they are used for other purposes (e.g. I2C), as is my guess? Regards, Stefan
I believe that no discovery of fact, however trivial, can be wholly useless to the race, and that no trumpeting of falsehood, however virtuous in intent, can be anything but vicious.
-- H.L. Mencken, "What I Believe"

#2 Spork

Spork

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts

Posted 17 September 2011 - 02:27 AM

Also, is the 3.3V limit on the analog ports valid if they are in analog mode or also when they are used for other purposes (e.g. I2C), as is my guess?


Can't speak to your first question (analog accuracy with/without Ethernet connected). As for the second question, I'm pretty sure I've read that the 3.3v limit applies when pins are in analog mode but NOT when they're in digital mode. I.e. any pin in digital mode is 5v tolerant. I think this means that it's the ADC that can't handle more than 3.3v but that the ADC is "out of the loop" when the pin is in digital mode. Hopefully somebody will verify my assertion.

#3 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 17 September 2011 - 02:58 AM

The analog pins are 5V tolerant when used in digital mode (including during boot). When used in analog mode, they can accept voltages of ~0V to ~3.3V. Chris

#4 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 16 October 2011 - 06:50 PM

I finally posted a series of results about the ADC noise and how to attenuate it.
Hope it helps.
Cheers
Biggest fault of Netduino? It runs by electricity.

#5 alex2wr

alex2wr

    New Member

  • Members
  • Pip
  • 9 posts

Posted 17 October 2011 - 05:34 AM

How do you switch the analog inputs from digital to analog?

#6 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 17 October 2011 - 05:38 AM

How do you switch the analog inputs from digital to analog?

It's a matter of what you declare first:
// Declares pin A0 as analog input
AnalogInput Input = new AnalogInput(Pins.GPIO_PIN_A0);

// Declares pin A0 as digital input
InputPort Input = new InputPort(Pins.GPIO_PIN_A0, false, Port.ResistorMode.Disabled);

"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs




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.