ArduinoMotorCarrier

Signal Input/Output

Allows use of the Arduino Motor Carrier
(Nano and MKR version)

Go to repository

Compatibility

This library is compatible with the samd, mbed_portenta architectures so you should be able to use it on the following Arduino boards:

Compatibility Note

Note: while the library is supposed to compile correctly on these architectures, it might require specific hardware features that may be available only on some boards.

Releases

To use this library, open the Library Manager in the Arduino IDE and install it from there.

Usage

This library allows you to use both the Arduino Nano Motor Carrier and the MKR Motor Carrier. The carrier supports inputs for servo motors, dc motors, and encoders, and can read the battery voltage level. This library, therefore, has functions and creates objects to support such hardware. In addition, the library supports PID control for position and velocity. Note that not all hardware features are supported in both carriers so take a look at the specifications for each board. You don’t need to initiate any objects manually, they are automatically created when you include “ArduinoMotorCarrier.h”

To use this library:

#include <ArduinoMotorCarrier.h>

Circuit

Connect the carrier to the main compatible board (MKR1010 or Nano 33 IoT), connect the LiPo battery, turn the switch on and connect the board to the computer using a micro USB cable. You can also connect the motors that you need for your project (servo or DC w/ or w/o encoders).

Examples

  • Battery Read: Reading the battery level with the MKR Motor Carrier.

Methods