Lines Matching +full:sample +full:- +full:period
1 .. zephyr:code-sample:: servo-motor
3 :relevant-api: pwm_interface
10 This is a sample app which drives a servomotor using the :ref:`PWM API <pwm_api>`.
12 The sample rotates a servomotor back and forth in the 180 degree range with a
15 This app is targeted for servomotor ROB-09065. The corresponding PWM pulse
23 The sample requires a servomotor whose signal pin is connected to a pin driven
24 by PWM. The servo must be defined in Devicetree using the ``pwm-servo``
25 compatible (part of the sample) and setting its node label to ``servo``. You
28 .. code-block:: devicetree
32 compatible = "pwm-servo";
34 min-pulse = <PWM_USEC(700)>;
35 max-pulse = <PWM_USEC(2500)>;
39 Note that a commonly used period value is 20 ms. See
55 The sample has a devicetree overlay for the :zephyr:board:`bbc_microbit`.
57 This sample can be built for multiple boards, in this example we will build it
60 .. zephyr-app-commands::
61 :zephyr-app: samples/basic/servo_motor