Giter VIP home page Giter VIP logo

teststandv2's Introduction

Smart Turnigy Thrust Stand

Thrust, voltage, amperage, and RPM sensing designed to replace the internal electronics in the Turnigy Thrust stand. Check config.h for configuration options and documentation.

Requirements

This code is designed to work in the Energia IDE for the TI Launchpad series. Code is for the Stellaris Launchpad, but should also work fine on the Tiva C launchpad. It may also work for Arduino with a bit of reworking on the timer code, though I can't guarantee what the cycle time will be. Energia is available here: http://energia.nu/download/

This code is built around the HX711 breakout board from sparkfun: https://www.sparkfun.com/products/13230 The HX711 Library from ogde is also required and can be downloaded here: https://github.com/bogde/HX711 Even though this is an Arduino library, it doesn't use any low level code and is compatible out of the box with Energia and the Stellaris.

In addition the code uses the Average library during the braking test. However, in order for the averaging to be accurate, you must change the _sum variable type definition in the library to uint64_t to avoid overflows. The average library can be found here: http://playground.arduino.cc/Main/Average

Sample Rates

Currently the output update rate depends on your serial output rate. At 115200 baud, output update rate is ~2.5ms, at 230400 ~2ms, and at 460800 and greater ~1us. Default looptimes can be over-ridden via config.h to decrease data density. RPMs are triggered on an interrupt and are updated asynchronously from the loop and output rate. Voltage (analog in), Amperage (analog in) and Thrust (load cell amp) are measured via a timer at a configurable rate. The load cell amp refreshes at 80hz, but reads are done asynchrnously to the loop. Analog reads are done via the Stellaris internal interrupts, are asynchrnous to the loop, and have hardware oversampling configured via a define. The timer only needs to be run slightly faster than the fastest read delay. The internal analog reads update around 250hz with 64x oversampling. For all the data, the output rate stays constant and new information is simply updated as it comes in, allowing for flexible resolution, and no need to wait on the slower reading inputs during the output stage. With a suitibly fast output loop, this should mean that the data in the output is always the freshest available.

Credits

Thanks to zdayton at Davis RotorCross for the initial schematic and code: http://www.davisrotorcross.org/2015/09/09/adding-data-logging-to-the-turnigy-thrust-test-stand/

teststandv2's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

akcom darkclaude

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.