Giter Site home page Giter Site logo

Comments (6)

pandaabe101 avatar pandaabe101 commented on September 4, 2024

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.

ali1234 avatar ali1234 commented on September 4, 2024

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.

ali1234 avatar ali1234 commented on September 4, 2024

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.

dieki-n avatar dieki-n commented on September 4, 2024

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.

mark-hahn avatar mark-hahn commented on September 4, 2024

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.

mark-hahn avatar mark-hahn commented on September 4, 2024

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)

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.