Skip to main content

Swell-resistant epoxy mix calculator

Project description

On-the-sea epoxy calculator

I have ordered epoxy from https://hp-textiles.com, so there are two components that should be mixed by mass. If having a super-exact scale, stable hands, stable working position and presuming it's possible to pour very exact quantities of components from the canisters then it's super-easy mixing very exact quantities of components.

Now in reality the scale has a 1g resolution rather than the 0.1g it ought to have when mixing small quantities of epoxy, but worse still, you're on a boat, there are waves, and the scale keeps jumping from -2g to 22g when you've attempted adding 10g of base into a jar. One adds first base and then hardener, but then one overshoots and have to add more base.

The problems

This small program attempts to solve three problems:

  • The scale showing different numbers each time one looks at it due to waves. The program will take a series of readings, chop away the extremes and take the average of the remaining numbers. It probably won't be perfect as the scale probably doesn't move linearly, but it's the best I can propose. (Use a heavy tara, i.e. a glass jar rather than a plastic box, and probably the linear presumption won't be too far off).
  • The calculation problem. It's easy enough to do the math in the head if adding 100g of base and then 60g of hardener. It's usually also easy to do the math in the head if adding, say, 20g of base and then 12g of hardener. Now, what if you've tried measuring 20g of base and ends up with 23.5g? Of course, still possible to do the math in the head, but the computer is more reliable at that (and possibly faster).
  • The overshoot calculation problem. So you've added 23.5g of base, that means you should add 14.1g of hardener, but ... oups, now there is 16.5g of hardener in the jar. How much more base is it needed to add?

Usage

As for now, just download the script, install the python package click and run the script. It will interactively ask you for minimum six readings of the tara, six readings of the tara + base total weight, then it will tell how much hardener to add, ask for six more readings of the total weight, tell how much base or hardener should be added, etc, all until the ratio is more or less correct.

Future plans

  • Accept one number instead of six. I'll definitively fix this before mixing epoxy on the hard the next time. This script was initially written to solve the wave problem, but it's useful also for solving calculation and overshoot problems.
  • Command line options. I've imported the click-library for this purpose, but I only use it for creating prompts and output.
  • Package wrapping - should create a version number and a changelog, should make this up to the latest pypi standards, push to pypi, etc

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

epoxy_calc-0.0.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

epoxy_calc-0.0.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file epoxy_calc-0.0.0.tar.gz.

File metadata

  • Download URL: epoxy_calc-0.0.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for epoxy_calc-0.0.0.tar.gz
Algorithm Hash digest
SHA256 8fd615d027522debbf6f418baf99fa6ca29187b90376a9ca26190feeaeb99f34
MD5 48e60dc944be50c745bbd9a128737664
BLAKE2b-256 d573ed5c1675ad3d9b592f387aac5d95b49703c8a65b203c00372ebaff1cf240

See more details on using hashes here.

Provenance

The following attestation bundles were made for epoxy_calc-0.0.0.tar.gz:

Publisher: publish.yaml on tobixen/epoxy-calc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file epoxy_calc-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: epoxy_calc-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for epoxy_calc-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 550cf445b5acc97d13f3479930f631a7d9ad05d7e934799581e8790618ff5425
MD5 03812f69b26766ae174129a9bed7bf95
BLAKE2b-256 7a4ac68c068c3e67ed082d96f8be3315790d67c58d60bf019e07c2aa1719f4cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for epoxy_calc-0.0.0-py3-none-any.whl:

Publisher: publish.yaml on tobixen/epoxy-calc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page