0
\$\begingroup\$

I want to control a High Torque Servo using the esp8266 with PWM. This servo's operation voltage is in the range: 4.8V - 7.2V. With the esp8266, the GPIO pins can only output a maximum 3.3v. What's the most simple way to achieve the 5v output from esp8266?

\$\endgroup\$
4
  • \$\begingroup\$ You likely do not need to do anything except connect it. Hobby Servos are for the most part known to work well with 3.3v input. \$\endgroup\$ Jul 12 '18 at 13:50
  • \$\begingroup\$ Why is this tagged "arduino"? It doesn't seem like any original or clone Arduino part is in use here. \$\endgroup\$
    – Jules
    Jul 12 '18 at 14:35
  • \$\begingroup\$ @ChrisStratton - while I'm sure the 3.3v output of the ESP8266 will be adequate for a small servo, I suspect the 12mA max current will be a bit more of a limitation. \$\endgroup\$
    – Jules
    Jul 12 '18 at 14:41
  • \$\begingroup\$ @Jules - you seem to be seriously confusing something. The question is about controlling the servo, not about powering it. A servo does not draw its power from the signal line. The signal line conveys only information via quite low currents, power is delivered via the power line. They typically share a ground. \$\endgroup\$ Jul 12 '18 at 14:43
1
\$\begingroup\$

Use a suitable NPN BJT to switch the 5V to the servo.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ This is unnecessary. Further, if you were going to do it this way, you wound need to take the inversion into account in the software/timer pulse generation. And as the NPN would only drive low and not the high side that is the actual subject of the question, you'd also need a pull-up resistor. \$\endgroup\$ Jul 12 '18 at 13:49
0
\$\begingroup\$

Can use a level shifter, they are easy to use and are cheaply available. These small chips are very handy and are bi directional, you share it both power supplies, for any 3.3v LV1-4 get corresponding 5v from hv1-4

Ex: Link

\$\endgroup\$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.