Hardware

Shell Lab Relay is programmable relay module with USB/serial interface Characteristic: ● 8 reed relays● USB powered, 2-meter cable length ● beeper embedded, frequency adjustable ● dual color LED blinks to indicate exceptions ● 3D printed case ● 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: ● auxiliary control in product development/test● educational experiment design ● outdoor case, auto indicator ● system integration for industrial equipment ● prototype design ● art creativity |
Software
Serial Communication FAQ C Programming FAQ Serial command: IO control command
Example: #0~#7 relay is directly controlled by P0.0~P0.7 pins, has been set as low voltage output mode on startupenable #2 relay
close #4 relay
toggle #5 relay
query #6 relay state
disable 4 relays #0~#3
in intactive console, toggle all relays, reverse every 500ms
beep once
set LED indicator (error number) as 12 (zero after default, green slowly)
Python API: Install: sudo pip3 install mcushUpgrade: sudo pip3 install -U mcush
Example:
Download: Shell Lab Testbench Application |