Control low -voltage in output Pin

I want to know How to control 0~2V at output Pin. It means that we have to find real voltage ( I'm not sure current...) with multimeter so maybe will not use PWM function..

It 's kind of voltage generator.

regards :slight_smile:

Most Arduinos don't have a DAC, so they can't output a varying voltage.

You can generate a voltage by using a PWM signal followed by an RC filter to smooth PWM to a DC voltage.

Try a 10k resistor from a PWM pin to a 10uF capacitor. Other pin from the cap to ground.
analogWrite(pin, 102); will give ~2volt on the cap.
Leo..