Giter VIP home page Giter VIP logo

tsn_bbb_ros's Introduction

tsn_bbb_ros

This repository was created to allow for the publishing in ROS Indigo of data from the popular InvenSense MPU-6050 6DOF IMU. Accessory requirements for our gait tracking application were two analog inputs for our IR ground proximity sensor and Piezoelectric sensor for secondary vibration detection, and a GPIO output to trigger high when IMU data is received to coordinate with VICON system we are using for verification.

People

Developed by Theodore Nowak

Purpose

This code was initially developed as a senior project at Case Western Reserve University to satisfy requirements for BSc. candidates Alex Haufler and Theodore Nowak.

Current Dependencies and Instructions

The repository will be continuously updated as needed. Please make sure your development system (and whatever robot you're trying to run our package on) has all of the dependencies listed below. Currently I have not written a setup file for this, but in the future I may. Manual steps are listed below.

  • Acquire Beaglebone Black!

  • Install Linux Arm OS via:

  • Install ROS Indigo via:

  • Ensure you are using Linux Arm Kernel 3.8.x. Install/Downgrade via:

    • sudo apt-get update
    • sudo apt-get install linux-image-3.8.13-bone68
    • sudo reboot
  • Install linux i2ctools via:

    • sudo apt-get update
    • sudo apt-get install i2ctools
  • Install Device Tree Compiler via:

  • Follow instructions to install your device tree overlay and create overlay via:

  • Modify uENV.txt in /boot/ via:

    • Example-> optargs=capemgr.enable_partno=BB-ADC,bspm_P9_11_f
    • "Note": you need BB-ADC enabled to use analog inputs
    • "Note": bspm_P9_11_f is was generated by my generated device tree overlay below
  • Edit const unsigned int = gpio # in tsn_mpu6050.h in accordance to the GPIO pin(s) you chose above

  • Change permissions of /sys/class/gpio/ folder via:

    • /sys/class/gpio$ sudo chmod -R DESIRED_PERMISSION
    • /sys/class/gpio/gpio#/$ sudo chmod -R DESIRED_PERMISSION.
  • Run code

  • Note:

    • Every time you power off the Beaglebone Black, you will have to re-do the permissions step of this process, and depending on your code, re-export your GPIO within the /sys/class/gpio/ directory

End Remarks

Each system is different so you may need to do some personal debugging. Figuring this out took me weeks to do. Hopefully this will help minimize your install time to days, if not hours, or minutes. Maybe if you invoke the base gods it might just work first time even! Cheers!

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.