Use Modul to set Voltage to Ports

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ahlermi
Normal user
Posts: 21
Joined: 19 Jan 2018, 16:04

Use Modul to set Voltage to Ports

#1 Post by ahlermi » 23 Jan 2018, 11:05

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?

User avatar
budman1758
Normal user
Posts: 301
Joined: 15 Apr 2017, 05:13
Location: Riverside CA USA

Re: Use Modul to set Voltage to Ports

#2 Post by budman1758 » 24 Jan 2018, 08:40

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?
"The glass is twice as big as it needs to be".

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Use Modul to set Voltage to Ports

#3 Post by grovkillen » 24 Jan 2018, 09:06

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.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

kimot
Normal user
Posts: 190
Joined: 12 Oct 2017, 20:46

Re: Use Modul to set Voltage to Ports

#4 Post by kimot » 25 Jan 2018, 10:42

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.

ahlermi
Normal user
Posts: 21
Joined: 19 Jan 2018, 16:04

Re: Use Modul to set Voltage to Ports

#5 Post by ahlermi » 25 Jan 2018, 18:46

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

ahlermi
Normal user
Posts: 21
Joined: 19 Jan 2018, 16:04

Re: Use Modul to set Voltage to Ports

#6 Post by ahlermi » 26 Jan 2018, 11:30

Problem solved with PWM communication.

Post Reply

Who is online

Users browsing this forum: No registered users and 24 guests