Open source Small, useful tools from my hardware and research work, published with tests and a license so other people can build on them.
Everything lives at github.com/aysel-elsh . ThermoVolt's core design stays private while the patent is pending; what's here is the general-purpose tooling around it.
Libraries and experiments R1–R2
A small, dependency-free Python toolkit for modelling thermoelectric generators.
The quick first-pass math I kept redoing for ThermoVolt, packaged so anyone sizing a TEG can skip it.
Version 0.3.0
Python 3.10+
Tests 35
Dependencies None Power and matched load for a 4 × 2 array, from datasheet values Copy
from tegkit import TEGModule, TEGArray
m = TEGModule.from_datasheet(matched_power=2.5, matched_voltage=2.1,
delta_t=80, thermal_conductance=0.45)
dt = m.module_delta_t(source_delta_t=60,
hot_side_resistance=0.3, cold_side_resistance=0.5)
arr = TEGArray(m, series=4, parallel=2)
print(arr.max_power(dt), "W at", arr.matched_load(), "ohm") PythonMIT license thermoelectric energy harvesting waste-heat recovery Peltier View on GitHub → Does p-bit (probabilistic) sampling save energy on a Raspberry Pi? An INA219-measured benchmark against a small MLP.
Probabilistic-computing chips promise big energy savings. I wanted a narrow, measurable version of that question I could test myself.
Hardware Raspberry Pi + INA219
Models RBM (Gibbs) vs MLP
Tests 8
Results Not yet claimed Run the sweep on a Pi with the current sensor attached Copy
python -m pbitbench --sensor ina219 \
--sizes 32 64 128 256 512 --duration 30 --out results.csv PythonMIT license probabilistic computing benchmark energy measurement Raspberry Pi View on GitHub → Write to me about hardware, ocean tech or research.
Set in Newsreader, Inter and JetBrains Mono. © 2026 Aysel Elshenawy