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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34dd3cdc1ab9c92696b61aec030d04ae01c7687179f26a6b778c15c612cb15b6 |
|
MD5 | 87b853643b2efd7acfb024c393893cf4 |
|
BLAKE2b-256 | ec13e35c03fe26a82289f37e6099f8c44249985c80d7c981d9b67819a08899ef |
Close
Hashes for greenponik_thermistor10k-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a113768290a96b1bd13284803cbd12e34710105982b73ea755898c1709dff4d9 |
|
MD5 | 1d32cb6df90a3f330109bfe9f0e42170 |
|
BLAKE2b-256 | c4a5e671c88d8e93484aa38bbd365035af7e6865a67c5c14f79ae4d27889db2d |