Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use A4988 Circuit Board: Examples, Pinouts, and Specs

Image of A4988 Circuit BoardDesign with A4988 Circuit Board in Cirkit Designer

Introduction

The A4988 Circuit Board is a stepper motor driver designed for precise control of bipolar stepper motors. Manufactured by Custom with the part ID A4988, this component is widely used in applications requiring smooth and accurate motor movement. It features adjustable current control, microstepping capabilities, and thermal protection, making it a reliable choice for projects such as 3D printers, CNC machines, and robotics.

Explore Projects Built with A4988 Circuit Board

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 RFID-Activated Traffic Light Controller with Auditory Feedback Using Arduino Mega: A project utilizing A4988 Circuit Board in a practical application
RFID-Activated Traffic Light Controller with Auditory Feedback Using Arduino Mega

This circuit is designed to control two 28BYJ-48 stepper motors using A4988 stepper motor driver carriers, with an Arduino Mega 2560 as the central microcontroller. It includes an RFID-RC522 module for RFID reading, an LCD display for user interface, and a traffic light and piezo speaker for visual and audio signaling. The circuit is powered by a 12V 5A power supply, which is stepped down to 5V for logic level components, and it interfaces with a power outlet for AC to DC conversion.

Open Project in Cirkit Designer
Image of Arduino Mega 2560-Controlled Stepper Motors with RFID Access and Traffic Light Indication: A project utilizing A4988 Circuit Board in a practical application
Arduino Mega 2560-Controlled Stepper Motors with RFID Access and Traffic Light Indication

This circuit controls two 28BYJ-48 stepper motors using A4988 stepper motor driver carriers, interfaced with an Arduino Mega 2560 microcontroller. It features an RFID-RC522 module for RFID reading, a 16x4 LCD display with I2C interface for user interaction, and a piezo speaker for audio feedback. Additionally, there is a traffic light module controlled by the Arduino, and a 48V to 5V converter to step down voltage for the logic levels. The power supply provides 12V to the motor drivers and is connected to a standard power outlet.

Open Project in Cirkit Designer

Common Applications:

Technical Specifications

The A4988 Circuit Board is a compact and versatile driver with the following key specifications:

Key Technical Details:

Pin Configuration and Descriptions:

The A4988 Circuit Board has 16 pins, which are described in the table below:

Pin Name Type Description
VMOT Power Input Motor power supply (8V to 35V). Connect to the stepper motor's power source.
GND Ground Ground connection for motor power supply.
VDD Power Input Logic voltage supply (3.3V or 5V).
GND Ground Ground connection for logic voltage.
1A, 1B Motor Output Connect to one coil of the stepper motor.
2A, 2B Motor Output Connect to the other coil of the stepper motor.
STEP Logic Input Step signal input. Each pulse moves the motor one step.
DIR Logic Input Direction control input. High or low determines the motor's rotation direction.
ENABLE Logic Input Enables or disables the driver. Active low.
MS1, MS2, MS3 Logic Inputs Microstepping mode selection.
RESET Logic Input Resets the driver. Active low.
SLEEP Logic Input Puts the driver into low-power sleep mode. Active low.

Microstepping Mode Selection:

The microstepping mode is configured using the MS1, MS2, and MS3 pins as shown below:

MS1 MS2 MS3 Microstepping Mode
Low Low Low Full Step
High Low Low Half Step
Low High Low Quarter Step
High High Low Eighth Step
High High High Sixteenth Step

Usage Instructions

How to Use the A4988 in a Circuit:

  1. Power Connections:

    • Connect the VMOT pin to the motor power supply (8V to 35V).
    • Connect the VDD pin to the logic voltage supply (3.3V or 5V).
    • Ensure all ground pins (GND) are connected to a common ground.
  2. Motor Connections:

    • Connect the stepper motor's two coils to the 1A, 1B and 2A, 2B pins.
  3. Control Signals:

    • Use the STEP pin to send pulses for motor movement.
    • Use the DIR pin to control the motor's rotation direction.
    • Configure the microstepping mode using the MS1, MS2, and MS3 pins.
  4. Adjust Current Limit:

    • Use the onboard potentiometer to set the current limit. This prevents overheating and ensures optimal motor performance.
  5. Enable/Disable the Driver:

    • Use the ENABLE pin to enable or disable the driver. Pull it low to enable the driver.

Important Considerations:

Example Code for Arduino UNO:

Below is an example of how to control a stepper motor using the A4988 with an Arduino UNO:

// Define control pins for the A4988
#define STEP_PIN 3  // Connect to the STEP pin on the A4988
#define DIR_PIN 4   // Connect to the DIR pin on the A4988

void setup() {
  pinMode(STEP_PIN, OUTPUT); // Set STEP pin as output
  pinMode(DIR_PIN, OUTPUT);  // Set DIR pin as output

  digitalWrite(DIR_PIN, HIGH); // Set initial direction (HIGH = clockwise)
}

void loop() {
  // Generate a step pulse
  digitalWrite(STEP_PIN, HIGH); // Set STEP pin HIGH
  delayMicroseconds(1000);      // Wait for 1ms (adjust for speed)
  digitalWrite(STEP_PIN, LOW);  // Set STEP pin LOW
  delayMicroseconds(1000);      // Wait for 1ms (adjust for speed)
}

Notes:

Troubleshooting and FAQs

Common Issues and Solutions:

  1. Motor Not Moving:

    • Check all connections, especially the motor coils and power supply.
    • Ensure the ENABLE pin is pulled low to activate the driver.
    • Verify that the STEP and DIR signals are being sent correctly.
  2. Overheating:

    • Ensure the current limit is set correctly using the potentiometer.
    • Add a heatsink or active cooling to the A4988.
  3. Jerky or Inconsistent Movement:

    • Verify the microstepping mode configuration (MS1, MS2, MS3 pins).
    • Check for loose connections or insufficient power supply.
  4. Driver Not Responding:

    • Ensure the RESET and SLEEP pins are not pulled low.
    • Confirm that the logic voltage (VDD) is within the acceptable range.

FAQs:

By following this documentation, you can effectively use the A4988 Circuit Board for your stepper motor control applications.