NodeMCU ESP8266 Controlled Dual Servo Circuit with Pushbutton Activation
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit in question is designed to interface a NodeMCU V3 ESP8266 microcontroller with two pushbuttons and two servo motors. The NodeMCU is responsible for reading the state of the pushbuttons and controlling the position of the servo motors based on the input from these buttons. The circuit is powered by the 3.3V output from the NodeMCU, which is distributed to the servo motors. Ground connections are shared among all components to complete the circuit.
Component List
NodeMCU V3 ESP8266
- Description: A WiFi-capable microcontroller module based on the ESP8266 chip.
- Pins: A0, GND, VU, S3, S2, S1, SC, S0, SK, 3V3, EN, RST, Vin, D0, D1, D2, D3, D4, D5, D6, D7, D8, RX, TX
Pushbutton (x2)
- Description: A simple pushbutton switch with four pins.
- Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
Servo (x2)
- Description: An actuator capable of precise angular positioning, controlled by PWM signals.
- Pins: GND, VCC, PWM
Wiring Details
NodeMCU V3 ESP8266
- D0: Connected to Pushbutton 1 (Pin 3 out)
- D1: Connected to Pushbutton 2 (Pin 3 out)
- D5: Connected to Servo 1 (PWM)
- D6: Connected to Servo 2 (PWM)
- 3V3: Connected to VCC of both Servo 1 and Servo 2
- GND: Common ground shared with both Servo 1 and Servo 2
Pushbutton 1
- Pin 3 (out): Connected to NodeMCU (D0)
- Pin 1 (in): Connected to NodeMCU (D0)
Pushbutton 2
- Pin 3 (out): Connected to NodeMCU (D1)
- Pin 1 (in): Connected to NodeMCU (D1)
Servo 1
- PWM: Connected to NodeMCU (D5)
- VCC: Connected to NodeMCU (3V3)
- GND: Connected to NodeMCU (GND)
Servo 2
- PWM: Connected to NodeMCU (D6)
- VCC: Connected to NodeMCU (3V3)
- GND: Connected to NodeMCU (GND)
Documented Code
No code was provided for the microcontroller. The expected behavior, based on the wiring, would be for the NodeMCU to monitor the state of the pushbuttons and send PWM signals to the servo motors to control their position. Without the code, the specific functionality and response to the pushbutton inputs cannot be documented.