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

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

Image of A4988 Circuit Board
Cirkit Designer LogoDesign 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!
RFID-Activated Traffic Light Controller with Auditory Feedback Using Arduino Mega
Image of test: A project utilizing A4988 Circuit Board in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Mega 2560-Controlled Stepper Motors with RFID Access and Traffic Light Indication
Image of Copy of test: A project utilizing A4988 Circuit Board in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
A4988 Stepper Motor Driver Controlled Bipolar Stepper Motor
Image of idk: A project utilizing A4988 Circuit Board in a practical application
This circuit is designed to control a bipolar stepper motor using an A4988 stepper motor driver. The driver interfaces with the motor by connecting its output pins to the motor's coils, allowing precise control of the motor's movement.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino-Controlled Dual Stepper Motor Driver with Boost Converter and User Input
Image of OpenClino: A project utilizing A4988 Circuit Board in a practical application
This is a dual stepper motor control circuit using an Arduino Nano to drive two A4988 stepper motor drivers. It includes a boost converter for voltage regulation, an electrolytic capacitor for stability, and an arcade button for user interaction.
Cirkit Designer LogoOpen Project in Cirkit Designer

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 test: 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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Copy of test: 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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of idk: A project utilizing A4988 Circuit Board in a practical application
A4988 Stepper Motor Driver Controlled Bipolar Stepper Motor
This circuit is designed to control a bipolar stepper motor using an A4988 stepper motor driver. The driver interfaces with the motor by connecting its output pins to the motor's coils, allowing precise control of the motor's movement.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of OpenClino: A project utilizing A4988 Circuit Board in a practical application
Arduino-Controlled Dual Stepper Motor Driver with Boost Converter and User Input
This is a dual stepper motor control circuit using an Arduino Nano to drive two A4988 stepper motor drivers. It includes a boost converter for voltage regulation, an electrolytic capacitor for stability, and an arcade button for user interaction.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications:

  • 3D printers for precise layer deposition
  • CNC machines for accurate tool positioning
  • Robotics for controlled motion
  • Automated systems requiring stepper motor control

Technical Specifications

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

Key Technical Details:

  • Input Voltage (VMOT): 8V to 35V
  • Logic Voltage (VDD): 3.3V or 5V
  • Maximum Output Current: 2A per coil (with sufficient cooling)
  • Microstepping Modes: Full, 1/2, 1/4, 1/8, and 1/16 steps
  • Current Control: Adjustable via onboard potentiometer
  • Thermal Shutdown: Built-in over-temperature protection
  • Dimensions: 20mm x 15mm (approx.)

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:

  • Heat Dissipation: The A4988 can get hot during operation. Use a heatsink or active cooling for high-current applications.
  • Current Limiting: Always set the current limit to match your stepper motor's rated current to avoid damage.
  • Decoupling Capacitors: Place a 100µF capacitor across VMOT and GND to reduce voltage spikes.

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:

  • Adjust the delay in delayMicroseconds() to control the motor speed.
  • Use the DIR_PIN to change the motor's rotation direction.

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:

  • Q: Can I use the A4988 with a unipolar stepper motor?
    A: No, the A4988 is designed for bipolar stepper motors only.

  • Q: What happens if I exceed the current limit?
    A: The driver may overheat and shut down due to thermal protection. Always set the current limit appropriately.

  • Q: Can I control multiple stepper motors with one A4988?
    A: No, each A4988 can control only one bipolar stepper motor.

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