Difference between revisions of "Dcttech usbrelay"
Jump to navigation
Jump to search
(create a page for dcttech.com USBRelay cards) |
(USBRelay ratings) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
| source_code_dir = dcttech-usbrelay | | source_code_dir = dcttech-usbrelay | ||
| channels = up to 8 | | channels = up to 8 | ||
| ratings = 10A 250VAC / 10A 30VDC | |||
| connectivity = USB HID | | connectivity = USB HID | ||
}} | }} | ||
Line 13: | Line 14: | ||
is required on Windows). | is required on Windows). | ||
See [[Dcttech_usbrelay/Info Info]] for USB details. | See [[Dcttech_usbrelay/Info | Info]] for USB details. | ||
== Photos == | == Photos == | ||
<gallery> | <gallery> | ||
File: | File:Dcttech-usbrelay2-top.png|<small>USBRelay2 top, ATtiny45, discrete transistors</small> | ||
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> | ||
== Example use == | |||
Detect the device and display its properties. | |||
<small> | |||
$ '''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 | |||
</small> | |||
Display the relay state. | |||
<small> | |||
$ '''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 | |||
</small> | |||
Manipulate the state of relays. | |||
<small> | |||
$ '''sigrok-cli -d dcttech-usbrelay --config channel_group=R1:enabled=off --config channel_group=R2:enabled=on --set''' | |||
</small> | |||
== Resources == | == Resources == |
Latest revision as of 14:32, 1 August 2021
Status | supported |
---|---|
Source code | dcttech-usbrelay |
Channels | up to 8 |
Ratings | 10A 250VAC / 10A 30VDC |
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