Coder Social home page Coder Social logo

shiro-nek0 / hivetrackerfw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hivetracker/firmware

0.0 0.0 0.0 228 KB

nRF52 code: handles LightHouse pulse signals measured with TS4231 + IMU

Home Page: https://hivetracker.github.io

C++ 41.41% Python 3.13% C 53.70% Makefile 1.75%

hivetrackerfw's Introduction

Firmware

This project is about a miniaturization of the Vive Tracker by HTC. It allows sub-millimetric 3d positioning, and embeds a 9DoF IMU with sensor fusion. This project is open source, all the materials can be found online:

https://hivetracker.github.io

This repository contains the Arduino code to program it, more explanations to use it are below:

Install

The processor used in this project is not Arduino compatible by default but the following steps explain how to do it anyway.

  1. Download the Arduino IDE:

https://www.arduino.cc/en/Main/Software

  1. Install the nRF52 support - read carefully these instructions (no need to follow the "From git" instructions):

https://github.com/sandeepmistry/arduino-nRF5#installing

  1. Install the BLE peripheral library with these instructions:

https://github.com/sandeepmistry/arduino-BLEPeripheral/#using-the-arduino-ide-library-manager

Compile

In the "Tools" menu select:

  • "Board->Generic nRF52"
  • "Softdevice->S132" (select "None" if you don't use BLE)
  • The rest depends on your personal configuration.

If you prefer command line, you can also do:

make compile

Program

Probes

This board doesn't come with a programmer for now but several cheap solutions exist:

  1. Adafruit sells J-Link and ST-Link probes:

https://www.adafruit.com/product/3571

https://www.adafruit.com/product/2548

  1. For those with limited budget, these alternatives work too:

https://www.aliexpress.com/item/1PCS-ST-LINK-Stlink-ST-Link-V2-Mini-STM8-STM32-Simulator-Download-Programmer-Programming-With-Cover/32839270086.html

https://www.aliexpress.com/item/1PCS-Jlink-for-SWD-Jlink-3-Wire-for-STM32-on-SWD-Debug-New/32746364818.html

  1. But if you already have a Teensy or a 3.3V Arduino compatible board with ATmega32U4 (such as this one), you can build your own programmer thanks to this repository:

https://github.com/myelin/arduino-cmsis-dap

Setup

The above Install section should be enough in most cases but you might need to install udev rule on linux:

https://raw.githubusercontent.com/arduino/OpenOCD/master/contrib/60-openocd.rules

Finally, in the "Tools" menu select the right SWD probe:

  • "Programmer->J-Link"
  • "Programmer->ST-Link"

Upload

In the Arduino IDE it's the same as usual...

...and if you prefer command line, you can also do:

make # upload is by default

Licence

GNU General Public License version 3

Enjoy!

hivetrackerfw's People

Contributors

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