Skip to main content

Class Uln2003

This class is for controlling stepper motors that are controlled by a 4 pin controller board.

Assembly: Uln2003.dll
View Source
public class Uln2003 : IDisposable

Implements:
System.IDisposable

Properties

AngularVelocity

Sets the motor speed to revolutions per minute.

View Source
public AngularVelocity AngularVelocity { get; set; }

Mode

Sets the stepper's mode.

View Source
public Uln2003.StepperMode Mode { get; set; }

IsDisposed

Is the object disposed

View Source
public bool IsDisposed { get; }

Methods

Stop()

Stop the motor

View Source
public void Stop()

Step(int)

Moves the motor - If the number is negative, the motor moves in the reverse direction

View Source
public void Step(int steps)
Parameters
TypeNameDescription
System.Int32stepsNumber of steps

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

View Source
public void Dispose()

Dispose(bool)

Dispose of the object

View Source
protected virtual void Dispose(bool disposing)
Parameters
TypeNameDescription
System.BooleandisposingIs disposing

Implements

  • System.IDisposable