Hardware


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

Characteristic:

● hollow case design, for quicker temperature/humidity response
● 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:

● environment 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

Attention:

● suitable only for environment test, not available for soil and liquid

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 H:37.73
=> 

Python API:

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

    def configMPS(self, mps=0.5):
        # configure measure per second
    
    def configRepeatability(self, repeatability='high'):
        # configure repeatability

    def getTH(self):
        # read temperature/humidity result

Example:

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

Download:

Shell Lab Testbench Application


CH341 VCP Driver(Windows)


Application