LCT-167 / PWM to 0-10v

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Gerwazy
New user
Posts: 8
Joined: 25 Nov 2018, 19:44
Location: Wrocław

LCT-167 / PWM to 0-10v

#1 Post by Gerwazy » 10 May 2022, 14:14

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.
Attachments
LCT-167.png
LCT-167.png (240.28 KiB) Viewed 5381 times

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

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

#2 Post by Ath » 10 May 2022, 14:19

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
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

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

#3 Post by TD-er » 10 May 2022, 16:48

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.

Gerwazy
New user
Posts: 8
Joined: 25 Nov 2018, 19:44
Location: Wrocław

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

#4 Post by Gerwazy » 10 May 2022, 20:39

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.

Gerwazy
New user
Posts: 8
Joined: 25 Nov 2018, 19:44
Location: Wrocław

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

#5 Post by Gerwazy » 11 May 2022, 13:40

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?

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

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

#6 Post by Ath » 11 May 2022, 14:32

That calculation does seem to be correct.
/Ton (PayPal.me)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

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

#7 Post by TD-er » 11 May 2022, 19:20

Just as a side note, the max PWM value, still is a PWM signal. Thus it isn't 100% "high" level.

Gerwazy
New user
Posts: 8
Joined: 25 Nov 2018, 19:44
Location: Wrocław

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

#8 Post by Gerwazy » 15 May 2022, 19:27

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?

User avatar
Ath
Normal user
Posts: 3415
Joined: 10 Jun 2018, 12:06
Location: NL

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

#9 Post by Ath » 15 May 2022, 20:20

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)
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests