Introduction
This assignment uses an Allegro MicroSystems A4988 microstepping driver to control a stepper motor.
Module
Pin Assignment
| Port | A4988 | mikroBUS | A4988 | Port |
| PD4 | Enable | AN | PWM | Step | PD0 |
| PD3 | Reset | RST | INT | Dir | PD1 |
| PD2 | Sleep | CS | TX | - | - |
| - | - | SCK | RX | - | - |
| - | - | MISO | SCL | - | - |
| - | - | MOSI | SDA | - | - |
| J4P10 | VDD | +3.3V | +5V | - | - |
| J4P9 | GND | GND | GND | GND | J4P9 |
| Terminal | Supply | Motor | Line |
| 2B | - | D | Blue |
| 2A | - | B | Red |
| 1A | - | A | Black |
| 1B | - | C | Green |
| VIN | 9 V | - | - |
| GND | GND | - | - |
Movie
Documents
Files
Solution
Skills
| Skill | | Acquisition |
| 1.1 | Implementing hardware | x |
| 2.1 | Creating a software project | x |
| 2.2 | Using peripheral components | x |
| 2.3 | Implementing interrupts | - |
| 2.4 | Using a communication protocol | x |