Veröffentlicht 2026-07-07
SEO-Titel: So verdrahten Sie SG90Servo: 3-Pin-Verbindungsanleitung für Anfänger
Meta-Beschreibung: Lernen Sie das richtige SG90ServoVerkabelung, Pinbelegung (GND, VCC, Signal) und wie man es an Arduino und Raspberry Pi anschließt. Vermeiden Sie häufige Fehler bei der Verpolung.
01SG90ServoVerkabelung: Eine vollständige Anleitung zur 3-Pin-Verbindung
Schnelle Antwort
Der SG90-Servo wird über drei Drähte angeschlossen:Braun (GND) , Rot (VCC, 4,8 V–6 V), UndOrange/Gelb (Signal). Eine falsche Verkabelung kann das Servo oder Ihren Controller sofort beschädigen. Überprüfen Sie immer die Spannungsanforderungen, bevor Sie das Gerät einschalten, und schließen Sie das rote Kabel niemals direkt an die 5 V eines Mikrocontrollers an, ohne dass eine separate Stromquelle für mehrere Servos vorhanden ist. In dieser Anleitung geht es um die Identifizierung der Pinbelegung, häufige Verkabelungsfehler und eine Schritt-für-Schritt-Anleitung für den Anschluss von Arduino und Raspberry Pi.
Einführung
Sie halten ein SG90-Mikroservo in der Hand, aber das Datenblatt fehlt und die Farben stimmen nicht mit Ihrer Erinnerung überein. Braun, rot, orange – oder ist es schwarz, rot, weiß? Ein falscher Draht und der Servo brennt durch, oder schlimmer noch, Ihre Steuerplatine funktioniert nicht mehr.
Dies ist keine seltene Situation. Viele Bastler und Ingenieure stehen bei der Verdrahtung eines Standards vor der gleichen UnsicherheitSG90-Servoerstmals. Die Frustration ist real: eine Projektverzögerung, eine ausgetauschte Komponente, eine verschwendete Stunde bei der Fehlerbehebung.
Die Verkabelung scheint trivial zu sein, ist aber die häufigste Fehlerquelle bei Projekten mit Servoantrieb, von Roboterarmen bis hin zu Kamerakardanringen. Nicht übereinstimmende Spannungen, umgekehrte Polarität oder Signalstörungen können zu unregelmäßigen Bewegungen, fehlender Reaktion oder dauerhaften Schäden führen.
Dieser Leitfaden soll diese Unsicherheit beseitigen. Sie erfahren genau, welches Kabel was bewirkt, wie Sie den SG90 an gängige Mikrocontroller anschließen und was Sie vor dem Anlegen der Stromversorgung überprüfen müssen.
Inhaltsverzeichnis
1. Die Pinbelegung des SG90-Servos verstehen
2. Kabelfarbenstandards und -varianten
3. Spannungs- und Leistungsanforderungen
4. So verbinden Sie SG90 mit Arduino
5. So verbinden Sie SG90 mit Raspberry Pi
6. Häufige Verkabelungsfehler und wie man sie vermeidet
7. Fragen, die Käufer häufig zur SG90-Verkabelung stellen
8. Auswahl des richtigen Servos für Ihr Projekt
Die Pinbelegung des SG90-Servos verstehen
Der SG90 verwendet eine Standard-Dreidrahtschnittstelle. Die Funktion jedes Kabels ist festgelegt, die Farbcodes können jedoch je nach Hersteller variieren.
Der braune Draht ist immerMasse (GND). Dies ist der Bezugspunkt für die gesamte Schaltung.
Das rote Kabel istLeistung (VCC). Der SG90 arbeitet in einem Spannungsbereich von 4,8 V bis 6 V. Bei 5 V liefert er ein maximales Drehmoment von ca. 1,8 kg·cm. Wenn Sie eine Spannung unter 4,8 V anlegen, bewegt sich das Servo möglicherweise nicht oder bleibt stehen. Wenn Sie 6 V überschreiten, besteht die Gefahr einer Beschädigung der internen Steuerplatine.
Das orangefarbene oder gelbe Kabel istSignal. Dieser Draht erhält einePWM (Pulsweitenmodulation)Signal zur Steuerung der Servoposition. Die Impulsbreite liegt typischerweise zwischen 1 ms (0 Grad) und 2 ms (180 Grad) und wird alle 20 ms wiederholt.
Warum das wichtig ist:Ein häufiger Fehler besteht darin, anzunehmen, dass das rote Kabel direkt vom 5-V-Pin eines Mikrocontrollers angesteuert werden kann. Bei einem einzelnen SG90 funktioniert dies möglicherweise vorübergehend. Bei zwei oder mehr Servos übersteigt die Stromaufnahme häufig die Leistung der Platine, was zu Resets oder Schäden führt.
Standards und Variationen der Drahtfarben

