nanoFramework.Iot.Device.Uln2003 1.2.864

Prefix Reserved
dotnet add package nanoFramework.Iot.Device.Uln2003 --version 1.2.864
                    
NuGet\Install-Package nanoFramework.Iot.Device.Uln2003 -Version 1.2.864
                    
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.Uln2003" Version="1.2.864" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nanoFramework.Iot.Device.Uln2003" Version="1.2.864" />
                    
Directory.Packages.props
<PackageReference Include="nanoFramework.Iot.Device.Uln2003" />
                    
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.Uln2003 --version 1.2.864
                    
#r "nuget: nanoFramework.Iot.Device.Uln2003, 1.2.864"
                    
#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.Uln2003@1.2.864
                    
#: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.Uln2003&version=1.2.864
                    
Install as a Cake Addin
#tool nuget:?package=nanoFramework.Iot.Device.Uln2003&version=1.2.864
                    
Install as a Cake Tool

28BYJ-48 Stepper Motor 5V 4-Phase 5-Wire & ULN2003 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

The 28BYJ-48 is a small stepper motor suitable for a large range of applications. More information here

[Stepper Motor 28BYJ-48]: http://www.geeetech.com/Documents/Stepper%20motor%20datasheet.pdf

[ULN2003]: http://www.geeetech.com/Documents/ULN2003%20datasheet.pdf

Board

Uln2003

On schematics ULN2003APG driver is being used. You can use external power (9V as on scheme above) or just 5V Rapberry Pi PIN instead (Physical pin 2,4).

Usage

// Pinout for MCU please adapt depending on your MCU
// Any regular GPIO will work
const int bluePin = 4;
const int pinkPin = 17;
const int yellowPin = 27;
const int orangePin = 22;

using (Uln2003 motor = new Uln2003(bluePin, pinkPin, yellowPin, orangePin))
{
  while (true)
  {
    // Set the motor speed to 15 revolutions per minute.
    motor.RPM = 15;
    // Set the motor mode.  
    motor.Mode = StepperMode.HalfStep;
    // The motor rotate 2048 steps clockwise (180 degrees for HalfStep mode).
    motor.Step(2048);

    motor.Mode = StepperMode.FullStepDualPhase;
    motor.RPM = 8;
    // The motor rotate 2048 steps counterclockwise (360 degrees for FullStepDualPhase mode).
    motor.Step(-2048);

    motor.Mode = StepperMode.HalfStep;
    motor.RPM = 1;
    motor.Step(4096);
  }
}
Product Compatible and additional computed target framework versions.
.NET Framework 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
1.2.864 203 4/2/2025
1.2.852 200 3/11/2025
1.2.822 140 2/26/2025
1.2.775 142 2/4/2025
1.2.772 132 2/4/2025
1.2.755 130 1/31/2025
1.2.737 135 1/13/2025
1.2.696 135 12/16/2024
1.2.673 145 10/23/2024
1.2.662 135 10/11/2024
1.2.631 143 8/28/2024
1.2.590 150 7/17/2024
1.2.570 148 6/14/2024
1.2.560 159 5/29/2024
1.2.548 146 5/15/2024
1.2.436 285 11/10/2023
1.2.416 142 11/8/2023
1.2.329 210 5/26/2023
1.2.313 189 5/12/2023
1.2.297 192 5/3/2023
1.2.208 369 1/3/2023
1.2.203 353 12/28/2022
1.2.159 407 11/14/2022
1.2.153 411 11/5/2022
1.2.141 426 10/25/2022
1.2.128 438 10/22/2022
1.2.122 480 10/12/2022
1.2.114 454 10/8/2022
1.2.95 483 9/22/2022
1.2.87 516 9/15/2022
1.2.73 447 9/8/2022
1.1.116.8772 499 6/24/2022
1.1.113.2032 507 6/23/2022
1.1.58.10097 532 5/23/2022
1.1.7 524 4/18/2022
1.1.1 506 4/14/2022
1.0.277-preview.125 181 3/25/2022
1.0.277-preview.111 178 3/18/2022
1.0.277-preview.106 182 3/15/2022
1.0.277-preview.99 182 3/10/2022
1.0.277-preview.60 194 2/4/2022
1.0.277-preview.53 190 1/31/2022
1.0.277-preview.32 191 1/27/2022
1.0.277-preview.15 189 1/21/2022
1.0.277-preview.1 200 1/11/2022
1.0.259 386 12/9/2021
1.0.218 262 10/18/2021
1.0.207 424 10/11/2021
1.0.155 401 8/31/2021
1.0.147 223 7/22/2021
1.0.144 252 7/21/2021
1.0.63 250 5/26/2021