Code Monkey home page Code Monkey logo

casu-pic's People

Contributors

marselap avatar kgrip avatar thaus-88 avatar dmiklic avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar Pedro Mariano avatar  avatar  avatar  avatar Damir Mirkovic avatar

Forkers

spezs1

casu-pic's Issues

SPI2 clock frequency

Reading of the temperature sensors fails if the SPI2 clock is set to a value higher than 1.25 MHz. This value is ok for reading temp sensors, but for reading an accelerometer, which is on the same bus, it is recommended to use clock frequency at least 2 MHz (for accelerometer sample rate > 1.6 KHz). The solution is to change the SPI2 clock frequency depending on whether the temp sensors or accelerometer is read.

Reorganize code

Files interrupts.h/c which we should use to implement all interrupt routines. Definitions for interrupt priorities have already been added. Eventually, this change should make code more readable.

Align FFT with vibration reference

Instead of (only) triggering FFT with a 1s timer, it should (also) be triggered with a new vibration reference. This is intended for vibration pattern accuracy analysis, but the regular 1s functionality should still be available for constant vibration references.

The code should then be running as follows: do the fft with 1Hz frequency. If a new setpoint arrives or a timer counts 1s, start new data aquisition. In case of setpoint-triggered fft, discard and cancel the ongoing process if existing/neccessary. Start the timer in both cases.

Temperature sensors fault detection

Add a routine to detect faulty temperature sensors. Currently, this is done only during the initialization, but it should be done after each reading.

DMA triggering

Add external interrupt as a trigger source of the DMA responsible for sending data to/from SPI2.

Tag a release

@kgrip @marselap is this the code currently deployed on the CASUs. If so, we should tag a release. If not, we should push the current version and then tag a release.

Add project for Win

configurations.xml different for linux/win. We should keep both versions.

Fix overheating bug in PIC idle mode

It has happened that idle CASUs (no BBG connection over I2C) would overheat (even above 40C). Working theory is that the PWM contrlling the Peltier heater was left active by mistake. Implement additional safety features in the firmware.

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.