Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use WeMos D1 Mini Motor Shield: Examples, Pinouts, and Specs

Image of WeMos D1 Mini Motor Shield
Cirkit Designer LogoDesign with WeMos D1 Mini Motor Shield in Cirkit Designer

Introduction

The WeMos D1 Mini Motor Shield is a compact motor driver shield designed specifically for the WeMos D1 Mini development board. It enables users to control DC motors and stepper motors with ease, making it ideal for robotics, automation, and other motor-driven projects. The shield supports PWM (Pulse Width Modulation) control for precise speed and direction management and is fully compatible with the Arduino IDE for programming.

Explore Projects Built with WeMos D1 Mini Motor Shield

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Wi-Fi Controlled Vibration-Sensing Robot with Battery Monitoring
Image of Vibration Trash: A project utilizing WeMos D1 Mini Motor Shield in a practical application
This circuit features a Wemos D1 Mini microcontroller connected to a MX1508 DC Motor Driver for controlling a DC motor, a SW-420 Vibration Sensor for detecting vibrations, and a Type-c Power Bank Module with an 18650 battery holder for power supply. The microcontroller monitors the vibration sensor and controls the motor driver based on the sensor's output, while also measuring the battery voltage through an ADC pin with a connected resistor for voltage scaling. The embedded code enables WiFi connectivity, OTA updates, and integration with Home Assistant for remote monitoring and control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Bluetooth-Controlled Robotic Vehicle with Adafruit Motor Shield
Image of motor: A project utilizing WeMos D1 Mini Motor Shield in a practical application
This circuit is a motor control system that uses an Adafruit Motor Shield to drive four hobby motors, with additional sensors including an IR sensor, an ultrasonic sensor, a metal detector, and a Bluetooth module for remote communication. The system is powered by a battery case and controlled via a rocker switch.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano-Based Remote-Controlled Dual Motor System with LiPo Battery
Image of nano shield zkbm1: A project utilizing WeMos D1 Mini Motor Shield in a practical application
This circuit is designed to control two GM25 DC motors using a ZK-BM1 10A motor driver, which is managed by a NANO Shield Board. The NANO Shield Board receives input signals from an R6FG receiver and is powered by an 11.1V LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO and Motor Shield Controlled Bipolar Stepper Motor System
Image of satellite: A project utilizing WeMos D1 Mini Motor Shield in a practical application
This circuit consists of an Arduino UNO microcontroller stacked with an Arduino Motor Shield (Rev3) to control two bipolar stepper motors. The motor shield interfaces directly with the Arduino UNO, receiving power from a pair of 18650 batteries. The setup is designed for applications requiring precise motor control, such as robotics or CNC machines, with the Arduino programmed to manage motor operations.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with WeMos D1 Mini Motor Shield

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Vibration Trash: A project utilizing WeMos D1 Mini Motor Shield in a practical application
Wi-Fi Controlled Vibration-Sensing Robot with Battery Monitoring
This circuit features a Wemos D1 Mini microcontroller connected to a MX1508 DC Motor Driver for controlling a DC motor, a SW-420 Vibration Sensor for detecting vibrations, and a Type-c Power Bank Module with an 18650 battery holder for power supply. The microcontroller monitors the vibration sensor and controls the motor driver based on the sensor's output, while also measuring the battery voltage through an ADC pin with a connected resistor for voltage scaling. The embedded code enables WiFi connectivity, OTA updates, and integration with Home Assistant for remote monitoring and control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of motor: A project utilizing WeMos D1 Mini Motor Shield in a practical application
Bluetooth-Controlled Robotic Vehicle with Adafruit Motor Shield
This circuit is a motor control system that uses an Adafruit Motor Shield to drive four hobby motors, with additional sensors including an IR sensor, an ultrasonic sensor, a metal detector, and a Bluetooth module for remote communication. The system is powered by a battery case and controlled via a rocker switch.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of nano shield zkbm1: A project utilizing WeMos D1 Mini Motor Shield in a practical application
Arduino Nano-Based Remote-Controlled Dual Motor System with LiPo Battery
This circuit is designed to control two GM25 DC motors using a ZK-BM1 10A motor driver, which is managed by a NANO Shield Board. The NANO Shield Board receives input signals from an R6FG receiver and is powered by an 11.1V LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of satellite: A project utilizing WeMos D1 Mini Motor Shield in a practical application
Arduino UNO and Motor Shield Controlled Bipolar Stepper Motor System
This circuit consists of an Arduino UNO microcontroller stacked with an Arduino Motor Shield (Rev3) to control two bipolar stepper motors. The motor shield interfaces directly with the Arduino UNO, receiving power from a pair of 18650 batteries. The setup is designed for applications requiring precise motor control, such as robotics or CNC machines, with the Arduino programmed to manage motor operations.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Robotics and automation projects
  • Small motorized vehicles or robots
  • Stepper motor control for CNC or 3D printing applications
  • DIY projects requiring motorized movement
  • Educational projects for learning motor control

