Coder Social home page Coder Social logo

Comments (2)

Wallacoloo avatar Wallacoloo commented on July 28, 2024

After discussing this with M.S., this appears to be a non-trivial problem. It may be sufficient to just maintain the last N samples and average them. Could do a Riemman sum of the last N samples & divide by total time.

from printipi.

matthewSorensen avatar matthewSorensen commented on July 28, 2024

To elaborate on my "non-trivial" remarks - there is quite a bit of literature on the topic, under search terms such as "jitter margin." This is an area of active research, with quite a few proposed solutions that might be appropriate. The good news is that we have the spare cycles and memory to implement something...

The bad news is that sample timing (and control loop) jitter is a much more pernicious issue - it not only means that the low pass filter's actual time-based frequency response keeps jumping around, but actually directly injects noise (assuming a constantly changing process variable) into the control loop and generally threatens stability.

Besides implementing a general-purpose jitter compensator, I suspect the proper engineering solution is to attack the problem in hardware and use a better ADC system. Other target boards (e.g. the beagle bone black) could use on-board ADCs, a cheap micro-controller could run the temperature control loops (and watchdogs - #17 ), or an external SPI-interfaced ADC (or thermocouple amplifier) could be added to the system. This should offer higher sample rates (and thus more effective filtering) and more precision.

But a simple ring-buffer + running Riemman sum is, of course, easiest to implement.

(also, 1/4 Hz is probably not enough control bandwidth for a properly powered hotend)

from printipi.

Related Issues (20)

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.