This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to control the angle of motor

Hi,  i am working on servo motor using nrf52840 development kit , i want to run parallely four servo motors , i have merged the ble_app_uart+pwm library example ,

1. As of now i configured the four app_pwm_instance ,

2. in duty cycle i am giving my speed , it running perfectly 

i have seen some post , how to run the motor anticlockwise , clockwise 

3 . In duty _cycle_set (&pwm1 ,1, 35) //clockwise 

(&pwm1,1,25) //anticlockwise   if i give 35 it is running clockwise , in place of 35 if i give 25 it is running anticlockwise . how ? can you explain a bit .

4 . i can able to control the speed , how to control the angle of the motor ? can you share the some post regarding this .. please help me out .

i read the documentation too 

Related