Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-09-08 | improved pins validation | Maxim Devaev | |
2021-09-08 | fix | Maxim Devaev | |
2021-09-08 | string pins | Maxim Devaev | |
2021-09-07 | refactoring | Maxim Devaev | |
2021-08-28 | unified udc code and automatic driver detection | Maxim Devaev | |
2021-08-15 | minor servo fixes | Maxim Devaev | |
2021-08-15 | Implement 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-14 | servo template | Maxim Devaev | |
2021-08-14 | refactoring | Maxim Devaev | |
2021-08-14 | Implement 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-23 | refactoring | Maxim Devaev | |
2021-07-23 | fixed process waiting | Maxim Devaev | |
2021-07-17 | moved wol to gpio | Devaev Maxim | |
2021-05-19 | tesmart state_poll=10 | Devaev Maxim | |
2021-05-18 | async timeouts | Devaev Maxim | |
2021-05-18 | fix socket timeout/zero based issues in tesmart (#49) | David Shay | |
2021-05-16 | tesmart: check channel after switching | Devaev Maxim | |
2021-05-16 | tesmart rewrite | Devaev Maxim | |
2021-05-14 | Plugin support for TESMART switch - tesmart.py (#47) | David Shay | |
2021-05-09 | new protocol for ezcoo usb3 | Devaev Maxim | |
2021-04-09 | refactoring | Devaev Maxim | |
2021-04-09 | ipmi gpio driver uses ipmitool | Devaev Maxim | |
2021-04-09 | async gpio plugins | Devaev Maxim | |
2021-04-09 | ipmi pseudo-gpio driver | Devaev Maxim | |
2021-01-23 | refactoring | Devaev Maxim | |
2021-01-07 | update copy | Devaev Maxim | |
2020-12-26 | otgbind pseudo-gpio plugin | Devaev Maxim | |
2020-12-25 | configurable gpio devices | Devaev Maxim | |
2020-12-02 | refactoring | Devaev Maxim | |
2020-12-02 | stop signals propagation in 3.9 | Devaev Maxim | |
2020-11-12 | refactoring | Devaev Maxim | |
2020-10-25 | ezcoo sw41ha as gpio | Devaev Maxim | |
2020-10-03 | common env variables | Devaev Maxim | |
2020-09-30 | refactoring | Devaev Maxim | |
2020-09-20 | Make 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-18 | fixed consumer names for libgpiod | Devaev Maxim | |
2020-09-16 | debounce for gpiod AioReader | Devaev Maxim | |
2020-09-14 | common gpio path variable | Devaev Maxim | |
2020-09-13 | using libgpiod for the ugpio driver | Devaev Maxim | |
2020-09-10 | removed edge detection | Devaev Maxim | |
2020-09-10 | edge detection not available for pin r/w | Devaev Maxim | |
2020-09-10 | experimental edge mode | Devaev Maxim | |
2020-09-10 | only available gpio modes | Devaev Maxim | |
2020-09-09 | hide device path | Devaev Maxim | |
2020-09-09 | cleanup on driver side | Devaev Maxim | |
2020-09-09 | hid relay driver | Devaev Maxim | |
2020-09-08 | improved ugpio scheme api | Devaev Maxim | |
2020-09-08 | refactoring | Devaev Maxim | |
2020-09-07 | minor relatime fixes | Devaev Maxim | |
2020-09-07 | ugpio plugins | Devaev Maxim | |