Hardware


Shell Lab T Sensor is programmable temperature sensor with USB/serial interface

Characteristic:

● metal case DS18B20 sensor, better protection
● integrated LED blinks to indicate the current temperature value
● USB powered, 2-meter cable length
● interactive serial console with ASCII command, online manual embedded
● programming language is not limited (Python recommended)
● quick test with Testbench App (with various demo codes)
● pip install mcush library (support windows/linux/mac) and write scripts easily

Use cases:

● temperature logger in product design and test
● kanban/placard indication
● logistic/storage management, goods location indicator
● educational experiment design
● outdoor case, auto indicator
● system integration for industrial equipment
● prototype design

Software

Serial Communication FAQ
C Programming FAQ

Serial command:

measure control command
=>measure --help
usage: measure [-c command] [-i index] [-v value]
options:
 -c/--cmd        start stop mps repeatability
 -i/--idx        index param
 -v/--val        value param
=> 

Example:

read current results
=>m
T:18.61
=> 

Python API:

Install: sudo pip3 install mcush
Upgrade: sudo pip3 install -U mcush
class ShellLabSensorT(mcush.ShellLab.ShellLabSensor):
    def measure(self, cmd=None, idx=None, val=None):
        # lower level serial command

    def getT(self):
        # read temperature result

Example:

import mcush
from mcush.linkong.ShellLab import ShellLabSensorT
s = ShellLabSensorT('COM10')  # fill the actual serial port
while True:
    t = s.getT()  # get result
    print( 'Temperature: %.2f'% t )
    time.sleep(2)

Download:

Shell Lab Testbench Application


CH341 VCP Driver(Windows)


Application