-->
Page 1 of 1

ESP8266 (ESP-01) GPIO has problem with servo motor and power

PostPosted: Mon Aug 06, 2018 2:27 am
by Carl Paton
ESP8266 (ESP-01) GPIO#0 OR #2 doesn't work properly with servo motor when power resets with GND in ESP8266.

Source code is very simple. Just include <Servo.h> and move the servo from 0 degree to 180 degrees in loop().

Everything works fine if I reset the power of ESP8266 and then connect GPIO pin to servo's pulse pin.

But whenever I reset the power of ESP8266 with GPIO to servo still remained connected, servo doesn't work as programmed but moves in a wrong direction and stuck.

Servo motor is powered by 5V, ESP8266 is powered by 3.3V. Both are from Raspberry Pi and sharing the GND.

How can I solve this problem?

Re: ESP8266 (ESP-01) GPIO has problem with servo motor and p

PostPosted: Thu Aug 09, 2018 12:27 am
by Carl Paton
Posting this article took almost a week, and solved this problem by myself.
10kOhm pull up resistor make it work like a charm.

Re: ESP8266 (ESP-01) GPIO has problem with servo motor and p

PostPosted: Thu Aug 09, 2018 2:51 pm
by RichardS
Sorry Carl, normally its just hours to approval... not sure what happened there....

RichardS