O'Reilly logo

GNU/Linux Rapid Embedded Programming by Rodolfo Giometti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing a servo motor

To show you how to use a PWM generator in order to manage a peripheral, we can use a servo motor. This is a really simple motor where we can set a specific gear position by setting a proper duty-cycle of the PWM signal (another example of how to use a PWM in order to generate a clock signal has been reported in the  Using an external controller section, in Chapter 14Controller Area Network - CAN, and the  Detecting a gas section, in Chapter 17Analog-to-Digital Converters - ADC ).

In the following image, you can see the servo motor used in this example:

Managing a servo motor

Note

The device can be purchased at http://www.cosino.io/product/nano-servo-motor ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required