📣📪 🚚 Adafruit will not be shipping USPS orders Monday January 20, 2020 🗓. Expedited USPS orders placed after 11am ET 🕚 Friday January 17 will go out Tuesday January 21 📣📪🚚

How do servo motors work? #Servo #Electronics #Robotics @TheSciJoy

Via SciJoy on Youtube who provides a wonderful description on how DC hobby servos work:

I did a teardown of a servo motor to see what it is made of and how it works. Inside the casing is the DC motor, gears, a potentiometer, and an integrated chip.

I couldn’t find great data sheets for the chips in my particular hobby servos. Instead, I looked up some popular RC servo chips. They all seem to have the same basic components – a potentiometer hooked to a voltage regulator and one shot generator, which converts position of the armature to a PWM pulse. This PWM pulse is compared to the original one sent by the microcontroller. This logic board finds the difference between the pulses, which is called the error.

The magnitude of the error is sent to a pulse stretcher and the direction of the error is send to a flip flop to be stored as a high or low. The magnitude of the error is stretched out by the pulse stretcher. Then both parts of the error are sent to the output driver, which is probably an h-bridge. Most servos are 50HZ, which means this control loop is happening 50 times every second until the error is “zero”. The dead band for the pulse stretcher sets a minimum pulse length that it will stretch. Anything below this limit is considered zero error.

There is also a resistor goes between the IC and the motor. The back EMF from the motor is used to dampen the control loop. I didn’t feel like I could explain this well enough so I left that out of the video.

Check the notes in the video for a bunch of great references to servo resources also.

How do you use servo motors? Let us know in the comments below.

Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Join 15,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

What do you want from CircuitPython in 2020?

Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Follow Adafruit on Instagram for top secret new products, behinds the scenes and more https://www.instagram.com/adafruit/

Maker Business — Apple’s Mac Pro doesn’t fall far from the tree

Wearables — How to twist light

Electronics — Linear Love

Biohacking — Vitamin-C + Gelatin for Accelerated Recovery

Python for Microcontrollers — CircuitPython snakes its way to Teensy 4.0, i.MX Feathers take flight and more! #Python #Adafruit #CircuitPython @circuitpython @micropython @ThePSF @Adafruit

Adafruit IoT Monthly — Learning from IoT Projects, Adafruit Joins the LoRa Alliance, Ring Ransoms, and more!

Microsoft MakeCode — MakeCode: Opening a World of Possibilities

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !

No Comments

No comments yet.

Sorry, the comment form is closed at this time.