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 is a microstepping driver designed for controlling bipolar stepper motors. Manufactured by Custom, with the part ID A4988, this component enables precise control of motor position and speed. It features adjustable current control, over-temperature protection, and a straightforward interface, making it ideal for a wide range of applications.

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
  • CNC machines
  • Robotics
  • Automated systems requiring precise motor control

Technical Specifications

Key Technical Details

  • Operating Voltage (VDD): 3.3V to 5V
  • Motor Supply Voltage (VMOT): 8V to 35V
  • Output Current per Phase: Up to 2A (with sufficient cooling)
  • Microstepping Modes: Full, 1/2, 1/4, 1/8, and 1/16 steps
  • Logic Input Current: 1mA to 2mA
  • Over-Temperature Protection: Yes
  • Short-to-Ground and Shorted-Load Protection: Yes

Pin Configuration and Descriptions

The A4988 circuit board has 16 pins. Below is the pinout and description:

Pin Name Type Description
VMOT Power Input Motor power supply (8V to 35V). Connect to the motor's power source.
GND Power Ground Ground connection for motor power supply.
VDD Power Input Logic voltage supply (3.3V to 5V).
GND Power Ground Ground connection for logic voltage supply.
1A, 1B Output Outputs for motor coil 1.
2A, 2B Output Outputs for motor coil 2.
STEP Logic Input Controls the step signal for the motor.
DIR Logic Input Sets the motor's direction of rotation.
ENABLE Logic Input Enables or disables the motor driver (active low).
MS1, MS2, MS3 Logic Input Microstepping resolution selection pins.
RESET Logic Input Resets the driver (active low).
SLEEP Logic Input Puts the driver into low-power sleep mode (active low).
REF Analog Input Reference voltage for current control.
FAULT Logic Output Indicates fault conditions (e.g., over-temperature, short-circuit).

Microstepping Resolution Table

The microstepping resolution is determined by the MS1, MS2, and MS3 pins:

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 VMOT to the motor's power supply (8V to 35V) and GND to the power ground.
    • Connect VDD to the logic voltage supply (3.3V to 5V) and GND to the logic ground.
  2. Motor Connections:

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

    • Use the STEP pin to send pulses for each step. The DIR pin determines the direction of rotation.
    • Set the microstepping mode using the MS1, MS2, and MS3 pins.
  4. Current Adjustment:

    • Adjust the current limit using the potentiometer on the board. This prevents overheating and ensures optimal motor performance.
  5. Enable/Disable:

    • 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 heat sink or active cooling for high-current applications.
  • Current Limiting: Always set the current limit to match your motor's rated current to avoid damage.
  • Decoupling Capacitors: Place a 100µF capacitor across VMOT and GND to reduce voltage spikes.

Example: Connecting to an Arduino UNO

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

Circuit Diagram

  • Connect the A4988's STEP and DIR pins to Arduino digital pins 2 and 3, respectively.
  • Connect ENABLE to GND to enable the driver.
  • Connect VMOT and GND to the motor power supply.
  • Connect VDD and GND to the Arduino's 5V and GND pins.

Arduino Code

// Define pin connections
#define STEP_PIN 2  // Pin connected to A4988 STEP
#define DIR_PIN 3   // Pin connected to A4988 DIR

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 1ms
  digitalWrite(STEP_PIN, LOW);  // Set STEP pin LOW
  delayMicroseconds(1000);      // Wait 1ms
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Motor Not Moving:

    • Check the power supply connections (VMOT and VDD).
    • Verify the STEP and DIR signals from the microcontroller.
    • Ensure the motor coils are correctly connected to 1A, 1B, 2A, and 2B.
  2. Overheating:

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

    • Verify the microstepping mode settings (MS1, MS2, MS3).
    • Check for loose or incorrect wiring.
  4. Fault Pin Active:

    • Check for over-temperature or short-circuit conditions.
    • Reduce the current limit or improve cooling.

FAQs

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

  • Q: How do I calculate the current limit?
    A: Use the formula: Current Limit = VREF / (8 × RS), where RS is the sense resistor value (typically 0.1Ω).

  • Q: What happens if I exceed the current limit?
    A: The A4988 will enter over-current protection mode, and the motor may stop functioning until the issue is resolved.

By following this documentation, you can effectively integrate the A4988 into your projects for precise stepper motor control.