Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP8266 NodeMCU microcontroller, an L9110 motor driver, and a motor with wheels. The ESP8266 NodeMCU controls the motor driver, which in turn drives the motor. The document includes a component list, wiring details, and the embedded code used in the microcontroller.
Component List
ESP8266 NodeMCU
- Description: A low-cost Wi-Fi microcontroller with GPIO, PWM, ADC, I2C, and 1-Wire capabilities.
- Pins: D0, D1, D2, D3, D4, 3V3, GND, D5, D6, D7, D8, RX, TX, A0, RSV, SD3, SD2, SD1, CMD, SD0, CLK, EN, RST, VIN
L9110 Motor Driver
- Description: A dual-channel motor driver capable of driving two DC motors.
- Pins: MOTOR B-A, MOTOR B-B, MOTOR A-A, MOTOR A-B, B-IA, B-IB, GND, VCC, A-IA, A-IB
Motor and Wheels
- Description: A DC motor with attached wheels.
- Pins: vcc, GND
Wiring Details
ESP8266 NodeMCU
- D6 is connected to A-IA on the L9110 motor driver.
- D7 is connected to A-IB on the L9110 motor driver.
- GND is connected to GND on the L9110 motor driver.
- VIN is connected to VCC on the L9110 motor driver.
L9110 Motor Driver
- A-IA is connected to D6 on the ESP8266 NodeMCU.
- A-IB is connected to D7 on the ESP8266 NodeMCU.
- GND is connected to GND on the ESP8266 NodeMCU.
- VCC is connected to VIN on the ESP8266 NodeMCU.
- MOTOR A-A is connected to GND on the motor and wheels.
- MOTOR A-B is connected to vcc on the motor and wheels.
Motor and Wheels
- GND is connected to MOTOR A-A on the L9110 motor driver.
- vcc is connected to MOTOR A-B on the L9110 motor driver.
Embedded Code
ESP8266 NodeMCU Code
#define A1A D6
#define A1B D7
void setup() {
pinMode(A1A, OUTPUT);
pinMode(A1B, OUTPUT);
}
void loop() {
digitalWrite(A1A, HIGH);
digitalWrite(A1B, LOW);
}
This code sets up the pins D6 and D7 as outputs and continuously drives the motor by setting D6 to HIGH and D7 to LOW.
This document provides a comprehensive overview of the circuit, including the components used, their wiring, and the embedded code. This should serve as a useful reference for understanding and replicating the circuit.
