VOOZH about

URL: https://www.nuget.org/packages/nanoFramework.Iot.Device.A4988/

⇱ NuGet Gallery | nanoFramework.Iot.Device.A4988 1.1.952




👁 Image
nanoFramework.Iot.Device.A4988 1.1.952

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package nanoFramework.Iot.Device.A4988 --version 1.1.952
 
 
NuGet\Install-Package nanoFramework.Iot.Device.A4988 -Version 1.1.952
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="nanoFramework.Iot.Device.A4988" Version="1.1.952" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nanoFramework.Iot.Device.A4988" Version="1.1.952" />
 
Directory.Packages.props
<PackageReference Include="nanoFramework.Iot.Device.A4988" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add nanoFramework.Iot.Device.A4988 --version 1.1.952
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: nanoFramework.Iot.Device.A4988, 1.1.952"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package nanoFramework.Iot.Device.A4988@1.1.952
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=nanoFramework.Iot.Device.A4988&version=1.1.952
 
Install as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.A4988&version=1.1.952
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

4-Wire stepper motor & A4988 driver board

A stepper motor is an electromechanical device which converts electrical pulses into discrete mechanical movements. The shaft or spindle of a stepper motor rotates in discrete step increments when electrical command pulses are applied to it in the proper sequence. The motors rotation has several direct relationships to these applied input pulses. The sequence of the applied pulses is directly related to the direction of motor shafts rotation. The speed of the motor shafts rotation is directly related to the frequency of the input pulses and the length of rotation is directly related to the number of input pulses applied. One of the most significant advantages of a stepper motor is its ability to be accurately controlled in an open loop system. Open loop control means no feedback information about position is needed. This type of control eliminates the need for expensive sensing and feedback devices such as optical encoders. Your position is known simply by keeping track of the input step pulses.

Documentation

You can find the A4988 documentation here.

Connections

VDD - connect to 3-5.5V (driver supply voltage)

VMOT - connect to 8-35V (motor supply voltage)

GND - connect to GND

1A, 1B, 2A, 2B - connect to the 4 coils of motor

DIR - connect to microcontroller pin

STEP - connect to microcontroller pin

Usage

using Iot.Device.A4988;
using System;

// Pinout for MCU please adapt depending on your MCU
// Any regular GPIO will work
const byte stepPin = 10;
const byte dirPin = 11;
const Microsteps microsteps = Microsteps.FullStep;
const ushort fullStepsPerRotation = 200;
TimeSpan sleepTime = TimeSpan.Zero;
using (var motor = new A4988(stepPin, dirPin, microsteps, fullStepsPerRotation, sleepTime))
{
 var direction = true;
 while (true)
 {
 var rotationDegree = (direction ? 1 : -1) * 360;
 motor.Rotate(UnitsNet.Angle.FromDegrees(rotationDegree));
 direction = !direction;
 System.Threading.Thread.Sleep(1000);
 }
}
Product Versions Compatible and additional computed target framework versions.
.NET Framework net net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0-preview.85 50 6/1/2026
2.0.0-preview.80 51 5/27/2026
2.0.0-preview.73 62 5/20/2026
2.0.0-preview.69 54 5/18/2026
2.0.0-preview.62 57 5/13/2026
2.0.0-preview.49 51 5/4/2026
2.0.0-preview.45 66 4/29/2026
2.0.0-preview.32 60 4/20/2026
2.0.0-preview.16 68 3/10/2026
1.1.952 132 3/4/2026
1.1.931 311 11/10/2025
1.1.907 252 10/2/2025
1.1.889 236 7/28/2025
1.1.869 340 4/2/2025
1.1.864 292 4/2/2025
1.1.852 338 3/11/2025
1.1.846 316 3/10/2025
1.1.822 246 2/26/2025
1.1.775 259 2/4/2025
1.1.772 264 2/4/2025
Loading failed