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

how to set external REF voltage for ADC & REF voltage min and max values

aref vref adc analog digital voltage reference analog reference netduino

  • Please log in to reply
10 replies to this topic

#1 mirac

mirac

    New Member

  • Members
  • Pip
  • 5 posts
  • LocationItaly

Posted 10 May 2014 - 08:44 PM

I want to use ADC of Netduino Plus2 board. I want to use 500mV as REFERENCE VOLTAGE in order to increase the resolution. Does Netduino Plus2 board let 500mV as a reference voltage? What is the min&max values? How can I set VREF? 

 

thanks in advance,

Mirac

 

 

 



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 11 May 2014 - 03:26 AM

Hi Mirac,

Netduino Plus 2 uses the 3.3V rail as the reference analog voltage. If you'd like to scale the analog input as 0mV-500mV, this is probably the easiest way:
double value = analogInput.Read() / 3.3 * 0.5;
Welcome to the Netduino community,

Chris

#3 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 11 May 2014 - 08:23 AM

If you want better resolution in the 0-500mV range and you are sure you are never going to get a reading above 500mV then have you thought about using an op amp to boost the signal into the 0-3.3V range?

 

Regards,

Mark


To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter


#4 mirac

mirac

    New Member

  • Members
  • Pip
  • 5 posts
  • LocationItaly

Posted 11 May 2014 - 04:28 PM

Dear Mark and Chris, many thanks for your interest and replies..

I want to change the Vref for the measurement. Yes, I know and consider to use an op amp to boost the signal. However, it is much more easy for the hardware design to set the Vref and get reading between 0 and 500mV.

 

Yes, I am sure I will never going to get a reading above 500mV. The limit is actually 100mV. However, there is no Voltage Reference component that provides 100mV micro low noise.

 

As a conclusion, I want to repeat my question; is it possible to use an external voltage reference, how and what are the limits?

 

many thanks,

Mirac



#5 mirac

mirac

    New Member

  • Members
  • Pip
  • 5 posts
  • LocationItaly

Posted 11 May 2014 - 04:34 PM

Hello again, I've found some information.

 

According to STM32F405RG datasheet page 388 (table.65), It says

''The higher/positive reference voltage for the ADC, 1.8 V ? VREF+ ? VDDA''.

 

Then, 1.8V is the lowest to set.

How can I set reference voltage value on the Netduino side?

 

many thanks,

Mirac



#6 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 11 May 2014 - 04:55 PM

As a conclusion, I want to repeat my question; is it possible to use an external voltage reference, how and what are the limits?

 

As Chris mentioned, the board uses 3.3V as Vref.

 

Regards,

Mark


To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter


#7 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 11 May 2014 - 05:06 PM

According to STM32F405RG datasheet page 388 (table.65), It says

...

How can I set reference voltage value on the Netduino side?

 

The LQFP64 package does not have VREF pins exposed, you'd need a bigger package (e.g. LQFP100).



#8 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 11 May 2014 - 05:50 PM

In addition to the above comments, I do support the Mark (Nevyn) suggestion. Even in case were possible to take the reference as low as 500mV, probably its precision would much lower than expected. A *real* ADC involves many sections which produce errors.

 

As is, the Netduino 2 ADC has a 12-bit resolution, but a practical resolution of no more than 10 bits. Using the Vref=3.3V and your full-scale signal (100mV), you'll lose other 5 bits (3.3/0.1=33, which is roughly 5 bits).

 

A good op-amp stage is maybe tedious, but it avoids a so high loss of precision. Most of the times the Vref is taken by a separate (dedicate) supply, calibrated and often thermo-compensated.

 

Please, this consideration is for a (semi) static signal. If you signal is somewhat repetitive and/or "noised" (e.g. Gaussian), you may oversample it and gain some bit back over the said loss.

 

Good luck!


Biggest fault of Netduino? It runs by electricity.

#9 mirac

mirac

    New Member

  • Members
  • Pip
  • 5 posts
  • LocationItaly

Posted 11 May 2014 - 07:24 PM

Mario, thank you very much for your reply. But, I will not use Netduino for ADC reading. 

 

Instead of using op-amp (which means a lot of noise or a lot sampling for me & I need 3 opamps, because I need 3 different readings) I'm planning to use x3 ADS7822 with 400mV vref supplied by LT6650. I'll have 400mV/4096 resolution and noise reduction with relatively less cost. 

 

ciao from Trieste!

 

many thanks, 

Mirac



#10 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 12 May 2014 - 03:36 AM

Mario, thank you very much for your reply. But, I will not use Netduino for ADC reading. 

 

Instead of using op-amp (which means a lot of noise or a lot sampling for me & I need 3 opamps, because I need 3 different readings) I'm planning to use x3 ADS7822 with 400mV vref supplied by LT6650. I'll have 400mV/4096 resolution and noise reduction with relatively less cost. 

 

ciao from Trieste!

 

many thanks, 

Mirac

 

That's a good decision!

 

Trieste? Will you join the incoming mini-Maker Faire, next Saturday?

http://www.makerfair...t/index_en.html

I believe to be there on the afternoon!

Ciao


Biggest fault of Netduino? It runs by electricity.

#11 mirac

mirac

    New Member

  • Members
  • Pip
  • 5 posts
  • LocationItaly

Posted 13 May 2014 - 09:56 AM

No, I did not know about it. I'll check and see..

ciao







Also tagged with one or more of these keywords: aref, vref, adc, analog digital, voltage reference, analog reference, netduino

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.