Während der Standard-SG90 Braun-Rot-Orange verwendet, können Sie auf andere Farbschemata stoßen.
Bestätigen Sie immer mit einem Multimeterwenn die Farben unbekannt sind. Messen Sie den Widerstand zwischen dem vermuteten GND und der Metallwelle des Servos. Wenn Durchgang besteht, ist dieses Kabel geerdet.
Wenn Sie Servos aus verschiedenen Chargen beziehen, testen Sie eine Einheit, bevor Sie das gesamte Projekt verkabeln. Ein verpolter Stromanschluss kann den Servoregler innerhalb von Millisekunden zerstören.
Spannungs- und Leistungsanforderungen
Der SG90 ist nicht für Hochspannungs- oder Hochstromanwendungen ausgelegt. Das Verständnis der Leistungsgrenzen verhindert unerwartete Ausfälle.
Betriebsspannung:4,8V bis 6V
Stillstandsstrom (bei 5V):Ungefähr 700 mA bis 800 mA
Leerlaufstrom:Etwa 10 mA
Empfohlene Stromquelle:Ein separater 5-V-Regler oder Akku für mehrere Servos
What happens if you ignore this: When the servo stalls (for example, if a robotic arm hits an obstacle), current spikes to near-stall levels. If your controller cannot supply that current, voltage drops, and the microcontroller resets. This is often misdiagnosed as a software bug.
Our recommendation: For projects using two or more SG90 servos , use an external 5V power supply rated at least 2A. Connect the servo power wires directly to the supply, and only connect the signal wires to the microcontroller.
How to Connect SG90 to Arduino
Connecting the SG90 to an Arduino is straightforward, but the order of connection matters for safety.
1. Identifizieren Sie die Drähte – Brown (GND), Red (VCC), Orange (Signal).
2. Connect GND – Brown wire to any GND pin on the Arduino.
3. Connect VCC – Red wire to 5V pin on the Arduino (only for a single servo and light load).
4. Connect Signal – Orange wire to a PWM-capable digital pin, eg, pin 9.
For multiple servos: Do not connect the red wires to the Arduino 5V pin. Use an external power supply. Connect all brown wires to a common ground shared with the Arduino.
Sample code logic: The servo library uses servo.attach(9)Undservo.write(90) to set position. Pulse timing is handled automatically.
Warnung: If the servo jitters or moves erratically, check your power supply first. In most cases, it is not a coding issue but insufficient current.
How to Connect SG90 to Raspberry Pi
The Raspberry Pi operates at 3.3V logic, while the SG90 expects a 5V signal. Direct connection can cause unreliable behavior.
Correct wiring for Raspberry Pi:
1. GND – Brown wire to any GND pin on the Pi.
2. VCC – Red wire to a 5V pin on the Pi (only for a single servo).

