summaryrefslogtreecommitdiff
path: root/kvmd/plugins/ugpio
AgeCommit message (Collapse)Author
2021-09-08improved pins validationMaxim Devaev
2021-09-08fixMaxim Devaev
2021-09-08string pinsMaxim Devaev
2021-09-07refactoringMaxim Devaev
2021-08-28unified udc code and automatic driver detectionMaxim Devaev
2021-08-15minor servo fixesMaxim Devaev
2021-08-15Implement servo angles (#58)Shantur Rathore
/etc/kvmd/override.yaml ``` kvmd: gpio: drivers: servo1: type: servo chip: 0 # PWM Chip Number period: 20000000 # Servo Motor SG90 Period in nano-seconds duty_cycle_min: 350000 # Servo Motor SG90 duty_cycle for -90 degrees duty_cycle_max: 2350000 # Servo Motor SG90 duty_cycle for +90 degrees angle_max: 90 # Servo Motor SG90 angle at duty_cycle_max angle_min: -90 # Servo Motor SG90 angle at duty_cycle_min angle_push: 45 # Servo Motor SG90 angle to push button angle_release: 20 # Servo Motor SG90 angle to release button scheme: short_press: driver: servo1 pin: 0 # Pin number is the PWM channel number on the PWM Chip mode: output switch: false pulse: delay: 0.5 max_delay: 2 long_press: driver: servo1 pin: 0 # Pin number is the PWM channel number on the PWM Chip mode: output switch: false pulse: delay: 2 max_delay: 2 extra_long_press: driver: servo1 pin: 0 # Pin number is the PWM channel number on the PWM Chip mode: output switch: false pulse: delay: 10 max_delay: 20 view: header: title: Controls table: - ["#Servo - Short Press", "short_press|Press"] - ["#Servo - Long Press", "long_press|Press"] - ["#Servo - Extra Long Press", "extra_long_press|Press"] ```
2021-08-14servo templateMaxim Devaev
2021-08-14refactoringMaxim Devaev
2021-08-14Implement button push using servo motors controlled via pwm (#55)Shantur Rathore
1. Add to /boot/config.txt ``` dtoverlay=pwm ``` 2. Create /etc/udev/rules.d/99-kvmd-pwm.rules ``` SUBSYSTEM=="pwm*", ACTION=="add", RUN+="/bin/chgrp -R kvmd /sys%p", RUN+="/bin/chmod -R g=u /sys%p" SUBSYSTEM=="pwm*", ACTION=="change", ENV{TRIGGER}!="none", RUN+="/bin/chgrp -R kvmd /sys%p", RUN+="/bin/chmod -R g=u /sys%p" ``` 3. Connect Servo motor like SG90 PWM connection to RPi GPIO18, +5V and GND to a 5V and GND pin on header 4. Add to /etc/kvmd/override.yaml ``` kvmd: gpio: drivers: servo1: type: pwm pwm_chip: 0 # PWM Chip Number pwm_period: 20000000 # Servo Motor SG90 Period in nano-seconds duty_cycle_push: 1500000 # Servo Motor SG90 duty_cycle for pushing button duty_cycle_release: 1000000 # Servo Motor SG90 duty_cycle for releasing button scheme: short_press: driver: servo1 pin: 0 # Pin number is the PWM channel number on the PWM Chip mode: output switch: false pulse: delay: 0.5 max_delay: 2 long_press: driver: servo1 pin: 0 # Pin number is the PWM channel number on the PWM Chip mode: output switch: false pulse: delay: 2 max_delay: 2 extra_long_press: driver: servo1 pin: 0 # Pin number is the PWM channel number on the PWM Chip mode: output switch: false pulse: delay: 10 max_delay: 20 view: header: title: Controls table: - ["#Servo - Short Press", "short_press|Press"] - ["#Servo - Long Press", "long_press|Press"] - ["#Servo - Extra Long Press", "extra_long_press|Press"] ```
2021-07-23refactoringMaxim Devaev
2021-07-23fixed process waitingMaxim Devaev
2021-07-17moved wol to gpioDevaev Maxim
2021-05-19tesmart state_poll=10Devaev Maxim
2021-05-18async timeoutsDevaev Maxim
2021-05-18fix socket timeout/zero based issues in tesmart (#49)David Shay
2021-05-16tesmart: check channel after switchingDevaev Maxim
2021-05-16tesmart rewriteDevaev Maxim
2021-05-14Plugin support for TESMART switch - tesmart.py (#47)David Shay
2021-05-09new protocol for ezcoo usb3Devaev Maxim
2021-04-09refactoringDevaev Maxim
2021-04-09ipmi gpio driver uses ipmitoolDevaev Maxim
2021-04-09async gpio pluginsDevaev Maxim
2021-04-09ipmi pseudo-gpio driverDevaev Maxim
2021-01-23refactoringDevaev Maxim
2021-01-07update copyDevaev Maxim
2020-12-26otgbind pseudo-gpio pluginDevaev Maxim
2020-12-25configurable gpio devicesDevaev Maxim
2020-12-02refactoringDevaev Maxim
2020-12-02stop signals propagation in 3.9Devaev Maxim
2020-11-12refactoringDevaev Maxim
2020-10-25ezcoo sw41ha as gpioDevaev Maxim
2020-10-03common env variablesDevaev Maxim
2020-09-30refactoringDevaev Maxim
2020-09-20Make kvmd compatible with libgpiod 1.2.Oleg Girko
The singular default_val argument of gpiod.Line.request() method was introduced in libgpiod 1.3. For older versions of libgpiod, defailt_vals argument with list value should be used. This argument is available in newer versions of libgpiod as well for compatibility. This change is needed for Debian / Raspbian 10 that have libgpiod 1.2. Signed-off-by: Oleg Girko <[email protected]>
2020-09-18fixed consumer names for libgpiodDevaev Maxim
2020-09-16debounce for gpiod AioReaderDevaev Maxim
2020-09-14common gpio path variableDevaev Maxim
2020-09-13using libgpiod for the ugpio driverDevaev Maxim
2020-09-10removed edge detectionDevaev Maxim
2020-09-10edge detection not available for pin r/wDevaev Maxim
2020-09-10experimental edge modeDevaev Maxim
2020-09-10only available gpio modesDevaev Maxim
2020-09-09hide device pathDevaev Maxim
2020-09-09cleanup on driver sideDevaev Maxim
2020-09-09hid relay driverDevaev Maxim
2020-09-08improved ugpio scheme apiDevaev Maxim
2020-09-08refactoringDevaev Maxim
2020-09-07minor relatime fixesDevaev Maxim
2020-09-07ugpio pluginsDevaev Maxim