Week 7 Servo Motor

 How Servo motors work.


From https://en.wikipedia.org/wiki/Servo_control#/media/File:Servomotor_Timing_Diagram.svg

Now for a cycle of 50 Hz this means.....

Each cycle lasts 1/50 sec = 0.2 sec = 20 ms 

For -90 degree position

1ms /  20ms  =  5%

1.5ms /  20ms  = 7.5% duty cycle for 0 position

For 90 degree position

2ms / 20ms = 10% duty cycle

How a servo motor works




So...

 percent_duty_cycle = 0.0278 * degree + 7.5

Pico pin out

Programming Collections

basics\collectionsTest.py


Comments

Popular posts from this blog

Week 1 Setup. Using Thonny

Week 2 Resistors, Using the Solderless Breadboard, Turning an LED on and off using the Pico

Week 3 Introducing Python Coding, Pulse Width Modulation