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
Declaration
public class Uln2003 : IDisposable

Implements:
System.IDisposable

Properties

AngularVelocity

Sets the motor speed to revolutions per minute.

View Source
Declaration
public AngularVelocity AngularVelocity { get; set; }

Mode

Sets the stepper's mode.

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

IsDisposed

Is the object disposed

View Source
Declaration
public bool IsDisposed { get; }

Methods

Stop()

Stop the motor

View Source
Declaration
public void Stop()

Step(int)

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

View Source
Declaration
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
Declaration
public void Dispose()

Dispose(bool)

Dispose of the object

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

Implements

  • System.IDisposable