3. Signal – Orange wire to a GPIO pin, eg, GPIO 18 (PWM0).
Wichtig: The 3.3V logic high from the Pi may not reliably trigger the servo's signal detection. A level shifter is recommended for consistent performance. Without it, the servo may not reach full rotation or may stop mid-movement.
Power caution: The Raspberry Pi's 5V rail is limited. Drawing 700mA from a single servo can cause voltage dips that affect the Pi's stability. Use an external power supply for the servo and connect the grounds.
Software note:Benutzen Sie diePigpio library for hardware-based PWM. The default RPi.GPIO software PWM often produces jitter.
Häufige Verkabelungsfehler und wie man sie vermeidet
These mistakes are frequent and easily preventable.
1. Reverse polarity. Connecting the red wire to GND and brown to VCC destroys the servo's control board immediately. Always double-check before connecting power.
2. Insufficient power. Using a single servo with a microcontroller's 5V pin is borderline. Adding a second servo often causes failures. Use an external regulator.
3. Signal wire on non-PWM pin. On Arduino, only pins marked with ~ support PWM. Using a digital-only pin will not produce movement.
4. Ground not shared. When using an external power supply, if the servo's ground is not connected to the microcontroller's ground, the signal has no return path. The servo will not respond.
5. Over-torque and stall. If the servo cannot complete its commanded motion, it draws stall current. This heats the motor and can damage the internal potentiometer.
What to check before powering on:
[ ] Wire colors verified with multimeter
[ ] Power supply voltage measured (4.8V–6V)
[ ] GND shared between servo and controller
[ ] Signal pin configured for PWM output
[ ] Load does not exceed servo torque rating
Questions Buyers Often Ask About SG90 Wiring
Q: Can I use an SG90 servo with a 3.3V microcontroller?
Yes, but you should use a level shifter for the signal line. The servo's power must still be 5V. The signal from 3.3V logic may not reliably trigger the servo.
Q: What happens if I connect the SG90 to 12V?
The servo will be damaged almost immediately. The internal components are rated for a maximum of 6V. 12V will burn the control board.
Q: Can I control an SG90 without a PWM library?
It is possible by manually generating pulses in your code, but it is not recommended. Timing errors cause jitter and inconsistent position. Using a library is more reliable.
Q: How do I know if my SG90 is broken?
If the servo does not move but you feel resistance when turning the shaft manually, the internal gears may be stripped. If there is no resistance and it spins freely, the gear train is broken.
Q: Does the SG90 need a capacitor on the power line?
Adding a 100µF to 470µF electrolytic capacitor across the power and ground near the servo can reduce voltage spikes and improve stability, especially during rapid movements.
Q: Can I use the SG90 for continuous rotation?
The standard SG90 is not designed for continuous rotation. You can modify it by removing the mechanical stop, but position feedback will be lost. For continuous rotation, use a dedicated continuous rotation servo.
Q: Why does my SG90 only move a few degrees?
This usually indicates a signal issue. Check that the PWM frequency is 50Hz and the pulse width range is correct. Also verify that the power supply can deliver enough current.
Q: Can I daisy-chain multiple SG90 servos?
You can share the power and ground wires, but each servo needs its own signal wire connected to a separate PWM pin. Do not connect signal wires together.
Wählen Sie den richtigen Servo für Ihr Projekt
The SG90 is suitable for lightweight applications: small robot arms, camera pan/tilt mechanisms, and model aircraft control surfaces. It is not designed for high-torque or continuous-duty industrial use.
When the SG90 is the right choice:
Your project requires a compact, low-cost servo
The load is light (under 200g)
The movement is intermittent, not continuous
You have a stable 5V power supply
When to look for alternatives:
You need higher torque or metal gears
The servo will run for extended periods
Your application requires precise feedback (use a feedback servo or encoder)
You are working in an industrial environment with higher voltage requirements
For buyers comparing options: Evaluate the Drehmomentanforderungen of your application first. If the SG90 cannot lift the load at the required speed, no amount of wiring improvements will fix it. Upgrade to a metal-gear servo like the MG90S for heavier loads.
If you are unsure about your specific application, send your project specifications to an engineering team for review. A five-minute review can prevent weeks of troubleshooting.
Need Help Selecting the Right Servo?
Wiring the SG90 correctly is the first step. The next is ensuring the servo itself matches your application's torque, speed, and durability needs.
BeikpowerServo , we specialize in servo solutions for both prototyping and production. Whether you need standard micro servos or custom servo solutions for industrial motion control applications, our engineers can help match the right product to your load and power requirements.
Request a quoteoderupload your project specifications for an engineering review. We can help you verify torque, voltage compatibility, and wiring integration before you order.
Update Time:2026-07-07
Wenden Sie sich an den Produktspezialisten von Kpower, um einen geeigneten Motor oder ein geeignetes Getriebe für Ihr Produkt zu empfehlen.