Code Monkey home page Code Monkey logo

filameter's Introduction

Welcome to Filameter!

Filameter is a python program that runs on the raspberry pi to measure the diameter of filement. This can be used to measure filament that goes into a 3d printer, or filament that comes out of a filament extruder. This is just one of the ways to measure filament and i created this project to see if it was possible to do with a camera. The program is made to work with a small touchscreen but can also be used with a mouse.

Filameter image

(a picture of the program running on a raspberry pi)

Software

Filament view

Filameter image

When recording or processing an image the result will be shown on the top left of the screen like the image above. With this you will be able to see what the program sees as filament. This also helps you to see if the filament gets out of frame, out of focus or if the threshold value is wrong.

Graph

Filameter image

The graph can quickly show you how consistent the filament is over a single capture or recording. The graph adjusts itself so that all the lines will always be visible.

Note: Graph only works when there is more than one measurement per capture or when recording.

Filament info

Filameter image

The filament info shows information of a single capture.

Note: Tolerance only works when there is more than one measurement per capture.

Record

Recording will keep track of the diameter of the filament until the recording is stopped by the user. A capture will be made every x amount of seconds and will be shown on the graph and also saved. When a recording is stopped a json file will be made with the recording info. In this json file you will find the following information:

  • Average diameter over the entire recording
  • max measured diameter
  • min measured diameter
  • average of multiple measurements

Single actions

Filameter image

With single actions you can calibrate your settings, focus your camera and other preperations.

Settings

Filameter image

In settings you can adjust the following settings:
  • number of measurements
  • threshold
  • border offset
  • pixels per mm
  • image processing type (opencv or filameter's own way)
  • camera capture width
  • capera capture height

If you want to adjust one of the settings you can simply click on the setting and it will appear light blue. Then on the control pad you can adjust the value. Select the amount you want that setting to change and then with the + or - you can either subtract or add that value to the setting.

Filameter image

Hardware

For this program you need the following hardware:

  • Raspberry pi
  • hq camera sensor for the raspberry pi
  • microscope lens
  • small led strip
  • (optional) touchscreen

As a housing feel free to use whatever you want!

I made a funny housing with my 3d printer as an example:

Filameter image

Filameter image

filameter's People

Contributors

merijndewit avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.