Read temperature on thermistor 10k through Python3 on raspberry pi
Project description
GreenPonik_Thermistor10k.py Library for Raspberry pi
This is the sample code for read temperature with thermistor 10k sensor on i2c bus.
Table of Contents
- GreenPonik_Thermistor10k.py Library for Raspberry pi
- Table of Contents
- Installation
- Methods
- Example
- Credits
Installation
> git clone https://github.com/GreenPonik/GreenPonik_Thermistor10k.git
cd GreenPonik_Thermistor10k
pip3 install -r requirements.txt
or
> pip install greenponik-thermistor10k
from GreenPonik_Thermistor10k.Thermistor10k import Thermistor10k
Methods
"""
Get temperatue in celcius
"""
def read_temp():
Example
import time
from GreenPonik_Thermistor10k.Thermistor10k import Thermistor10k
if __name__ == "__main__":
th = Thermistor10k()
while True:
temperature = th.read_temp()
print("celcius temp %.3f °c" % temperature)
time.sleep(1)
Credits
Write by Mickael Lehoux, from GreenPonik, 2020
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
Close
Hashes for greenponik-thermistor10k-0.0.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cb74fc9d4f063314e931af0de62b95c588e5feba3900b641c27258297a7d141 |
|
MD5 | 253f227731dbd190e9c512cc4f5a4e2a |
|
BLAKE2b-256 | c8404b7ddd79bc8266ad10ebbff4139b4a47429dbb463ad7cccd4a3b7cce6d8b |
Close
Hashes for greenponik_thermistor10k-0.0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13b2f36374ebc6eb86d140cde7a02204e97ff5ec149c2dc4e0e4e5cea7092e07 |
|
MD5 | 50eb34ac09f53c8f69bfc4c133b4cb70 |
|
BLAKE2b-256 | a2021e735f72639d5f8cb4629cc118ba22e29693af44de2e6c972d86850fe4b5 |