You can use a PWM output to drive your servo. Set the PWM cycle frequency to 50hz and the duty cycle to 1.5 ms (~7% = center position). Varying the duty cycle +/- 0.5ms should drive your servo to left and right. Power the servo by an external power source not the GPIOs of the board. Am 02.10.2013 15:43 schrieb "서재필" <[email protected]>:
> Hello, BB group~ > > I'm figuring out how to control Servo motor by angle information with my > BB. > > I made a tracking sound c++ code and this code get some angle(degree) > information. And finally i got it with my BB. > > The next step is controlling Servo motor by this angle information. > > So I'm thinking of 2 methods. > > First one is using Arduino(send angle information to Arduino from BB), and > Second one is BB directly controls a Servo motor. > > But I don't know how to use gpio in BB and I wonder 2 methods I > thought are possible to implement coding by just using c++ in Angstrom > linux. > > Please give me any comments. > > It will be great help for me. > > Thanks. > > > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
