PWM read with Pi and Domoticz

Moderator: leecollings

Post Reply
njlammerts
Posts: 153
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

PWM read with Pi and Domoticz

Post by njlammerts »

Is it possible to "read" the PWM signal with Pi/Domoticz?

I have a Solar Boiler solution with a PWM Pump wich is controlled by a Sorel controller, where the controller sends a PWM signal (10V) to the pump to control the speed.
I would like to read the "speed" of the pump based on the PWM signal wich is between 2-99%
User avatar
waltervl
Posts: 6677
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: PWM read with Pi and Domoticz

Post by waltervl »

I searched a little bit and it seems not possible with current integrations (RPi GPIO or I2C).
The RPi is able to read the PWM with its GPIO so you will have to write an external python or bash script that reads the PWM pin and sends the date to a virtual Domoticz device. I hope I gave you enough keywords to find the solutions.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
njlammerts
Posts: 153
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: PWM read with Pi and Domoticz

Post by njlammerts »

I also searched, and found there is no "out of the box" solution, therefore i posted this question. maybe some other user found a way to read the PWM with a custom made solution or maybe a hack of some other device, eventually with some python or other script
User avatar
FireWizard
Posts: 1967
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: PWM read with Pi and Domoticz

Post by FireWizard »

Hi,

You can try something with Node-RED.

See: https://nodered.org/docs/faq/interacting-with-pi-gpio

If you Google with node red pwm you might find more options.
Regards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest