Page 1 of 1

Use Modul to set Voltage to Ports

Posted: 23 Jan 2018, 11:05
by ahlermi
is it posible to use 2 outputports to set a voltage from 0 to 5 V or 0 to 3,3 V.

like 80% = 4V

did it somebody with existing modules?

Re: Use Modul to set Voltage to Ports

Posted: 24 Jan 2018, 08:40
by budman1758
I don't think that's possible. Ports can use PWM but that does not change the voltage.
What exactly are you trying to accomplish?

Re: Use Modul to set Voltage to Ports

Posted: 24 Jan 2018, 09:06
by grovkillen
I'm planning on a guide using this PWM to Voltage unit.

It's not possible to go from exact 0v but almost. And top voltage is variable from 5v - 10v. But you need to feed it with minimum 12v.

Many LED drivers can dim on input 0-10v, also many electrical motors in ventilation systems can be controlled by 0-10v.

Re: Use Modul to set Voltage to Ports

Posted: 25 Jan 2018, 10:42
by kimot
If you have got enough free gpios, you can simply use something like this:
https://makezine.com/2011/02/15/dac/

With your 2 pins you get only 4 levels, with 3 pins 8 etc.

Re: Use Modul to set Voltage to Ports

Posted: 25 Jan 2018, 18:46
by ahlermi
because it is not possible to change internal timing of ESP8266.

My new idea is to talk to an arduino, give him 0 to 5V to convert it in percent and control pwm fan with the arduino, without noise.


4V = 80% speed

Re: Use Modul to set Voltage to Ports

Posted: 26 Jan 2018, 11:30
by ahlermi
Problem solved with PWM communication.