joesie / GPIO

This is a loxberry-plugin to handle GPIO over MQTT
https://www.loxwiki.eu/display/LOXBERRY/GPIO
Apache License 2.0
3 stars 4 forks source link

PWM output #27

Open joesie opened 3 years ago

joesie commented 3 years ago

It would be nice to have PWM outputs

ChutneyMary commented 3 years ago

A nice addition to the Loxberry would be PWM outputs suitable for servo motor control. ie. gate opener control, louvre control for shading etc. This requires a specific format of PWM signals that is different to light control.

Most typical servos require 50Hz signal frequency (ie. 20ms pulse period). Pulse width is typically 1.5ms for servo neutral, 2.0ms for full deflection right and 1.0ms for full deflection left -

https://www.pololu.com/blog/17/servo-control-interface-in-detail

A suitable control system could also use the analogue outputs from the Miniserver for 0-10V input into the Loxberry. This means the control system and logic can still be built within Loxone, but the conversion from 0-10V to PWM occurs in the Loxberry. This is a system that is currently employed with the Miniserver using the attached circuit -

https://www.epanorama.net/circuits/servo10v.html

lugg8 commented 2 years ago

hey guys, I do have the excact same demand for the loxberry application. I am using a ventilator which does look for PWM signal 0-5V 1kHz to control fan speed. I would like to apply the loxone ventilation-setting to control the ventilator individually with PWM. does anybody have an idea how to realize this project?

joesie commented 2 years ago

Now I work on this ticket. In the end it will be possible to set a signal frequency like 50 Hz by default. Then you can change this frequency and the duty cycle by command. So I think it is possible to support for example servos. A first untested version is now available. Next I will test and document it.