I had created a smarthome prototype using a raspberry pi 3. I control 4 items (2 LEDS, 1 dynamo, 1 motor servo) with it and one of things that I want to control is motor servo.
But I have no idea how to control it on openhab.
Openhab itself isn’t going to be able to generate the 20ms duty cycle needed for a servo.
You can use a python script to run the servo, here is a tutorial for the raspberrypi gpio
You can then add in the python mqtt paho library to connect to openhab via an mqtt broker , tutorial below
Using whatever communication channel you have chosen, MQTT perhaps, openHAB needs only to send a number corresponding to the position you want the servo to take up.
1 Like
MDAR
(Stuart Hanlon, UK importer of Velbus hardware)
7
There are various DMX to Servo driver boards out there.
There are mqtt tutorials on the forums here for openhab that can show you how to get going with openhab. Take a look at those and come back with any questions along the way