Repository navigation
Plugin volt temp da
Measures and logs voltages or LM35 temperatures through a PCF8591 I2C converter.
| Item | Value |
|---|---|
| Version | 1.0.0 |
| Category | Hardware, displays and outputs |
| Author | Martin Pihrt |
| License | GPL-3.0 |
| OSPy |
3.0.211 or newer |
| Python |
3.8 or newer |
| Permissions |
files, i2c
|
| Hardware | platforms: raspberry_pi; interfaces: i2c; I²C: 0x48
|
| Dependencies | None |
| Python/OS packages |
smbus / python3-smbus (required) |
| Interfaces | No provider or mobile API declared |
| Source | Open the plug-in directory |
Measures and logs voltages or LM35 temperatures through a PCF8591 I2C converter.
Tested in Python 3+
This plugin needs an enabled I2C bus and connected I2C A/D converter PCF8591 on I2C address 0x48. For measuring temperature use temp probe LM35D (0-100 °C) on AD0-3 converter.
The plug-in includes a manifest declaring its SMBus and I2C requirements, uses the shared OSPy worker lifecycle, closes the I2C handle during errors and shutdown, and reports converter availability and readings through the Diagnostics health interface.
-
Check Enabled: If checked enabled plugin is enabled.
-
Check Enable logging: If checked enabled logging save measure value to logfile (format .csv for Excel).
-
Maximum number of log records: Type maximum records in log file. 0 is unlimited.
-
I/O Voltage: Type power supply for PCF8591 range 0.0 - 15.0 V. Watch the I2C bus and eventual separation I2C bus! (default is 5.0V)
-
Interval for logging: Type interval for logging in minutes (minimum is 1).
-
Label for input 1 - 4: Type label for Your probe.
-
Check Measure as temperature: If checked value is temperature. On the AD input is connect LM 35D (DZ) temperature sensor.
-
Status: Status window from the plugin.
-
DA output value: Type value for DA output. Range is 0-255 = 0 - I/O Voltage
The hardware should be connected as follows (without separate I2C Bus):

The hardware should be connected as follows (with separate I2C Bus for higher voltage):

Visit Martin Pihrt's blog. for more information.
The following notes are generated from the help page shipped with this plug-in. Field names are also explained directly in the OSPy settings page.
This plugin needs an enabled bus and connected A/D converter PCF8591 on address 0x48
For measuring temperature use temp probe LM35D (0-100 C) on AD0-3 converter
If the label is not blank, the value is displayed in the value display
Visit for more information
The PCB board for A/D converter PCF8591 (board by pihrt.com)
Check OSPy → Diagnostics first and remove passwords, tokens, private addresses and other secrets before sharing logs. Report reproducible plug-in problems in the OSPy-plugins issue tracker.
Start
Reference
Catalog sections

