Electronic – Properly controlling a 6V servo motor from a microcontroller

microcontrollerservo

Regular old 5V hobby servos can usually be safely connected directly to a microcontroller without any issues. When it comes to 6V servos (that also might be drawing sizable current), there doesn't seem to be as much information.

I've read that you can simply provide 6V to the + and – pins on the servo from a separate source and then provide the regular 5V control signal, but I doubt that this is the ideal solution.

What's the right way to control a (potentially high current-draw) 6V servo from a 5V microcontroller? Should the 6V supply just come from a voltage regulator and a couple of caps or is it important to have a more sophisticated voltage source?

Thanks!

Best Answer

So in general when you have a noisy actuator and a sensitive you run them on separate supplies and try and keep the two electrically isolated. I use a circuit like this when I try and opto-isolate a transmitter and a receiver: opto-isolator example schematic This will give you a non-inverted output of the input waveform, and will actually work with any voltage on the input and output side so long as you can still turn on the LED (i.e. the input voltage is high enough) and you are within the operating voltage of the output transistor.

Isolating the two supplies is actually good in a lot of ways. It means you don't have to worry about surges in current on the actuator supply causing issues on the microcontroller (fewer decoupling caps, etc), and it also means that if the actuator battery dies, the actuator won't try and run off the input signal from the microcontroller.

Hope that helps!