Comments (6)
I am connecting to OctoPi via WiFi through a router to a laptop running Windows 10. I am accessing OctoPi through Opera version 58.0.3135.65.
from octoprint-filament-scale.
I am seeing the same thing, and also occasional incorrect readings of 40x the actual value. It does not happen when I use the sensor with other libraries such as https://github.com/tatobari/hx711py
from octoprint-filament-scale.
Seems that the reason I don't get this with the other library is because it takes 5 readings and then takes an average. I would suggest instead taking 5 readings and discarding the one with the most deviation, and averaging the other four.
from octoprint-filament-scale.
I used to take average of 5 readings, but I switched to single readings to improve performance. Some older PIs are already running close to their limit on OctoPrint and taking all those readings every few seconds overwhelmed them.
When I get time I'll probably add it back as an option, since modern PIs don't have a problem with it.
from octoprint-filament-scale.
I would suggest instead taking 5 readings and discarding the one with the most deviation, and averaging the other four.
That is almost a median filter. A median filter is the best for throwing out outliers. You sort the five readings and report the middle value. They work great, much better than a mean filter for this type of application.
from octoprint-filament-scale.
Can you mark this as a feature request to use a median filter? It needs to be a median since it not only gives connect errors but also reports the giant number which would throw off any mean filter.
Of course finding the source of the connection error would also be nice. I have two setups that do the same thing.
from octoprint-filament-scale.
Related Issues (16)
- No weight reported NaN HOT 76
- Pass the value through API
- Plugin not getting a reading from the sensor HOT 6
- any chance update to python v3 HOT 8
- Python 3 version HOT 2
- PRs / Shared Maintenance / Fork HOT 4
- Feature-Request: ioBroker connection
- Possible Problem with Raspberry Pi 3 Model A+ HOT 1
- Plugin creates heavy systemload HOT 5
- Dual extruder printer HOT 5
- scale not working HOT 3
- filament jam detection HOT 11
- full-roll calibration HOT 1
- suggestions to fix bad readings? HOT 4
- Not-connected message too long
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 octoprint-filament-scale.