Devantech ETH008
File:Devantech eth008b mugshot.png | |
Status | in progress |
---|---|
Source code | devantech-eth008 |
Channels | 8 |
Ratings | 16A 250VAC / 16A 24VDC |
Connectivity | Ethernet, TCP |
Website | robot-electronics.co.uk |
The Devantech ETH008 is an Ethernet attached relay card with 8 relays. Models with 2 up to 20 relays exist. Their protocols currently are not supported by the sigrok driver implementation if they differ from the ETH008-B protocol, but could be added if their protocol is similar enough.
The firmware supports several ways of communication: interactive web forms, HTTP GET, binary over TCP, text over TCP. The sigrok driver uses binary payloads for simplicity and for maximum compatibility across firmware versions. Password protection for TCP sockets is currently not supported.
Hardware
- PIC microcontroller, S25F32 SPI flash
- SMSC Ethernet chip, Fast Ethernet (100Mbps)
- Rohm BD9703 switching regulator, 2.1mm barrel jack
- Hongfa HF115FD relays, screw terminals with common and NC and NO
- discrete transistors and LED indicators per relay channel
- power LED and RJ45 indicators
Nominal supply for the relay card is 12V. The Rohm regulator accepts 8V..35V. The HF115 relay may accept 24V, too. But the PIC measures the card's supply by means of a voltage divider, which most probably constrains the acceptable range of supply voltages for the card.
Voltage and current capability of the relay heavily depends on AC/DC kinds and the types of load. Rating is much lower for DC and for inductive loads. See the card vendor's relay power rating discussion and relay datasheet.
Photos
Example use
Detect the device and display its properties.
$ DEV=devantech-eth008:conn=tcp-raw/192.168.0.200/17494 $ sigrok-cli -d $DEV --scan The following devices were found: devantech-eth008:conn=tcp-raw/192.168.0.200/17494 - Devantech ETH008 HW2 FW23 [S/N: fc0fe7123456]
$ sigrok-cli -d $DEV --show Driver functions: Multiplexer Scan options: conn devantech-eth008:conn=tcp-raw/192.168.0.200/17494 - Devantech ETH008 HW2 FW23 [S/N: fc0fe7123456] Channel groups: R1: channel R2: channel R3: channel R4: channel R5: channel R6: channel R7: channel R8: channel Supported configuration options across all channel groups: conn: tcp-raw/192.168.0.200/17494 (current) enabled: on, off
Display the relay state.
$ DEV=devantech-eth008:conn=tcp-raw/192.168.0.200/17494 devantech-eth008 $ sigrok-cli -d $DEV --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. Address one individual relay per infocation. Address several channels in the same invocation. Set all relays of a card at the same time.
$ DEV=devantech-eth008:conn=tcp-raw/192.168.0.200/17494 devantech-eth008 $ sigrok-cli -d $DEV -g R8 --config enabled=on --set $ sigrok-cli -d $DEV --config channel_group=R1:enabled=off --config channel_group=R2:enabled=on --set $ sigrok-cli -d $DEV --config enabled=on --set $ sigrok-cli -d $DEV --config enabled=off --set
Resources
- robot-electronics.co.uk shop product page
- vendor documentation as PDF discusses the device's capabilities and its communication protocols, links to [http://www.robot-electronics.co.uk/files/HF115FD.pdf Hongfa relay datasheet
- github repo contains Python code, API documentation at the github.io page