IOTMotorDrivers 1.0.0-Pre

This is a prerelease version of IOTMotorDrivers.
dotnet add package IOTMotorDrivers --version 1.0.0-Pre
NuGet\Install-Package IOTMotorDrivers -Version 1.0.0-Pre
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="IOTMotorDrivers" Version="1.0.0-Pre" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IOTMotorDrivers --version 1.0.0-Pre
#r "nuget: IOTMotorDrivers, 1.0.0-Pre"
#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.
// Install IOTMotorDrivers as a Cake Addin
#addin nuget:?package=IOTMotorDrivers&version=1.0.0-Pre&prerelease

// Install IOTMotorDrivers as a Cake Tool
#tool nuget:?package=IOTMotorDrivers&version=1.0.0-Pre&prerelease

WindowsIOTMotorDrivers

Windows IOT motor drivers and demo for PCA9695, ULN2003 and L298N chipsets controlling Servo, Stepper and DC motors respectively.

More info on this project can be found in https://www.hackster.io/vivek306/windows-iot-stepper-servo-and-dc-motors-66c0c8

Please note all these libraries requires the Platform to be in "ARM->Remote device" to Debug (I will make it work with all platforms eventually)

// DC Motor Pins 
private const int PCA9685_DC1_Pin = 15, DCInputAPin = 17, DCInputBPin = 27; 
private const int PCA9685_DC2_Pin = 14, DCInputCPin = 23, DCInputDPin = 24; 
// Driver for PCA9685 
pwmDriver = new PCA9685(); 
pwmDriver.SetDesiredFrequency(60); 
// Driver for L298N 
dcMotorDriver = new L298N(new L298NMotors 
{ 
    ENPin = PCA9685_DC1_Pin, 
    INAPin = DCInputAPin, 
    INBPin = DCInputBPin 
}, new L298NMotors 
{ 
    ENPin = PCA9685_DC2_Pin, 
    INAPin = DCInputCPin, 
    INBPin = DCInputDPin 
}, pwmDriver); 
// Start and control Motor 1
dcMotorDriver.Start(motorSelection: L298NMotorSelection.Motor1, speedPercent1: 0.2, isClockwise1: true); 
// Start both Motor 1 and 2 parallely
// dcMotorDriver.Start(motorSelection: L298NMotorSelection.All, speedPercent1: 0.2, isClockwise1: true, speedPercent2: 0.2, isClockwise2: true);
// Wait for 2 seconds
await Task.Delay(2000);          
// To stop the Stepper Motor
stepMotorDriver.Stop();
Product Compatible and additional computed target framework versions.
Universal Windows Platform uap was computed.  uap10.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.0.0-Pre 925 1/5/2018