Thanks to visit codestin.com
Credit goes to github.com

Skip to content

catie-aq/mbed_motor-sensor-example

Repository files navigation

mbed_motor-sensor-example

An example of using the 6TRON Motor Sensor library with MbedOS, using a AS5047 magnetic sensor in SPI.

Requirements

Hardware requirements

The following boards are required:

  • Any MBED supported board
  • One AS5047 magnetic sensor with SPI support

Software requirements

mbed_motor-sensor-example makes use of the following libraries (automatically imported by mbed deploy or mbed import):

Usage

This repository use MbedOS as RTOS framework. While next steps describes how to use Mbed CLI 1 commands to setup the project, it is highly recommended that users read MbedOS official documentation.

To clone and deploy the project in one command, use mbed import and skip to the target and toolchain definition:

mbed import https://github.com/catie-aq/mbed_motor-sensor-example.git mbed_motor-sensor-example

Alternatively:

  • Clone to "mbed_motor-sensor-example" and enter it:

    git clone https://github.com/catie-aq/mbed_motor-sensor-example.git mbed_motor-sensor-example
    cd mbed_motor-sensor-example
  • Deploy software requirements with:

    mbed deploy
  • If necessary, eg using a 6TRON Zest Core, clone the custom target repository:

    git clone YOUR_CUSTOM_TARGET_REPOSITORY your-custom-target
  • ... and enable the custom target:

    • Linux:

      cp your-custom-target/custom_targets.json .
    • Windows:

      copy your-custom-target\custom_targets.json .

Define your target and toolchain:

mbed target YOUR_MBED_OS_TARGET
mbed toolchain GCC_ARM

Compile the project:

mbed compile

Program the target device with a Segger J-Link debug probe and sixtron_flash tool:

sixtron_flash

Debug on the target device with the probe and Segger Ozone software.

About

An example of using the 6TRON Motor Sensor library with MbedOS and a AS5047 magnetic sensor.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages