Helper scripts and interactive shell for measuring Triboelectric Nanogenerator-based sensor output with a Keithley 2611B SMU or an Arduino
Go to file
2023-06-26 19:34:19 +02:00
m_teng restructured using backends 2023-06-24 12:28:21 +02:00
.gitignore bspc_rule.sh 2023-06-26 19:33:15 +02:00
LICENSE Added test mode and save pickle 2023-04-13 11:09:40 +02:00
MANIFEST.in renamed to m-teng 2023-06-18 17:38:10 +02:00
pyproject.toml renamed to m-teng 2023-06-18 17:38:10 +02:00
readme.md updated readme 2023-06-24 12:27:45 +02:00

m-TENG

Helper scripts and shell for measuring Triboelectric Nanogenerator-based sensor output with a Keithley 2611B SMU or an Arduino

Features

Interactive (shell) mode

  • Live view
  • Press button to stop
  • Save and load settings (default interval, data directory...)
  • Easily run arbitrary command on device

Useful functions for scripts

  • Measure voltage and/or current
  • Transfer buffer from measurement device to host
  • Save/load as csv
  • Run lua script on Keithley SMU
  • Auto-filenames

Available backends

keithley

Use a Keithley 2611B Source-Measure-Unit via *pyvisa*. This backend allows measuring both voltage and current simultaneously.

arduino

Use a Bluetooth capable Arduino with [https://git.quintern.xyz/MatthiasQuintern/teng-arduino](this software on the arduino).
This backend only allows measuring voltage using an Arduinos analog input pin (0 - 3.3 V, 12 bit resolution).

testing

Use the shell without measuring TENG output. When starting a measurement, sample data will be generated.

Shell mode

It is recommended to run the shell with ipython:

ipython -i k_teng_interactive.py -- -*X*

Substitute X for -k for keithley backend, -a for arduino backend or -t for testing backend.

In the shell, run help() to get a list of available commands