mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
6dc2a60597
The previous servo driver didn't provide any benefit over using PWM directly, as users controlled the servo in terms of PWM duty cycles. This changes the interface to provide a high level interface that abstracts the gory PWM details. In addition, a SAUL layer and auto-initialization is provided. Co-authored-by: benpicco <benpicco@googlemail.com> |
||
---|---|---|
.. | ||
app.config.test | ||
main.c | ||
Makefile | ||
Makefile.ci | ||
README.md |
Background
Test for the high level servo driver.
Expected result
A servo connected to PWM_0
channel 0 should move back and forth inside the
angle -90 degrees to +90 degrees, approximately.
Using a scope should show a varying pulse length between 1000 us to 2000 us long. The requested frequency is 100 Hz, but due to hardware limitations it might not be possible to achieve the selected frequency. The pulse width should, however, remain the same, only the frequency of pulses (and hence the duty cycle) should differ.