GithubHelp home page GithubHelp logo

topquark12 / cybathlonsensornode Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 9.21 MB

firmware for HKUST Cybathlon sensor node (IMU and magnetic encoder)

C 95.97% Assembly 3.81% C++ 0.20% Objective-C 0.01% Makefile 0.01%

cybathlonsensornode's Introduction

IMU and magnetic encoder sensor node

This repositry stores PCB files and firmware for HKUST Cybathlon sensor node.
Repositry created and maintained by Alex Wong.

Hardware

Function

Each sensor node is intended to contain either a ICM-20602 IMU or MA730 magnetic rotary encoder. It is also possible for one node to contain both sensors.
The sensor nodes are designed to be mounted on various points on the exoskeleton to sense limb attitude or joint angle.

Communication

Sensor nodes communicate through a 1Mbaud CAN bus network, each node broadcasts sensor readings to the network.
All sensor nodes should be daisy-chained with JST GH 8-pin cables for power and data.
Termination connectors must be connected to both ends of the daisy chain to ensure signal integrity.
Data from all the sensors can be read out at any one of the sensor nodes, through the on-board USB-C port and USB to serial converter.
It is also possible for sensor nodes to log sensor or CAN bus data to the on-board SD-card slot.

Power

Sensor nodes can either be powered through the two JST GH 8-pin connectors or through the USB type-C connector.
Nominal voltage input range: 4.5v to 6v.
All sensor nodes are protected from over voltage and reversed voltage, surviving from -64v to 64v (limited by testing method).
Each sensor node is rated at 200mA in normal operation, and will draw at most 350mA at short circuit.

Software

Dependencies

Build tool: GNU Make
Tool Chain: arm-gcc-none-eabi
HAL: STM32Cube (files included in repositry)
Middlewares: freeRTOS, fatfs (files included in repositry)

Flashing and debugging

There are multiple options for flashing firmware and optionally debug the board.

  1. On-board 1.27mm 2x5-pin SWD debug port (with SWO)
    ARM debug probes (e.g. STLink, J-link, uLink etc.) can be connected to this port fo program and debug the on-board MCU. Segger J-Link and Segger Ozone is recommended.

  2. On-board USB type-C port and USB to serial converter
    The USB to serial chip is connected to the USART1 port of the STM32F405RG MCU, allowing the MCU to be programmed through the USB port without additional hardware. To use this feature, set the on-board BOOT0 switch to 1, before pressing the reset button. Use software tools like the FLASHER-STM32 to flash binaries into the MCU. After flashing, set the on-board BOOT0 switch to 0, then reset the MCU and the new code will run. This method does not provide debugging capabilities.

cybathlonsensornode's People

Contributors

topquark12 avatar elviskftsang avatar

Stargazers

FU Zhengyu avatar

Watchers

James Cloos avatar FU Zhengyu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.