Skip to main content

Receive temperature readings from TSic 206/306/506/716 sensor chips on Raspberry Pi

Project description


Receive temperature readings from TSic sensor chips connected to Raspberry Pi GPIO.


  • TSic 206/306
  • TSic 506
  • TSic 706

Don't forget the bypass capacitor as near as possible to the sensor's power supply pins to get stable behavior.


The package tsic requires Python 3 and the great library pigpio for GPIO access with precise timing. Note that Python 2 will not work.


Install from Python package index PyPI:

pip3 install tsic


The module tsic provides the following classes:

  • TsicInputChannel receive temperature measurements
  • Measurement a temperature measurement
  • TsicType TSic type definition with instances TSIC206, TSIC306, TSIC506, TSIC716 (206 and 306 are currently equivalent)
  • ZacWireInputChannel receive byte packets over ZACWire protocol (low-level handler for TsicInputChannel)

Command Line Test Tool

Run tsic <gpio-bcm> [--type {206,506,716,306}] [--loop] to read temperatures from a GPIO pin (Broadcom numbering). See tsic --help for command line usage.

pi@raspi3:~ $ sudo tsic 19 --type 306
Receiving data from TSic 206/306...
Measurement 17.90°C at 2018-11-10 16:16:11.419573


From file

import time
import pigpio

from tsic import TsicInputChannel, Measurement, TSIC306

# TsicInputChannel and ZacWireInputChannel require pigpio
# for GPIO access with precise timing:
pi = pigpio.pi()

tsic = TsicInputChannel(pigpio_pi=pi, gpio=17, tsic_type=TSIC306)

print('\nA. Single measurement:')

print('\nB. All measurements for 1 second:')
tsic.start(lambda measurement: print(measurement))

print('\nC. One measurement per second for 3 seconds:')

# start receiving in a context:
with tsic:
    for i in range(3):
        measurement = tsic.measurement
        if measurement == Measurement.UNDEF:
            print('{:d} {:.1f}°C'.format(i+1, measurement.degree_celsius))


Source Code

Hosted on

With greetings from Bavaria, Holger

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tsic-2.0.1.tar.gz (6.3 kB view hashes)

Uploaded source

Built Distribution

tsic-2.0.1-py3-none-any.whl (10.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page