Analog out (DAC)

The digital to analog converter (DAC) in the RFzero can be used to make a real analog voltage with up to 10 bits resolution. This means that the voltage is not emulated like in the case of Pulse Width Modulation (PWM).

In the below example the voltage made by the DAC, is set to 1 V using 10 bits/1024 steps 0-1023 resolution. Default is eight bits resolution, i.e. 256 steps 0-255.

If you want to use the above example on your Arduino Zero or Arduino M0, the DAC is on the same pin/port A0/DAC.

If the analog voltage needs to be amplified, an operational amplifier (Op Amp) implemented as a DC-coupled and non-inverting amplifier is a good solution, e.g. LM324 see section 8.2.1.

Example of a DC amplifier using an LM324 Op Amp in non-inverting configuration. Picture courtesy Texas Instruments and own work.

Output voltage range
R1 (E96, 1%)
R2 (E96, 1%)
0,0 - 4,01,21102,12,10
0,0 - 5,01,52105,15,11
0,0 - 8,02,421014,214,3
0,0 - 12,03,641026,426,1
0,0 - 13,84,181031,831,6