Asked

Devantech 8 Channel 16A USB Relay Module

Is the EZ-b v4 module compatible with the Devantech 8 Channel 16A USB Relay Module?

Thanks Jeff



Related Hardware (view all EZB hardware)
EZ-B V4 by EZ-Robot
EZ-B v4/2 robot controller: dual Cortex ARM, Wi-Fi, audio/video, 24 servo/digital ports, I2C/UART, camera and Synthiam ARC control for custom robots
Wi-Fi / USB
Servos 24
Camera
Audio
UART 3
I2C
ADC 8
Digital 24

ARC Pro

Upgrade to ARC Pro

ARC Pro is more than a tool; it's a creative playground for robot enthusiasts, where you can turn your wildest ideas into reality.

Author Avatar
PRO
USA
#1   — Edited

EZB V4:

User-inserted image

Devantech 8 Channel 16A USB Relay Module:

User-inserted image

Maybe I'm missing something but the product uses an USB port.

How do you plan to connect to EZB V4 without USB ?

Author Avatar
PRO
Synthiam
#2   — Edited

Maybe you mean "how do you connect ARC to the Daventech 8 channel 16a USB relay board"?

If so, that's easy... Based on the documentation manual, you merely have to send a command to turn on or off the relay. Here's the manual: https://www.robot-electronics.co.uk/htm/usb_rly16tech.htm

Create a function in your script like this...


function setRelay(relayNumber, trueOrFalse) {

  COM.open("COM1", 19200);  
  
  if (trueOrFalse)
    COM.write("COM1", 100 + relayNumber);
  else
    COM.close("COM1", 110 + relayNumber );
    
  COM.close("COM1");
}

// Turn relay 1 on
setRelay(1, true);

// pause for 5 seconds
sleep(5000);

// Turn relay 1 off
setRelay(1, false);