ProtoCentral tinyGSR — MicroPython + Raspberry Pi
MicroPython driver for the ProtoCentral tinyGSR breakout — a galvanic-skin-response (electrodermal activity) sensor. The tinyGSR's analog front-end turns skin conductance into a voltage that is digitised by an on-board TI TLA2022 ADC, so this library builds on the TLA20xx driver and adds only the tinyGSR configuration and smoothing.
Ported from, and faithful to, the ProtoCentral tinyGSR Arduino firmware (firmware/tinygsr/tinygsr.ino). MIT licensed.
Install
mpremote mip install github:Protocentral/protocentral-micropython-tinygsr
This also installs the protocentral-tla20xx dependency. Raspberry Pi:
sudo raspi-config # enable I2C
pip install protocentral-tinygsr # pulls protocentral-tla20xx + smbus2
i2cdetect -y 1 # should show 0x49
Quick start
from machine import Pin, I2C
from protocentral_tinygsr import TinyGSR
i2c = I2C(0, scl=Pin(6), sda=Pin(5), freq=400000) # QT Py ESP32-C3: SCL=6, SDA=5
gsr = TinyGSR(i2c, address=0x49) # TLA2022 address is selectable on the breakout
gsr.begin() # TLA2022: continuous, 128 SPS, ±0.512 V (as the firmware)
print(gsr.read_filtered()) # 8-tap FIR-smoothed GSR signal
Raspberry Pi — reuses the TLA20xx shim (no separate shim):
from protocentral_tla20xx_linux import I2C
from protocentral_tinygsr import TinyGSR
gsr = TinyGSR(I2C(bus=1), address=0x49); gsr.begin()
print(gsr.read_filtered())
API
| Method | Purpose |
|---|---|
TinyGSR(i2c, address=0x49) |
construct (creates an internal TLA20XX) |
begin() |
configure the TLA2022 like the firmware (continuous / 128 SPS / ±0.512 V) |
read() |
instantaneous GSR signal, mV |
read_filtered() |
8-tap FIR-smoothed signal (matches the firmware's streamed value) |
.adc |
the underlying TLA20XX for advanced use |
A note on units
The ProtoCentral firmware streams the filtered ADC value (a proxy for skin conductance via the front-end) to OpenView — it does not compute absolute microsiemens, and neither does this library. Converting to absolute µS would require the front-end transfer function from the tinyGSR schematic; that's left as a documented TODO rather than guessed, to keep the library faithful to the source.
Tests
python3 tests/test_tinygsr.py — mocked-bus tests (firmware-matching config, mV scaling, 8-tap FIR). Needs the sibling protocentral-tla20xx repo on the path.
Reconciled against the tinyGSR firmware: TLA2022 @
0x49,OP_CONTINUOUS/DR_128SPS/FSR_0_512V, default mux, 8-tap unity-coefficient FIR.
Metadata
Release files for protocentral-tinygsr 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| protocentral_tinygsr-1.0.0.tar.gz | 5.4 kB | With provenance | Details for protocentral_tinygsr-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| protocentral_tinygsr-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for protocentral_tinygsr-1.0.0-py3-none-any.whl |
Total release size: 10.4 kB
Release files / protocentral_tinygsr-1.0.0.tar.gz
| Download URL | protocentral_tinygsr-1.0.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d910825823d078750b2d5a19f5d01101dc47aeb0915f7325bbe0a63676910b4c
|
|
BLAKE2b-256 checksum How to use checksums |
67382687622dc29c484dd342b3ecb7fe77dbc83fa908aa8d74a2f48d4c72b50f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency logRelease files / protocentral_tinygsr-1.0.0-py3-none-any.whl
| Download URL | protocentral_tinygsr-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
229bb7be209ac2017636d4704696784e3413cce43b251fcaf0c1ff4740ce19c3
|
|
BLAKE2b-256 checksum How to use checksums |
73575912eb990b1ca1c2a385526180939886e7a00742acc49c94315843bf75b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency logSecurity for protocentral-tinygsr 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for protocentral_tinygsr-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.