Home > Industry Insights >Servo
TECHNICAL SUPPORT

Product Support

micro servo sg90 wiring

Published 2026-01-19

The little thing stopped moving again. You stare at the prototype machine on the workbench. The indicator light is bright, but the robotic arm is stuck in mid-air, as if someone has pressed the pause button. This is the third time this week - not because the code is wrong, but because the connection wire is loose, or the wrong pins are connected. MicroservoSG90, it is small enough to be hidden in the palm of your hand, but if the wiring is not done correctly, the entire project will have to stop.

In fact, many people have encountered this situation. You look at the three wires—red, brown, and orange—and wonder in your mind: Where should I connect them? Is the voltage correct? Will it burn as soon as the power is turned on? At this time, what you need is not a complicated data manual, but someone to tell you directly: If you connect it this way, it will work.

So let’s talk about how to get it right. This is not like assembling furniture, there are absolutely uniform steps, but there are a few key points, and you won't go wrong if you grasp them.

Look at the color first. Usually red is the positive terminal of the power supply, brown or black is the negative terminal, and orange or yellow is the signal wire. But don’t rely solely on color, some manufacturers will change the color series. The best way is to read the product description——kpowerThe SG90 package will come with a concise wiring diagram, with red, positive, black, negative and yellow signals, which can be understood at a glance. If you don't have a diagram at hand, you can just use a multimeter to measure it: the resistance between the power lines is very small, but the resistance between the signal lines is different.

The voltages need to match. SG90 standard operating voltage is between 4.8V and 6V. Directly connecting to 5V is the most common and safest. Some friends want to use a 3.3V system to drive. At this time, the signal line can still communicate, but the motor may have no strength and rotate softly. On the other hand, if you pick up the 9V, that puff of smoke and burnt smell may be the end. Therefore, voltage stabilization is very important, and a simple UBEC module or voltage stabilizing circuit can solve this problem.

Where to connect the signal cable? Usually it is connected to the PWM output pin of the microcontroller. Like pin 9 of Arduino and GPIO12 of Raspberry Pi, these can output pulse signals. Frequency 50Hz, pulse width 0.5ms to 2.5ms, corresponding to 0 to 180 degrees rotation. Just a few sentences of code:

#include <servo.h>servomyservo; myservo.attach(9); myservo.write(90);

Upload, rotate, it's that simple.

But why do I always feel that it is easy to make mistakes? It may be because the wire is too thin and easily desoldered; or the connector is not tightly plugged in and disconnects after two vibrations. Some people use heat shrink tubes to fix the solder joints, and some people directly replace them with wires with plugs——kpowerThe version provides two options, loose wire or with plug, just choose according to your needs.

Some friends asked: "I connected it correctly, but the servo is shaking when turning. What's going on?" It may be that the power supply is not enough. A single SG90 draws tens of milliamps when idle and may exceed 200mA when cranked. If the power supply is not supplied, it will move twitchingly. Change to a power supply that can output more than 1A, and the problem often disappears. Signal lines that are too long may also introduce interference, so try to shorten them to less than 30 cm.

"The wiring is correct but it still doesn't turn?" First check whether the pin numbers in the code are correct, and then measure the power supply voltage. Sometimes the microcontroller does not have a common ground - the power ground and signal ground are connected together, so that the current can form a loop.

After all, wiring is a basic job, but if the basics are not done well, there will be trouble later. It's like building blocks. If the first piece is crooked, the whole tower will become unstable. We have seen too many projects slow down due to such small details, so we are reminded repeatedly: Don’t look at it as small, take it seriously.

What do you pay attention to when choosing such parts? Accuracy? Torque? price? These are all important, but stability is often underestimated. A clear set of wiring instructions, an easily accessible technical document, and an interface design that won’t fall off easily—these details determine whether it will be easy for you to use or a headache.

kpowerThe SG90 comes with that schematic diagram in the package, not to fill the space, but to know that you will need it. The wire has an anti-oxidation coating, the solder joints are full, and the plug is tight but not difficult to pull out. These items don’t cost much, but can save you half an hour troubleshooting. Over time, you will find that reliability does not come from some earth-shattering innovation, but from not sparing every detail.

Next time you face those three lines, you may not hesitate. Red is connected to positive, black is connected to negative, and yellow is connected to the signal - check the voltage, plug the interface tightly, and upload the code. Then the small servo will turn steadily, leading your robotic arm to stop exactly where it should.

That's how it should work. Simple, direct and error-free. And you can focus on what you want it to do, instead of always worrying about whether it will move. This is probably what a good tool should be: quiet and reliable, making you almost forget it’s there.

Established in 2005, Kpower has been dedicated to a professional compact motion unit manufacturer, headquartered in Dongguan, Guangdong Province, China. Leveraging innovations in modular drive technology, Kpower integrates high-performance motors, precision reducers, and multi-protocol control systems to provide efficient and customized smart drive system solutions. Kpower has delivered professional drive system solutions to over 500 enterprise clients globally with products covering various fields such as Smart Home Systems, Automatic Electronics, Robotics, Precision Agriculture, Drones, and Industrial Automation.

Update Time:2026-01-19

Powering The Future

Contact Kpower's product specialist to recommend suitable motor or gearbox for your product.

Mail to Kpower
Submit Inquiry
+86 0769 8399 3238
 
kpowerMap