Relay Click Board
- Vendor
- MIKROE-1370
- Mikroelektronika d.o.o.
- Regular price
-
£22.68 inc. VAT£18.90 exc. VAT
- Sale price
- £18.90V
- Regular price
-
- Unit price
- /per
Adding product to your cart
The Relay Click Board™ is a compact and easy-to-implement add-on board that includes RELAY functionality to your design. The board is equipped with two G6D1AASI-5DC power PCB relays that control different devices with up to 5A, 250V AC/30V DC loads. A relay is an electromagnetic switch operated by a relatively small electric current with complete electrical isolation between control and controlled circuits. The Relay Click Board™ also features two screw terminals that ensure a seamless connection. It also has two onboard LED indicators that indicate the presence of a power supply. The board communicates with the target board microcontroller through MikroBUS PWM (RL1) and CS (RL2) pins.
It is ideal for turning on/off lights, motors and other high power systems within the maximum supported voltage/current level range.
Relay Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.
Product Description
The Relay Click Board™ is a dual relay Click board, which can be operated by the host MCU. This Click board™ offers an elegant and easy solution for controlling a wide range of high power applications. Since it is able to operate on mains voltage level, it can even be used control the power for a number of small home appliances. It can also be used to activate various electromotors, switch on the lights, or power on the entire embedded system.
How Does The Relay Click Board™ Work?
The Relay Click Board™ features two G6D-1A-ASI DC5 mini-relays, from Omron. Omron micro switches and relays are well known among enthusiasts and professionals alike, for their reliability and durability. Despite its size, the G6D-1A-ASI DC5 relay is able to withstand up to 5A and 220V AC/30V DC. It can endure up to 300,000 operations, with 30V DC and 2A. This relay has a single pole only - when the coil is energized, it will attract the internal switching elements and close the circuit, similarly to a switch.
These relays are designed so that their coils can be easily activated by relatively low currents and voltages. For the G6D-1A-ASI DC5 relay operated at 5V, the coil current is 40mA. This makes them a perfect choice for activating them by an MCU. However, some additional components have to be included for a proper operation:
A small NPN RET (Resistor Equipped Transistor) is used to provide enough current for the relay coil. Two resistors are already integrated into the RET, providing it with the correct biasing, so using RETs simplify the design. Since the MCU drives the relay coils through these RETs, their bases are routed to CS and PWM pins of the mikroBUS™.
There is a LED (in a different color for each relay) which signalizes the state of the relay. When the current flows through the RET, the coil will be energized, and the relay will be in the closed switch state. This current also flows through this LED, which will indicate that the relay switch is closed.
The Schottky diode is connected across the relay coil, preventing the NPN RET to become inversely polarized by the inert nature of the coil.
Two varistors are used to prevent voltage peaks when the load is connected or disconnected, protecting the relay contacts that way.
DO NOT TOUCH THE BOARD WHILE THE EXTERNAL POWER SUPPLY IS ON!
Note : The Relay Click Board™ has exposed pins/pads. To stay safe take precaution when applying high voltage to the click. The click is to be used by trained personnel only when applying high voltage.
Specifications
Type | Relay |
Applications | The board can be used for turning on/off lights, motors and other high power consumers within the maximum supported voltage/current levels |
On-board modules | G6D1AASI-5DC power PCB relay |
Key Features | Control up to 5A, 250V AC/30V DC loads. Screw terminals allow secure connection of the load. Reliable OMRON relays, protected with varistors from voltage spikes. |
Interface | GPIO |
Compatibility | mikroBUS |
Click board size | L (57.15 x 25.4 mm) |
Input Voltage | 5V |
Pinout Diagram
This table shows how the pinout of the Relay Click Board™ corresponds to the pinout of the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | ![]() |
Pin | Notes | |||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | PWM | RL1 | |
NC | 2 | RST | INT | 15 | NC | ||
RL2 | CS | 3 | CS | RX | 14 | NC | |
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | NC | ||
NC | 6 | MOSI | SDA | 11 | NC | ||
NC | 7 | 3.3V | 5V | 10 | +5V | Power supply | |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
RELAY CLICK MAXIMUM RATINGS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Operational Current Range (30V DC / 250V AC) | 0 | - | 5 | A |
Operational Voltage Range (AC) | 0 | - | 250 | V |
Operational Voltage Range (DC) | 0 | - | 30 | V |
Mechanical Endurance (2A, 30V DC) | 0 | - | 300,000 | operations |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR LED | - | Power indication LED |
Software Support
Software Support
We provide a library for the Relay Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library offers an option to control the state of relays.
Key functions:
void relay_relay2Control( uint8_t pinState )
- Controls the Relay 2 pin.
void relay_relay1Control( uint8_t pinState )
- Controls the Relay 1 pin.
Example Description
The application is composed of three sections:
- System Initialization - Sets pin directions.
- Application Initialization - Initializes driver.
- Application Task - Turns relays on and off.
void applicationTask() { relay_relay2Control ( 1 ); relay_relay1Control( 1 ); mikrobus_logWrite("Relays turned on", _LOG_LINE); Delay_ms(1000); relay_relay2Control ( 0 ); relay_relay1Control( 0 ); mikrobus_logWrite("Relays turned off", _LOG_LINE); Delay_ms(1000); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- UART
Additional Notes and Information
Depending on the development board you are using, you may need a USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The Relay Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant click board demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.