Skip to main content

Async Python library for Proteus Ecometer (TEK603) ultrasonic level sensors

Project description

tek603

Async Python library for Proteus Ecometer ultrasonic liquid level sensors (TEK603 protocol) over USB serial.

Measures distance to liquid via ultrasound and reports level, temperature, and tank capacity.

Installation

pip install tek603

Usage

import asyncio
import serial_asyncio_fast
from tek603 import TEK603

async def main():
    transport, protocol = await serial_asyncio_fast.create_serial_connection(
        asyncio.get_event_loop(), TEK603, "/dev/ttyUSB0", baudrate=115200
    )

    def on_data():
        print("Level:", protocol.read_sensor(2), "cm")
        print("Temp:", protocol.read_sensor(1), "°C")

    protocol.register_callback(on_data, dp_nbr=2)
    await asyncio.sleep(60)

asyncio.run(main())

Sensors

ID Name Unit
1 Temperature °C
2 Liquid level cm
3 Available capacity l
4 Total capacity l

Hardware

  • Proteus Ecometer USB (CP2102 / Silicon Labs USB-to-serial adapter)
  • Protocol fully reverse-engineered; reference: sarnau.info

License

MIT

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

tek603-0.1.0.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tek603-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file tek603-0.1.0.tar.gz.

File metadata

  • Download URL: tek603-0.1.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for tek603-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e109b07374413360cbe275edda9651df0a9c6f4011c4a6a49dde45bebc309654
MD5 bf5accf4bf659b78b5cb7e79ee680f6d
BLAKE2b-256 0daca43f721bee4598db85f674b5f8dca5ae43646c2222d190c6ff6b1acea64d

See more details on using hashes here.

File details

Details for the file tek603-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tek603-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for tek603-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 328e02f14e5e73ca619e905e491d2dfe961ef0cf42004132976183a26235164c
MD5 e523bb942283bde4897c50b4023e3cff
BLAKE2b-256 ac94456361cdeddf4ca7c083197e4fe9f5e70a09302c04ba09353225e28347ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page