Fan control 0-10V

I’m trying to control my home ventilation system using esphome. This system can be controlled using 0-10V input.

I bought a module (see picture below) that should convert the PWM signal to 0-10V. But it’s not working, and I don’t know what I’m doing wrong.

I only get 10V output, this doesn’t change when I modify the settings in ESPHome/HomeAssistant. This module is powered by 24V DC.

In ESPHome I have the following sketch (ESP8266 board):

output:
  - platform: esp8266_pwm
    pin: D0
    frequency: 1000 Hz
    id: ventilatie_output

fan:
  - platform: speed
    output: ventilatie_output
    name: "Ventilatie Fan"

I found the following info about connections:
|VCC|DC 12 V-30 V|
|GND|Grond|
|PWM|Positieve van PWM ingangssignaal|
|GND|Negatieve van ingangssignaal|
|VOUT|Uitgangsspanning 0-10 V|
|GND|Uitgangsspanning Grond|

So I connected D0 to the PWM connection and measured between VOUT and GND 10V with my multimeter

Can you like to the 0-10V module that you bought? Do you have the manual? A 10V connection on the output with no change typically means that it is not getting an input signal. Does it still output a 10V signal if you remove the input?

If it is a PWM module it will probably output 10v all the time, but at different pulse widths.

I bought the module on Aliexpress… It’s cheap, but lacks much information :frowning:
This is the actual device I bought:
I think it’s should output 0-10V according to the documentation…

Maybe my input pin D0 is not able to to generate the PWM pulse ? Didn’t try with another pin… I only have multimeter, I cannot measure this signal …

Yep, D0 does not do PWM.

PS I see now that it does not OUTPUT PWM, it accepts a PWM input and outputs a voltage according to the duty cycle. Silly me.

Get a LED and a 200-400 Ohm resistor and you can see if your PWM work.

Maybe a bit off-topic, but in esphome, what’s the best way to address the pins, does it translate to the correct one ?

I have a Wemos D1 mini:

output:
  - platform: esp8266_pwm
    pin: D0

or is this the same ?

output:
  - platform: esp8266_pwm
    pin: GPIO16

Yes. see https://esphome.io/guides/configuration-types.html#pin

sorry, should’ve found that myself…

Thanks for the info

I was planning on the same project to drive my home ventilation system.
My Pwm to 0-10v modules are still on route.

Does your solution now work by reassigning the GPIO?
Are you by chance also driving a Brink WTW unit as the target ventilation system?

Yes, after changing the pin the output is between 0-10V :slight_smile:

I didn’t connect it to my unit yet, don’t really know how it will react… There’s not much information about that, just that it has 0-10V input. Fingers crossed that it works

The unit is Zehnder WTW.

1 Like

FYI, i used a simple variable PSU to test the response of my Brink WTW unit and it kind of works. Looks like i need to update some internal settings to get it to respond to the full capacity range (0-10v = 0-100% capacity)

Works like a charm… My prototype :+1:

1 Like

With my 0-10v modules still on route, I used a qubino z-wave 0-10v module instead and connected that to my WTW. Also, works quite nice. I only wish my humidity sensor was a bit faster and granular. Using an aqara sensor for now…

What sensor are you using?

this one: https://nl.aliexpress.com/item/4001022968140.html?spm=a2g0o.productlist.0.0.67c15ddc99x3OF&algo_pvid=8b369c50-5e8b-4f50-b070-79ca37020ca9&algo_expid=8b369c50-5e8b-4f50-b070-79ca37020ca9-4&btsid=2100bde116124681456024406eaf59&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_

Ah ok… I ordered a few of these…

But I think creating one myself will be much faster and accurate…

US $5.85 11%OFF | [Nieuwste Versie] Xiaomi Mijia Bluetooth Thermometer 2 Draadloze Smart Elektrische Digitale Hygrometer Thermometer Werken Met Mijia App
https://a.aliexpress.com/_uHRZdN

Good idea, i still have one spare of this sensor lying around. Will do some testing on the BLE range as that my main concern for now. Has to be reliable, do want my ventilation go nuts :frowning:

https://nl.aliexpress.com/item/32843489009.html?spm=a2g0o.detail.1000060.1.f5114e418RqSnj&gps-id=pcDetailBottomMoreThisSeller&scm=1007.13339.169870.0&scm_id=1007.13339.169870.0&scm-url=1007.13339.169870.0&pvid=02d8c489-0f75-40d6-bba3-8615320787ab&_t=gps-id:pcDetailBottomMoreThisSeller,scm-url:1007.13339.169870.0,pvid:02d8c489-0f75-40d6-bba3-8615320787ab,tpp_buckets:668%230%23131923%2315_668%23888%233325%237_668%232846%238107%231934_668%232717%237566%23868_668%231000022185%231000066058%230_668%233468%2315612%23309

Hi Cuball, your prototype looks great! Inspired me to try as well. Could you comment / confirm you obtain the 12V (for the DC step-down and the PWM and Wemos boards) from the 12V & Ground connection from the Zehnder ComfofanS? Where do your 2 tie-wrapped grey cables connect to?


Could you share your ESPHome.yaml file?

1 Like

Hi,

No, I use an external power supply (24V) and lower it to 5V to power the Wemos and the PWM Module. Didn’t try using the power supply from the WTW.

Below is my simple sketch :slightly_smiling_face:

Home assistant using NodeRED is regulating the fan now automaticly…

output:
  - platform: esp8266_pwm
    pin: D5
    frequency: 2000 Hz
    id: ventilatie_output

fan:
  - platform: speed
    output: ventilatie_output
    name: "Ventilatie Fan"
1 Like