IOTMotorDrivers 1.0.0-Pre
This is a prerelease version of IOTMotorDrivers.
Install-Package IOTMotorDrivers -Version 1.0.0-Pre
dotnet add package IOTMotorDrivers --version 1.0.0-Pre
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: IOTMotorDrivers, 1.0.0-Pre"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions |
---|---|
Universal Windows Platform | uap uap10.0 |
Compatible target framework(s)
Additional computed target framework(s)
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 | 778 | 1/5/2018 |