Lines Matching refs:stepper

1 .. zephyr:code-sample:: stepper
5 Rotate a stepper motor in 4 different modes.
10 This sample demonstrates how to use the stepper driver API to control a stepper motor. The sample
11 spins, enables, disables, stops the stepper and outputs the events to the console.
13 The stepper spins in 4 different modes: ping_pong_relative, ping_pong_absolute, continuous_clockwise
15 :kconfig:option:`CONFIG_STEP_INTERVAL_NS`. The sample also demonstrates how to use the stepper call…
16 to change the direction of the stepper after a certain number of steps.
18 Pressing any button should change the mode of the stepper. The mode is printed to the console.
22 The sample also has a monitor thread that prints the actual position of the stepper motor every
28 This project spins the stepper and outputs the events to the console.
31 :zephyr-app: samples/drivers/stepper/generic
41 [00:00:00.000,000] <inf> stepper: Starting generic stepper sample
42 [00:00:00.000,000] <dbg> stepper: main: stepper is 0x80086b8, name is gpio_stepper
44 [00:00:00.000,000] <dbg> stepper: monitor_thread: Actual position: 0
45 [00:00:00.491,000] <inf> stepper: mode: enable
46 [00:00:00.876,000] <inf> stepper: mode: ping pong relative
47 [00:00:01.000,000] <dbg> stepper: monitor_thread: Actual position: -114
48 [00:00:01.237,000] <inf> stepper: mode: ping pong absolute
49 [00:00:01.564,000] <inf> stepper: mode: rotate cw
50 [00:00:01.871,000] <inf> stepper: mode: rotate ccw
51 [00:00:02.000,000] <dbg> stepper: monitor_thread: Actual position: 129
52 [00:00:02.164,000] <inf> stepper: mode: stop
53 [00:00:02.444,000] <inf> stepper: mode: disable
54 [00:00:02.755,000] <inf> stepper: mode: enable