Connecting a HC-SR04 (or Servo) to A0 ESP

I connected 9 servos to the GPIO ( GPIO 0-8) of my ESP and now, basically, I'm running out of pins. I want to use the Analog Pin A0 to connect a HC-SR04 (using NewPin library) or a Servo motor. I have tried both without results, Someone knows if it is even possible?

PD: I'm using a ESP-12E motor shield that can supply my servos with 5V

Not possible. A0 is analog input only on ESP8266.

I suggest you get a PCA9685 to drive your servos. This will free up some pins for other uses.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.