I have a 5V "SG90 Servo motor" and would like to control it to move 0 degrees, 90 and 180 degrees, by sending it appropriate pulses from my NodeMCU Development kit.
Having searched on the net - I could not find a right example source on how to essentially program it.
Arduino IDE has some examples -but they are for Arduino hardware and not for NodeMCU/ESP 8266. ( I am using this to upload code to the NodeMCU )
There is a "sweep" sketch/program and I used/modified it a bit to suit the NodeMCU pin out, that did NOT work. Hence reaching out to any engineers here who can share code snippet ( prefer python) and show how to control the Servo motor .
The Pins on the Node MCU I would like to use are D1..D4. I have a 5V wall adapter from which I can power the Servo's Power ( Vcc) and GND pins. The orange pin (i.e PWM ) on the SG90 Servo, is how I am trying to control the Servo from the NodeMCU's D1.. D4 pins.
Any help would be appreciated.