Difference between revisions of "Dcttech usbrelay"
Jump to navigation
Jump to search
(image of DIY relay card) |
(USBRelay2 and USBRelay4 images) |
||
Line 18: | Line 18: | ||
<gallery> | <gallery> | ||
File: | File:Dcttech-usbrelay2-top.png|<small>USBRelay2 top, ATtiny45, discrete transistors</small> | ||
File:Dcttech-usbrelay-diy.png|<small>DIY | File:Dcttech-usbrelay2-bot.png|<small>USBRelay2 bottom</small> | ||
File:Dcttech-usbrelay4-top.png|<small>USBRelay4 top, ATmega8A, ULN2803, external supply for relays</small> | |||
File:Dcttech-usbrelay4-bot.png|<small>USBRelay4 bottom</small> | |||
File:Dcttech-usbrelay-diy.png|<small>USBRelay8, DIY with Nanite841 and ULN2803</small> | |||
</gallery> | </gallery> | ||
Revision as of 07:24, 28 July 2021
Status | supported |
---|---|
Source code | dcttech-usbrelay |
Channels | up to 8 |
Ratings | {{{ratings}}} |
Connectivity | USB HID |
The dcttech.com USBRelay<n> is a USB relay card with up to 8 relays (models with 1, 2, 4, or 8 relays exist). The firmware is based on V-USB and presents itself as USB HID to the PC (so that no driver installation is required on Windows).
See Info for USB details.
Photos
Example use
Detect the device and display its properties.
$ sigrok-cli -d dcttech-usbrelay --scan The following devices were found: dcttech-usbrelay:conn=/dev/hidraw2 - www.dcttech.com USBRelay4 [S/N: 12345]
$ sigrok-cli -d dcttech-usbrelay --show Driver functions: Multiplexer Scan options: conn dcttech-usbrelay:conn=/dev/hidraw2 - www.dcttech.com USBRelay4 [S/N: 12345] Channel groups: R1: channel R2: channel R3: channel R4: channel Supported configuration options across all channel groups: conn: /dev/hidraw2 (current) enabled: on, off
Display the relay state.
$ sigrok-cli -d dcttech-usbrelay --get channel_group=R1:enabled --get channel_group=R2:enabled --get channel_group=R3:enabled --get channel_group=R4:enabled true false false true
Manipulate the state of relays.
$ sigrok-cli -d dcttech-usbrelay --config channel_group=R1:enabled=off --config channel_group=R2:enabled=on --set
Resources
- V-USB project page, software bitbanging USB for AVR controllers that don't have native USB hardware support
- product description and source code repo of a private project that is not related to the vendor, implements OpenSource libraries and CLI and GUI applications to control these cards