Moderators: grovkillen, Stuntteam, TD-er
-
Gerwazy
- New user
- Posts: 8
- Joined: 25 Nov 2018, 19:44
- Location: Wrocław
#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](./download/file.php?id=6985&sid=24f5f435f809d591fd90066ca1ae260b)
- LCT-167.png (240.28 KiB) Viewed 5705 times
-
Ath
- Normal user
- Posts: 3647
- Joined: 10 Jun 2018, 12:06
- Location: NL
#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
-
TD-er
- Core team member
- Posts: 8850
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
-
Contact:
#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
#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
#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?
-
Ath
- Normal user
- Posts: 3647
- Joined: 10 Jun 2018, 12:06
- Location: NL
#6
Post
by Ath » 11 May 2022, 14:32
That calculation does seem to be correct.
-
TD-er
- Core team member
- Posts: 8850
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
-
Contact:
#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
#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?
-
Ath
- Normal user
- Posts: 3647
- Joined: 10 Jun 2018, 12:06
- Location: NL
#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)
Who is online
Users browsing this forum: No registered users and 0 guests