I have one ESP8266 NodeMCU and 2 SG90 servos, and the problem is that there is no VIN pin for the second servo (unlike other GPIO and GND pins). The only way I've found is to use breadboard. So, is there any to connect second SG90 to ESP8266 NodeMCU if there is no second VIN pin? Sorry, I'm just a beginner
It is a generally bad idea to power the servos from ESP8266 board. You need an external power supply.
For additional help please draw your schematics.
You don’t need a second VIN pin Just power both servos from an external 5V supply and connect all GNDs together NodeMCU only gives the signal pin not the power
@abc765o
When discussing the connection method, please clarify whether this is a test circuit or a project.
Broadboards are perfectly suitable for a test circuit.
For a project, connections are usually made by soldering or making additional connectors. In both cases, the question of how to connect two or more wires to a single pin is out of the question.
I moved your topic to a more appropriate forum category @abc765o.
The Nano Family > Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.
In the future, when creating a topic please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.
Thanks in advance for your cooperation.
What external 5V supply?
You can use any small 5V power supply that can give enough current for two SG90 servos.
For example:
• a 5V 2A phone charger,
• a 5V USB power bank,
• or a small 5V DC adapter.
Just connect:
• +5V of the supply → red wires of both servos
• GND of the supply → GND of both servos → GND of NodeMCU
• Signal wires → GPIO pins on the NodeMCU
The NodeMCU only sends the signal, it shouldn’t power the servos.
Two SG90s have stall current of 1.5A, you don't power them from Esp pin, neither from your computers USB port.
Got it, but I don't understand where I should insert red voltage cable (coming from servo, insert into [?])? I understand about external 5V supply but I don't understand, where to put the voltage cable; I have Micro C USB 5V Wall Charger
Didn't managed to get the things needed today, so, I've tried using USB cable as the second source of power for the second servo:
I've connected black ground USB cable to servo brown cable, red voltage USB cable to servo red cable, and orange from servo to ESP GPIO. The problem is that ESP misses the brown ground cable, and J can't understand how do I connect black (brown ground) cable to both servo and ESP8266
For now, servo doesn't respond to write and jitters badly
Sorry if this is extremely ugly looking
There is no VIN pin for the first servo. You don't want the current for even one motor flowing through the NodeMCU's board. It could burn it.
You don't want the current for even one motor to flow though the breadboard. It could burn it.
The power must be connected (5V and GND) directly from a suitable power supply to the motors and to the NodeMCU/breadboard, with separate, suitable wires. Dupont wires are able to handle the current needed by the NodeMCU, but they are too thin for the current for a motor.
Would you draw this (paper/pencil is fine, or Windows Paint) as you have it connected?
Connect the two Servo +/- to the power supply +/-.
Connect the two Servo PWM to Arduino pins.
"DIO or PWM" - the servo library will create the PWM on any DIO pin. I do not know if the 8266 libraries do this.
Share the same GND/ground pin for both servos, Arduino and power supply.
That one black GND line coming from power supply to servo, and ESP joins it, that's what I'm searching for, I don't understand how to connect black male SINGLE GND cable coming from power supply to both ESP GND (male as well) and servo GND (female)...
Will this fit into "female" jumper? And what if ESP GND pin header is "male"? I have to connect GND pin with female cable from ESP GND, twist the male end with power supply GND, and insert into servo's female GND, or I got it totally wrong?








