Click or drag to resize

Output Constructor

H-Bridge DC motor driver output object constructor.

Namespace: IO.Objects.LPC1114IOP.Motor
Assembly: libsimpleio (in libsimpleio.dll) Version: 2.2026.331.1
Syntax
C#
public Output(
	pin_id_t dirpin,
	pin_id_t pwmpin,
	double velocity = 0
)

Parameters

dirpin  pin_id_t
Direction GPIO output pin number.
pwmpin  pin_id_t
Speed PWM output pin number.
velocity  Double  (Optional)
Normalized motor velocity (-1.0 to +1.0).
Remarks

All PWM outputs share the same pulse frequency.

You must set the common PWM output pulse frequency (i.e.IO.Objects.LPC1114IOP.PWM.Output.frequency = 1000;) before configuring an H-Bridge DC motor driver output.

Certain motor driver modules such as the Cytron MD13s can driven by direction and speed signals. Most will require some form of motor driver signal transcoding such as the MUNTS-0005 PWM Isolator/Encoder module.

See Also