1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_servo
Marian Buschsieweke 12140ffb0e
examples,tests: Drop redundant dependency
When depending on one or more shell commands, the shell is pulled in
as dependency anyway.
2023-04-19 16:58:10 +02:00
..
app.config.test drivers/servo: reimplement with high level interface 2023-02-22 10:00:04 +01:00
main.c drivers/servo: reimplement with high level interface 2023-02-22 10:00:04 +01:00
Makefile examples,tests: Drop redundant dependency 2023-04-19 16:58:10 +02:00
Makefile.ci examples,tests: Update Makefile.cis 2023-02-27 12:31:04 +01:00
README.md drivers/servo: Handle inexact frequencies from periph_pwm 2015-05-30 12:41:07 +02:00

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.