Analog output as a Aref input?

Hi guys

Pretty new to arduino but I do have some knowladge in electronics.. Soo.. i was interested if voltage coming from Analog pin as an output can be used as a Referent voltage? My aim is to get a software regulated referent voltage.. ( if it's not possible.. is there any better way? )

Schematic: | ----|> Aref | | 10K | | --\/\/\/----o---|> A0 ( Or any other analog pin as an output ) | | GND

Edit: I use Arduino Nano V3.0

An analogue pin as an output either outputs 0 or 5 volts, so the same as the default voltage reference. (Except for the zero volts bit)

Maybe PWM then?

Also 5 or 0 volts.

with a capacitor to smooth the signal, but I doubt if it will be smooth enough to be a reference voltage. Better use a I2C DAC - http://www.sparkfun.com/products/8736 -

What is the goal you want to reach?

Something like:

Aref An (PWM analog pin)


| | o------| C |----o | | |---------------o | [ 10K] | GND

edit: Goal is to get a software regulated referent voltage..

You have to run it through a low pass filter which is not what you have there, more like this although my analogue is a bit rusty so I’m prepared to be corrected.

Aref An (PWM analog pin)


| |
| |
| |
| [ 10K]
| |
|----------------o
|
|
C
|
|
GND

That said unless you use large values you would have a lot of ripple I think and that’s not good for a reference.

Personally I like the idea of using a DAC.


Rob