Publié 2026-07-07
Titre SEO : Comment câbler le SG90servomoteur: Guide de connexion à 3 broches pour les débutants
Meta Description : Apprenez le bon SG90servomoteurcâblage, brochage (GND, VCC, signal) et comment le connecter à Arduino et Raspberry Pi. Évitez les erreurs courantes d'inversion de polarité.
01SG90servomoteurCâblage : un guide complet de la connexion à 3 broches
Réponse rapide
Le servo SG90 se connecte via trois fils :Marron (GND) , Rouge (VCC, 4,8 V-6 V), etOrange/Jaune (Signal). Un câblage incorrect peut endommager instantanément le servo ou votre contrôleur. Vérifiez toujours les exigences de tension avant la mise sous tension et ne connectez jamais le fil rouge directement au 5 V d'un microcontrôleur sans source d'alimentation séparée pour plusieurs servos. Ce guide couvre l'identification du brochage, les erreurs de câblage courantes et la connexion étape par étape pour Arduino et Raspberry Pi.
Introduction
Vous avez un micro servo SG90 en main, mais la fiche technique est manquante et les couleurs ne correspondent pas à ce dont vous vous souvenez. Marron, rouge, orange – ou est-ce noir, rouge, blanc ? Un mauvais fil et le servo grille, ou pire, votre carte contrôleur cesse de fonctionner.
Ce n'est pas une situation rare. De nombreux amateurs et ingénieurs sont confrontés à la même incertitude lors du câblage d'unServomoteur SG90pour la première fois. La frustration est réelle : un retard dans un projet, un composant remplacé, une heure perdue en dépannage.
Le câblage semble trivial, mais il constitue la source de défaillance la plus courante dans les projets servocommandés, des bras robotiques aux cardans de caméra. Une inadéquation de tension, une polarité inversée ou des interférences de signal peuvent provoquer un mouvement irrégulier, une absence de réponse ou des dommages permanents.
Ce guide existe pour éliminer cette incertitude. Vous apprendrez exactement quel fil fait quoi, comment connecter le SG90 aux microcontrôleurs populaires et ce qu'il faut vérifier avant de mettre sous tension.
Table des matières
1. Comprendre le brochage du servo SG90
2. Normes et variations de couleur des fils
3. Exigences de tension et de puissance
4. Comment connecter le SG90 à Arduino
5. Comment connecter le SG90 au Raspberry Pi
6. Common Wiring Mistakes and How to Avoid Them
7. Questions Buyers Often Ask About SG90 Wiring
8. Choisir le bon servo pour votre projet
Understanding the SG90 Servo Pinout
The SG90 uses a standard three-wire interface. The function of each wire is fixed, but color codes can vary between manufacturers.
The Brown wire is always Terre (GND) . This is the reference point for the entire circuit.
The Red wire is Puissance (VCC) . The SG90 operates in a voltage range of 4.8V to 6V. At 5V, it delivers a maximum torque of approximately 1.8 kg·cm. If you supply voltage below 4.8V, the servo may not move or will stall. If you exceed 6V, you risk damaging the internal control board.
The Orange or Yellow wire is Signal . This wire receives a PWM (modulation de largeur d'impulsion) signal to command the servo position. The pulse width typically ranges from 1ms (0 degrees) to 2ms (180 degrees), repeating every 20ms.
Pourquoi c'est important : A common mistake is assuming the red wire can be driven directly from a microcontroller's 5V pin. For a single SG90, this may work temporarily. For two or more servos, the current draw often exceeds what the board can supply, causing resets or damage.
Wire Color Standards and Variations

While the standard SG90 uses Brown-Red-Orange, you may encounter other color schemes.
Always confirm with a multimeter if the colors are unfamiliar. Measure resistance between the suspected GND and the metal shaft of the servo. If continuity exists, that wire is ground.
If you are sourcing servos from different batches, test one unit before wiring the entire project. A reversed power connection can destroy the servo controller in milliseconds.
Voltage and Power Requirements
The SG90 is not designed for high-voltage or high-current applications. Understanding its power limits prevents unexpected failures.
Tension de fonctionnement :4,8 V à 6 V
Stall current (at 5V): Approximately 700mA to 800mA
Idle current: Around 10mA
Recommended power source: A separate 5V regulator or battery pack for multiple 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. Identifiez les fils – 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)etservo.écrire(90) to set position. Pulse timing is handled automatically.
Avertissement: 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).
Important: The 3.3V logic high from the Pi may not reliably trigger the servo's signal detection. A changeur de niveau 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:Utilisez lecochon library for hardware-based PWM. The default RPi.GPIO software PWM often produces jitter.
Erreurs de câblage courantes et comment les éviter
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.
Choosing the Right Servo for Your Project
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 exigences de couple 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.
Àkpuissanceservomoteur , 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 quoteouupload 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
Contactez le spécialiste des produits Kpower pour recommander un moteur ou une boîte de vitesses adapté à votre produit.