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.