I have read that arduinos have an internal voltmeter that can read VCC value? , I am wonder if the arduino due also have that? I need it for accurate voltage reading calculation on an analog pin.
Reference from arduino forum
Reference from instructables
Reference from reddit
Give us a link to that info.
John41234:
I have read that arduinos have an internal voltmeter that can read VCC value? , I am wonder if the arduino due also have that? I need for accurate voltage reading on an analog pin.
That is a contradiction. Do you want to read it internally or externally? Please explain.
http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-11057-32-bit-Cortex-M3-Microcontroller-SAM3X-SAM3A_Datasheet.pdf
Railroader:
Give us a link to that info.
I have edited my post to include reference.
aarg:
That is a contradiction. Do you want to read it internally or externally? Please explain.
http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-11057-32-bit-Cortex-M3-Microcontroller-SAM3X-SAM3A_Datasheet.pdf
Im sorry i edited to be a bit clearer. I want to do it internally, which then i can use for a more accurate voltage calculation on an analog pin
You might have to connect an analog input to ADVREF which is connected indirectly to 3.3V on the Due board.
aarg:
You might have to connect an analog input to ADVREF which is connected indirectly to 3.3V on the Due board.
Its my first time hearing of a A'D'VREF, how would this be different to AREF ? and if i use anolog read wont the reading from it makes it imporsible to read vcc because it will always treat it as 100%
There are several ways to improve the accuracy of ADC readings with a DUE. One of them is to calibrate the ADC peripheral as explained in the Atmel application note that you can find here: