Page 1 of 1

LCT-167 / PWM to 0-10v

Posted: 10 May 2022, 14:14
by Gerwazy
Hello,
anybody knows how to connect / as a what kind of device to wemos d1?
I am going to control my air ventilation using 0-10v / espeasy instaed of built-in controller, over Domoticz.
Is it possible to do it that way?
The picture is in Polish but you probably will understand the most interesting part ;)

Thank you in advance.

Re: LCT-167 / PWM to 0-10v

Posted: 10 May 2022, 14:19
by Ath
You can connect the input of that board to any of the PWM capable-pins on an ESP (may be different for ESP8266 and ESP32), and then set the PWM duty-cycle from a rule or an external source.

For PWM output no device is needed, it is part of the ESPEasy core functionality

Re: LCT-167 / PWM to 0-10v

Posted: 10 May 2022, 16:48
by TD-er
Not entirely sure if you can directly connect the PWM to it.
Maybe you need to switch jumpers (don't do it if you're not sure) to switch between PWM and 0...10V input.
Typically both are common signals for driving ventilation units to control their speed.

Re: LCT-167 / PWM to 0-10v

Posted: 10 May 2022, 20:39
by Gerwazy
Thank you both Ath & TD-er. Was not aware that PWM doesn't need to be specified as a separate device. I've just read few posts and now it shouldn't be a problem.
Regarding direct connection of PWM I read about successful implementation of qubino FLUSH DIMMER 0-10V in the same way. Having wifi & zigbee I would rather avoid Z-Wave and thought about PWM to 0-10v converter instead.

Re: LCT-167 / PWM to 0-10v

Posted: 11 May 2022, 13:40
by Gerwazy
One more question. If the range of the duty is 0 .. 1023 and I want to set it to 800 then for the voltage output (0..10) it would mean: 800 / 1023 * 10 = 7,82V.
Am I right?

Re: LCT-167 / PWM to 0-10v

Posted: 11 May 2022, 14:32
by Ath
That calculation does seem to be correct.

Re: LCT-167 / PWM to 0-10v

Posted: 11 May 2022, 19:20
by TD-er
Just as a side note, the max PWM value, still is a PWM signal. Thus it isn't 100% "high" level.

Re: LCT-167 / PWM to 0-10v

Posted: 15 May 2022, 19:27
by Gerwazy
Today was the day. I connected LCT-167 to Wemos D1 mini (D5), installed mega normal from 27.04 (4m) and tried to control with several duties (0-1023). Input Voltage is 12V. The output I get within the range 0 - 1,2 V instead of expected 0-10V. Is there any other setting to be done in Espeasy or is the matter of the PWM controller?

Re: LCT-167 / PWM to 0-10v

Posted: 15 May 2022, 20:20
by Ath
Most likely, the input vs. output range has to be adjusted by using the potentiometer on the board, so:
- you supply it with the expected Vin (12V)
- set the PWM value to max (1023)
- then turn the multi-turn potentiometer until the output voltage is at the desired voltage (10V)
- set the PWM value to a lower value, f.e. 200
- calculate the expected output voltage (200 * (10V / 1023) = 1.95V)
- validate that the current output is actually at (or very near) the calculated voltage

Measurement should probably be done using a digital multi-meter, so you can have the 2 decimal reading (or more)