1.0.2 • Published 6 years ago
cosa-roboteq-sdc21xx v1.0.2
Roboteq SDC21XX Controllers
This is a wio package for Cosa that provides ability to control Roboteq SDC21XX Brushless DC motor controllers.
Usage
Datasheet can be found from this series of controllers at this link.
This package uses PWM signal to control the controller, so make sure you set the pin you are connecting to as a PWM pin. This can be done through Roboteq+ PC Utility.
Define a controller wlp::SDC21XX sdc(Board::PWM1)
. You have to provide it PWM
pin.
change speed using:
sdc.set_speed(0);
sdc.set_speed(37);
sdc.set_speed(100);
Install
wio install cosa-roboteq-sdc21xx