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. And even if you're sure you've added 10g of base in the jar, when adding 6g of hardener it's easy to accidentally add 8g instead of 6g ... and then more base needs to be added.
The problems
This small program attempts to solve three (four) 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.
- 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?
- The 1g resolution of typical scales is too high when one wants to mix very small quantities of resin. The proper solution to this is to buy a better scale, but when there are some waves and many measurements is taken, the end result (say, 6.3g, after many readings of 6g, and some few readings of 7g) may be closer to the truth than what the scale can show on a day without waves (6g).
(When mixing epoxy outdoors, there may also be a wind causing the readings to vary. I'm not sure the algorithms here are good to use in windy environment)
Installation
pip install epoxy-calc
Or with pipx:
pipx install epoxy-calc
Usage
Run epoxy-calc from the command line. 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file epoxy_calc-1.0.10.tar.gz.
File metadata
- Download URL: epoxy_calc-1.0.10.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ee8f200ab3eecd56104ab109701d12d629448886f5f93d1a3daa38f1dc5189e
|
|
| MD5 |
9337ffe42286e68249938212aa0a6124
|
|
| BLAKE2b-256 |
d69039a9dbc3b9cb37bb5e810906a44a8977fb17577d24e48375b2ecbfe484b8
|
Provenance
The following attestation bundles were made for epoxy_calc-1.0.10.tar.gz:
Publisher:
publish.yaml on tobixen/epoxy-calc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
epoxy_calc-1.0.10.tar.gz -
Subject digest:
5ee8f200ab3eecd56104ab109701d12d629448886f5f93d1a3daa38f1dc5189e - Sigstore transparency entry: 774468699
- Sigstore integration time:
-
Permalink:
tobixen/epoxy-calc@c5d0f94d24fc9b4b0acdf3b6b538da4e45d1c150 -
Branch / Tag:
refs/tags/v1.0.10 - Owner: https://github.com/tobixen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@c5d0f94d24fc9b4b0acdf3b6b538da4e45d1c150 -
Trigger Event:
push
-
Statement type:
File details
Details for the file epoxy_calc-1.0.10-py3-none-any.whl.
File metadata
- Download URL: epoxy_calc-1.0.10-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
950829f3bba4abb4801d6665b2baf04d2a068beb6aa045f1fb3ffa17a9da5f99
|
|
| MD5 |
6ae19589aeefa5c2b8cf8acc88c68031
|
|
| BLAKE2b-256 |
315d1d83bcc978d7a448a93b5ab963e861c01313f2bd8c306b32d79eb5e1fd52
|
Provenance
The following attestation bundles were made for epoxy_calc-1.0.10-py3-none-any.whl:
Publisher:
publish.yaml on tobixen/epoxy-calc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
epoxy_calc-1.0.10-py3-none-any.whl -
Subject digest:
950829f3bba4abb4801d6665b2baf04d2a068beb6aa045f1fb3ffa17a9da5f99 - Sigstore transparency entry: 774468704
- Sigstore integration time:
-
Permalink:
tobixen/epoxy-calc@c5d0f94d24fc9b4b0acdf3b6b538da4e45d1c150 -
Branch / Tag:
refs/tags/v1.0.10 - Owner: https://github.com/tobixen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@c5d0f94d24fc9b4b0acdf3b6b538da4e45d1c150 -
Trigger Event:
push
-
Statement type: