Coder Social home page Coder Social logo

maswangy / chibios-mems-usb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qbicz/chibios-mems-usb

0.0 2.0 0.0 487 KB

real-time plotting of accelerometer data acquired by STM32F4 microcontroller set up as an USB endpoint

License: Apache License 2.0

Makefile 8.34% Objective-C 20.53% C++ 15.25% C 49.05% Python 6.83%

chibios-mems-usb's Introduction

ChibiOS-mems-usb project

In this repository you can find code for STM32F4 which communicates with onboard MEMS accelerometer LIS302DL (on Discovery board) and sends values over USB bulk endpoint.

The data is plotted on PC in real-time, as the data appears on the USB bus.

alt tag

Quick start for Windows

  1. Clone project
  2. Grab your STM32F4-Discovery and flash it with bin/STM32/ch.elf
  3. Download https://sourceforge.net/projects/libusb-win32/ and use its inf-wizard.exe to install a driver for the MCU
  4. Run 'python/usbReader.exe' to watch the live plots! [To be prepared]

ChibiOS

STM32 runs elegant and simple RTOS, ChibiOS/RT (http://www.chibios.org/dokuwiki/doku.php?id=chibios๐Ÿ“–start). ChibiOS project also provides HAL and drivers for all major hardware interfaces.

Live Plot

In /pyusb directory a class for plotting the data gathered from USB is supplied. It depends on python3, pyUSB (https://github.com/walac/pyusb) and matplotlib (http://matplotlib.org).

Debugging

USB bus activity was sniffed and debugged using USBlyzer 2.0. (http://www.usblyzer.com/)

Data flow

MEMS accelerometer --(SPI)--> STM32F4 --(USB FS)--> PC --> plot

chibios-mems-usb's People

Contributors

qbicz avatar

Watchers

 avatar  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.