Technical Specifications

Key Technical Details

  • Motor Driver IC: TB6612FNG
  • Input Voltage: 2.5V to 12V (motor power supply)
  • Logic Voltage: 3.3V (compatible with WeMos D1 Mini)
  • Output Current: 1.2A per channel (continuous), 3.2A peak
  • Motor Channels: 2 (can drive two DC motors or one stepper motor)
  • PWM Frequency: Up to 100 kHz
  • Dimensions: Matches the WeMos D1 Mini form factor

Pin Configuration and Descriptions

The WeMos D1 Mini Motor Shield connects directly to the WeMos D1 Mini board. Below is the pin configuration:

Pin Description
AIN1 Input for Motor A direction control
AIN2 Input for Motor A direction control
BIN1 Input for Motor B direction control
BIN2 Input for Motor B direction control
PWMA PWM input for Motor A speed control
PWMB PWM input for Motor B speed control
VM Motor power supply (2.5V to 12V)
GND Ground

Usage Instructions

How to Use the Component in a Circuit

  1. Connect the Shield: Attach the WeMos D1 Mini Motor Shield to the WeMos D1 Mini board by aligning the pins and stacking them together.
  2. Power the Motors: Connect an external power supply (2.5V to 12V) to the VM and GND pins to power the motors.
  3. Connect Motors: Attach the DC motors or stepper motor to the motor output terminals (Motor A and Motor B).
  4. Program the Board: Use the Arduino IDE to upload code to the WeMos D1 Mini for motor control.

Important Considerations and Best Practices

  • Ensure the motor power supply voltage matches the requirements of your motors.
  • Avoid exceeding the maximum current rating (1.2A continuous, 3.2A peak) to prevent damage.
  • Use appropriate heat dissipation methods if operating at high currents for extended periods.
  • Double-check all connections before powering the circuit to avoid short circuits or damage.

Example Code for Arduino IDE

Below is an example code snippet to control two DC motors using the WeMos D1 Mini Motor Shield:

// Include the Arduino library for motor control
#define AIN1 D1  // Motor A direction control pin 1
#define AIN2 D2  // Motor A direction control pin 2
#define PWMA D3  // Motor A speed control (PWM) pin
#define BIN1 D4  // Motor B direction control pin 1
#define BIN2 D5  // Motor B direction control pin 2
#define PWMB D6  // Motor B speed control (PWM) pin

void setup() {
  // Set motor control pins as outputs
  pinMode(AIN1, OUTPUT);
  pinMode(AIN2, OUTPUT);
  pinMode(PWMA, OUTPUT);
  pinMode(BIN1, OUTPUT);
  pinMode(BIN2, OUTPUT);
  pinMode(PWMB, OUTPUT);
}

void loop() {
  // Motor A: Forward at 50% speed
  digitalWrite(AIN1, HIGH);
  digitalWrite(AIN2, LOW);
  analogWrite(PWMA, 128);  // PWM value (0-255)

  // Motor B: Backward at 75% speed
  digitalWrite(BIN1, LOW);
  digitalWrite(BIN2, HIGH);
  analogWrite(PWMB, 192);  // PWM value (0-255)

  delay(2000);  // Run motors for 2 seconds

  // Stop both motors
  analogWrite(PWMA, 0);
  analogWrite(PWMB, 0);

  delay(2000);  // Wait for 2 seconds
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Motors Not Running:

    • Ensure the motor power supply is connected and within the voltage range (2.5V to 12V).
    • Verify that the motor connections are secure and correctly wired.
    • Check the code to ensure the correct pins are defined and used.
  2. Motors Running in the Wrong Direction:

    • Swap the AIN1 and AIN2 (or BIN1 and BIN2) connections in the code or hardware.
  3. Overheating:

    • Ensure the current draw of the motors does not exceed the shield's maximum rating.
    • Use motors with appropriate specifications for the shield.
  4. PWM Control Not Working:

    • Verify that the PWM pins (PWMA and PWMB) are correctly defined in the code.
    • Ensure the Arduino IDE is configured for the correct board (WeMos D1 Mini).

FAQs

Q: Can I control a stepper motor with this shield?
A: Yes, the shield can control a single stepper motor by using both motor channels (Motor A and Motor B). You will need to write or use a stepper motor control library for precise control.

Q: Is the shield compatible with other boards?
A: The shield is designed for the WeMos D1 Mini but may work with other boards that have a similar pinout and logic voltage (3.3V).

Q: What is the maximum PWM frequency supported?
A: The shield supports PWM frequencies up to 100 kHz, which is sufficient for most motor control applications.