change the voltage range or lower the minimum voltage

Thread Starter

tuto

Joined May 2, 2021
4
Hello everybody!

I have a very basic question, surely
I am using the DAC pin of an arduino due, which supplies a voltage between 0.55V and 3.3V, and I want it to supply a voltage between 0V and 5V. how can I do this? Is it possible at least that it supplies between 0V and 3.3V ?. that is, only lower the minimum voltage to 0V?

thanks
 

KeithWalker

Joined Jul 10, 2017
1,778
All you have to do is to re-scale the value that is used to set the output voltage in the code.
Output voltage = (Input voltage - 0.55) X 5 / 3.3
 
Top