Fan control 0-10V

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

Thanks Cuball! That helps. I can’t see your sketch. Could you upload?
One other question: how did you determine the 2000 Hz value (related to your PWM or trail-and-error )?

Dear @cuball

Even though the topic is quiet for a while, I hope I can get in contact with you and ask your kind help in a very similar project I’m trying to achieve. Please bear in mind, that I have very limited coding knowledge, but with some research and tons of help from the community I achieved a lot - at least compared to what I dared to dream of :slight_smile: I connected my SolarEdge solar inverter via modbus to read realtime data of solar production, I connected my smart energy meter via wemos D1 mini to read energy production and consumption, I connected my totally dumb Daikin heatpump with an ESP to read all heating/cooling related information, and I connected my paradox alarm system via lan to read infrared motions sensors to use them as action triggers and to control my alarm system. Besides that I installed many Shelly devices to control window shutters and lights. So I consider my house semi-dumb now, and I’m loving it. Now I want to take one step further, and connect my Wolf CWL-400 Excellent air ventilation system via its 0-10V control option, to achieve the following:

  • it dries the air in the house very much especially in the winter, so I’d like to control air flow based on presence detection (how many person is in the house at a given moment, and add 30 cubic meters airflow per person, and set a lower constant air flow during night)
  • in the winter some neighbours use very shitting fire material, creating very bad smoke around the house which is then spread around in the house evenly within minutes. I’d like to prevent that with an air quality filter just before the air intake, and to shut down ventilation instantly if the air quality is insufficient outside.

I see that you created a device which would be perfect for my use case, and I would really love to do the very same, but I need some help on the programming side. I have ESPhome, and have successfully altered ESP firmwares and updated them OTA, I know how to solder and put the device together, know how to edit yaml, and stuff, so I’m aware with the very basics, you don’t need to worry about that, but I would need some knowledge on how to build a proper firmware to control 0-10V output. And also a little help with the automation part: based on certain existing sensor values how can I instruct the ESP to set the voltage output to a certain level.

Do you think you can help me on this part a little bit, and can I take advantage of your accumulated experience?

Would be much much appreciated.

Perhaps some explanation: the device here PWM to Voltage Converter Module 0% 100% to 0 10V for PLC MCU Digital to Analog Signal PWM Adjustabl Converter Power Module|Integrated Circuits| - AliExpress has a PWM input, and a 0-10v output.

So the esp can produce pwm ESP8266 Software PWM Output — ESPHome or ESP32 LEDC Output — ESPHome using the code in Fan control 0-10V - #20 by cuball

1 Like

thanks a lot for the prompt reply @nickrout

sorry, very beginner, noob questions coming :slight_smile:

so basically, first I assemble the right device (ESP and I2C components), then I try to make a proper yaml config in ESPHome, based on instructsions like these:

I was kinda hoping to have access to a preassembled whole config to begin with, and make any necessary changes, if there’s any… Is anyone willing to share me his/her working config to play with?

Hi, still looking for this? I’ve implemented this last week, with the same fan as you have.

Hi Xirixiz,
Thanks for responding! I managed to get a ESP32/PWM up and running on the Zehnder fan. However as a consequence of this ESP32/PWM connection, I had to remove the existing moisture sensor that was connected on the Zehnder PWM terminal strip. And more of an issue, this new ESP32/PWM in Home Assistant (working well) and my standard Zehnder remote control did not work well together. So I abandoned this ESP32/PWM and made a nRF905/ESP32 device (https://github.com/eelcohn/nRF905-API). This works well now for me AND I still have the original Zehnder with moisture sensor plus standard remote control. So basically now I have 2 remote control devices (one standard and one via Home Assistant) and a fully original Zehnder fan.
Guido

Ah cool, for me the nRF soltution was too buggy (crashed all the time), and therefor I switched to this ESP/PWM solution instead bundled with some sensors. Anyway, nice we both have this in place :smiley:

… or did eelcohn update the code recently maybe? I’ve shut it down around half a year ago as he didn’t repond on issues.

Thanks for sharing your experiences! Actually I experienced same instabilities and almost daily rebooting the ESP/nRF was needed. As I experienced poor wifi signal strength I started using a 2m USB cable for powering the EPS/nRF (moving way from back of room with fan and central heating system). Then re-pairing a couple of times seemed to have solved it for me (i.e. redoing the configuration)

I made this approx. spring 2021 and I don’t think I have updated the ESP32/nRF ever since (whereas for all my ESPHome devices on ESP32 boards I do as new versions are issued). Maybe a bit of luck here… In case of instabilities getting back, I also think I will move to the more stable ESP32/PWM then combining with Bluetooth moisture sensor (already present in bathroom) and an additional bluetooth (Xiaomi?) button (for those in the house that like to push physical buttons).

Hi! Why do I only get a on/off button with htis??
image

From what?

Hi Guys,

Just jumping in on this thread with a question regarding the PWM to Voltage Module.

@cuball @nickrout @Hellis81 You guys would seem to have a reasonable knowledge of this module.

This module has an output of 0-10v and I believe that this is kind of regulated to the maximum output of 10 volts by the 12v input voltage regulator.

I need a 0-15v output for controlling my SystemAir Priosil 200EC. If I swap-out the onboard 12v regulator for a 15v regulator (L7815CD2T-TR), will I get the 0-15v o/p I require (obviously with having an i/p around this voltage), and will the rest of the circuitry be fine with this?

I’d be grateful for your input.

Dizz.

Hello @all. I know that the topic is old but what are You thinking about using the dimmer led controller with esp? > These are used by me for led strips with success.

https://www.amazon.com/gp/product/B07J5B3R5L/

From technical information Magic home:
Input Voltage: DC 5-28 volt so they can be easily powered from main board.

And bellow I added my original controller.

PS
I have already created a PWM-Wemos-Stepdown board. But now I see the problem with the output. My measurements show an output of 0-5.5 volts and nothing more. Does anyone have this problem?

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

Thanks in advance
Konrad

Hi,
could U share ESPhome code for 3 speeds and timers?

1 Like

Newbie here, I hope I am not missing any critical details
I got a wesp32 board that has POE in order to have a solid connection and power.
I got a PWM that works with 3.3v for PWM https://www.amazon.com/gp/product/B079B5MRQC/ref=ppx_yo_dt_b_asin_title_o03_s00?ie=UTF8&psc=1

I have not been able to get the any kind of power output reading from the PWM voltage out.

Any help is appreciated.

Below is the code I am using.

output:
  - platform: ledc
    pin: GPIO33
    frequency: 3000Hz
    id: wesp32_fancontrol

fan:
  - platform: speed
    output: wesp32_fancontrol
    name: "Boathouse Fans 0-10 esp"