The Arduino Leonardo is a microcontroller board based on the ATmega32u4. It has 20 digital input/output pins (of which 7 can be used as PWM outputs and 12 as analog inputs), a 16 MHz crystal oscillator, a micro USB connection, a power jack, an ICSP header, and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started.
The CNC Shield v4 is made for the control of 3D printers, milling and engraving machines. This version of the shield has 1 motor driver less than its predecessor, but is more compact and has room for an Arduino Nano. This board has 3 sockets for the installation of stepper motor drivers such as the A4988. Only 2 channels per motor are required to control this motor. There is also a connection for 2 end-stop switches per motor.
The A4988 is a complete Microstepping Motor Driver with built-in translator for easy operation. The driver has a maximum output capacity of 35 V and ± 2 A. It can operate bipolar stepper motors in full-, half-, quarter-, eighth-, and sixteenth-step modes.