servo control on beaglebone blue

I am currently working on beaglebone blue and I am trying to control the servo using the servo motor pins on the beaglebone blue in channel 1. My servo is moving fine when I give command
rc_test_servos -c 1 -w 1100 and like that I change the value to 1900 gradually with difference of 100.
But now I am trying to write a code in the servo can move automatically from 1100 to 1900 or in position -90 degrees to + 90 degrees continuosly with some delay between each intervals when I run the code.
Do any have any Idea on this please let me know.


This is helpful thanks a lot.

1 Like