Comments (2)
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.
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)
- Add a way to test IO in the automated testsuite HOT 1
- [gparse] file descriptors aren't closed upon Com destruction
- Allow specifying a fan index in M106 (and M107)
- Implement M119: Get Endstop Status HOT 1
- Allow for differently shaped beds when clamping coordinates?
- Warn whenever two IoPins refer to the same physical pin
- Make an IoDrivers iterator to replace tupleCallOnAll & tupleCallOnIndex calls HOT 1
- IoPin should have a `pwmWrite()` method
- AxisStepper refactoring HOT 2
- Add support for returning comments in gcode responses
- AxisSteppers should not have to be initialized with their index
- Consider per-axis acceleration scheme
- IoDriver for L298N ? HOT 1
- raspberry pi 2 crashe after runing printipi HOT 12
- Cannot Connect To Printer Ussing octoPrint HOT 1
- extrideur, termistore and fan HOT 1
- disable termistore reading HOT 1
- Cannot run printipi in Raspberry pi 3 HOT 2
- I succeeded to be run printipi on rpi3,But I have got other problem. HOT 4
- CoreXY Supporting?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from printipi.