How does it work?
Relay 7 Click is based on the CRR05-1A, a CRR series reed relay from Standex Electronics, a component known for its ultra-miniature SMD design and high insulation resistance. This Click board™ features four relays, each equipped with four terminals for load connections that are controlled via these relays. Beneath each relay is an orange LED indicator that illuminates to signal when the relay is active, serving as an operational status indicator. This setup provides clear and immediate feedback on the status of each relay, enhancing user control and system monitoring. This Click board™ is ideal for test and measurement (ATE) equipment, instrumentation, and telecommunications applications, highlighting high reliability and long life due to the relays’ fully sealed contacts.
The CRR05-1As also feature a high insulation resistance of a typical 1013Ω. Its electrical specifications include a coil voltage of 5VDC, a coil resistance of 150Ω, a single-pole single-throw normally open (SPST-NO, 1 Form A) contact form, and maximum rated power of 10W/170VDC/0.5A.
Control and communication between the relays and the host MCU are managed via the PCA9538A port expander, which uses an I2C communication interface. This device supports both Standard and Fast modes, with frequencies up to 400kHz. The PCA9538A‘s I2C address can be configured through the ADDR SEL jumpers, allowing flexible integration with various MCU systems.
The PCA9538A also uses an RST pin and INT pins of the mikroBUS™ socket. The RST pin ensures the registers and I2C-bus state machine remain in their default settings until this pin is set to a HIGH logic state, where the device returns to normal operational status. The INT is an interrupt pin, enabling the host MCU to detect user-specified events through the I2C interface.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the VCC SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. Also, this Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used as a reference for further development.
Specifications
Type
Relay
Applications
Ideal for test and measurement (ATE) equipment, instrumentation, and telecommunications
On-board modules
CRR05-1A – CRR series reed relay from Standex Electronics
Key Features
Ultra-miniature SMD reed relay,high reliability, high insulation resistance, maximum rated power of 10W/170VDC/0.5A, I2C interface with selectable address, reset and interrupt features, orange LED indicators for relay operational status, and more
Interface
I2C
Feature
ClickID
Compatibility
mikroBUS™
Click board size
L (57.15 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on Relay 7 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
LD2-LD5 | – | – | Relay Status LED Indicators |
JP1 | VCC SEL | Left | Logic Voltage Level Selection 3V3/5V: Left position 3V3, Right position 5V |
JP2-JP3 | ADDR SEL | Left | I2C Address Selection 0/1: Left position 0, Right position 1 |
Relay 7 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Switching Voltage | – | – | 170 | VDC |
Switching Current | – | – | 0.5 | A |
Contact Rating | – | – | 10 | W |
Software Support
We provide a library for the Relay 7 Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on MIKROE github account.
Library Description
This library contains API for Relay 7 Click driver.
Key functions
-
relay7_set_relay
This function sets the desired state of the selected relay. -
relay7_reset_device
This function performs a hardware reset of the device. -
relay7_get_interrupt
This function returns the interrupt pin logic state.
Example Description
This example demonstrates the use of the Relay 7 Click board™ by toggling the relay state.
void application_task ( void )
{
for ( uint8_t relay_sel = RELAY7_SEL_REL1; relay_sel <= RELAY7_SEL_REL4; relay_sel++ )
{
if ( RELAY7_OK == relay7_set_relay( &relay7, relay_sel, relay_state ) )
{
log_printf( &logger, " Relay %d ", ( uint16_t ) relay_sel );
if ( RELAY7_STATE_OPEN == relay_state )
{
log_printf( &logger, " normally open statern" );
}
else
{
log_printf( &logger, " normally close statern" );
}
}
Delay_ms( 1000 );
}
relay_state = ~relay_state;
Delay_ms( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on MIKROE github account.
Other MIKROE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Relay7
Additional notes and informations
Depending on the development board you are using, you may need 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. UART terminal is available in all MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE 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.
For more information about mikroSDK, visit the official page.