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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8ea529565cd6e53231fa59a6ec93c27cccabc9293430da83fc5f6323beef011 |
|
MD5 | a922b65f70a755e1f453a36f45492317 |
|
BLAKE2b-256 | 1dd8777f9392e26e06e31938e6a4d87f8ff6afb1ebd92811ab411ae872cd4e9d |
Close
Hashes for greenponik_thermistor10k-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 759fa9c14065279f5d80cd1f2c0f191ad8a6fb8b6b8088c56c1a7debd6cf902a |
|
MD5 | 0f2756534f078eb73e18156da1108a46 |
|
BLAKE2b-256 | afa5af5511e54c623e844badf2f6406173c50bc5e635b75de5a1fc3a489a120d |