/libhal-rmd

RMD-X driver using libhal

Primary LanguageC++Apache License 2.0Apache-2.0

libhal-rmd

✅ Checks Coverage Codacy Badge GitHub stars GitHub forks GitHub issues

libhal device library for the series of the RMD smart motors from MyActuator.

📚 Software APIs & Usage

To learn about the available drivers and APIs see the Doxygen documentation page or look at the include/libhal-rmd directory.

To see how each driver is used see the demos/ directory.

🧰 Setup

Following the 🚀 Getting Started instructions.

📡 Installing Profiles

The libhal-lpc40 profiles used for demos. To install them use the following commands.

conan config install -sf conan/profiles/ -tf profiles https://github.com/libhal/libhal-armcortex.git
conan config install -sf conan/profiles/ -tf profiles https://github.com/libhal/libhal-lpc40.git

🏗️ Building Demos

To build demos, start at the root of the repo and execute the following command:

conan build demos -pr lpc4078 -s build_type=Debug

or for the lpc4074

conan build demos -pr lpc4074 -s build_type=Debug

🔌 Device Wiring & Hookup guide (CAN BUS)

  1. Locate the CANTD (CAN Transmit Data) and CANRD (Can Receive Data) pins on your microcontroller port.
  2. Connect CANTD and CANRD lines to a CAN transceiver.
  3. Connect CAN transceiver's CANL and CANH lines and connect them to an motor's CANL and CANH lines.
  4. Supply adequate power to the CAN transceiver and the smart motor.

📦 Adding libhal-rmd to your project

Add the following to your requirements() method:

    def requirements(self):
        self.requires("libhal-rmd/[^2.0.0]")

Contributing

See CONTRIBUTING.md for details.

License

Apache 2.0; see LICENSE for details.

Disclaimer

This project is not an official Google project. It is not supported by Google and Google specifically disclaims all warranties as to its quality, merchantability, or fitness for a particular purpose.