MikroElektronika Relay 2 Click

Overview

Relay 2 Click carries two LCA717 single-pole, normally open solid state relays. Each relay switches the two contacts of its own screw terminal and isolates the load from the host board with 3750 Vrms.

The relays are wired in the AC/DC configuration of the LCA717 datasheet, which gives each output the following ratings:

  • Blocking voltage: 30 V peak

  • Continuous load current: 2 A (RMS or DC)

  • On-resistance: 0.15 Ω maximum

  • Turn-on and turn-off time: 3 ms maximum

Relay 2 Click

Relay 2 Click

Pin Assignment

Each relay input is driven from a 3.3 V mikroBUS™ pin through a 380 Ω resistor and closes when the pin is high. A red LED per relay shows the state of the pin.

mikroBUS pin

Relay

Screw terminal

Devicetree node label

PWM

Relay1

CN1

mikroe_relay_2_click_relay1

AN

Relay2

CN2

mikroe_relay_2_click_relay2

Requirements

This shield can only be used with a board that provides a mikroBUS™ socket and defines a mikrobus_header node label that maps both the PWM and the AN pin to a GPIO. Boards that route the AN pin to an analog-only input cannot drive Relay2. See Shields for more details.

Programming

Set --shield mikroe_relay_2_click when you invoke west build. The relays are zephyr,gpio-relay devices and are controlled with the Relay API. For example, to switch them from the shell:

# From the root of the zephyr repository
west build -b ek_ra8m1 --shield mikroe_relay_2_click samples/subsys/shell/shell_module -- -DCONFIG_RELAY=y -DCONFIG_RELAY_SHELL=y
uart:~$ relay list
relay-2
relay-1
uart:~$ relay on relay-1
uart:~$ relay off relay-1

References