What is a servo + clarifying examples
So in the IRC yesterday, I mentioned that Whisker and I were thinking of eventually motorizing our screen and I suggested servos. You know, cuz I think of servos as these mechanical things that spin around and around:
But apparently servos aren't just rotating "things", they are actual systems. Per @JohnS_AZ, a servo is a system and it may or may not include an electric motor. There are also hydraulic servos, pneumatic servos, electrical servos, and completely mechanical servos.
Gas kitchen stove = not a servo
Autopilot in airplane = servo
I expressed some doubt at a kitchen oven being a servo because you know, ovens don't have rotating parts in them. And I was corrected:
A servo is a system that adjusts some action, position, speed, or process based on a "error term" which it gets by measuring some parameter.
A kitchen oven has a temperature sensor, and a temperature set point. The error term is (set point) - (actual). If the term is greater than 0, turn on the heat. The stove has no measurement, no feedback (as it's just a valve).
Example 1. Blood Pressure Cuff
So an automatic blood pressure cuff would be a servo. It senses when the blood flow has stopped after inflating, pumps maybe 10% more, then starts to deflate. They also have an upper limit so that the inflation doesn't pop the arm cuff if no arm is in it. While deflating, it stops venting when a pulse is detected. Systolic is read, then valve is reopened until pulse disappears whereupon the diastolic number is read.
Example 2. Motorized Projector Screen
Whisker and I were also discussing motorizing our projector screen and I wondered if the motors would be considered a servo system if we set it up so that if I clicked a button, it came down, and when it sensed something, it stopped. And if the button was clicked again, the screen would go up, sense something, and stop.
John said that in that example, it wouldn't be a servo, it'd just be a screen controlled by limit switches.
But if there were a sensor that detected how far up or down it was, and you gave it a specific position to go to, and it went there - THEN it would be a servo.
Example 3. Parallax Servo
In the servo picture I show of a Parallax servo above, John says that inside the box is an electric motor which rotates the arm that sticks out the top. There is ALSO a small potentiometer that measures exactly where the arm is so when you hook it up, it can give that information to the MCU.
When you send a PWM signal to it, that signal represents where you want the arm to point. So a little circuit inside the servo compares your PWM signal to the measurement from the internal pot, and ends up with an error term. It then drives the motor one direction or the other to make the internal pot match your PWM signal.
So I wanted to know whether or not the temperature system on a computer fan was a servo. Essentially, if the sensor is used to turn the fan on and off, then yes, it is a servo.
This is where I realized that servos don't have to be mechanical. They can be electrical and John mentioned that there are high end audiophile audio amps that are servo systems.
So a servo has nothing to do with the motor. It's a system where something is automatically controlled by measuring some form of feedback.
Huh. This changes what I think about servos completely! And for more discussion, join us on our forums: http://www.tymkrs.com/forum/viewtopic.php?id=148