







How Does The SolidSwitch 2 Click Board™ Work?
The SolidSwitch 2 Click Board™ as its foundation uses the L9026, an automotive multi-channel relay driver optimized for automotive relay and LED applications from STMicroelectronics. Eight channels of the L9026 represent two high-side and six configurable high-side/low-side drivers, which can be driven by an SPI interface or by two dedicated parallel inputs (IN0 and IN1 pins routed to the PWM and INT pins of the mikroBUS™ socket). Operating from an external power supply from 3V up to 18V, it provides a maximum current of 1A on its output terminals making this board an excellent choice for automotive applications (LEDs and relays) compatible with resistive, inductive, and capacitive loads.
As mentioned before, the SolidSwitch 2 Click Board™ communicates with MCU through a standard SPI interface to control and configure the loads and the device. The L9026 also offers advanced diagnostic and protection features such as short-to-ground, open load, overcurrent, and overtemperature detections, with status feedback of all diagnostic functions provided via the SPI interface.
Besides, the L9026 also features Idle mode for reduced current consumption, controlled via IDL pin routed to the AN pin of the mikroBUS™ socket and the "Limp home" mode. This mode allows using two selected drivers in particularly faulty conditions, such as SPI fault, micro fault, or supply undervoltage. The device can guarantee operations under a cranking scenario with a supply voltage down to 3V and ensures a low quiescent current under reset conditions.
The SolidSwitch 2 Click Board™can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the communication lines properly. However, the 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 | Can be used for automotive applications and driving resistive, inductive, and capacitive loads |
On-board modules | L9026 - multi-channel relay driver from STMicroelectronics |
Key Features | AEC-Q100 qualified, six configurable LS/HS drivers, two parallel input pins with input mapping functionality, cranking capability down to 3V, protection features, Limp Home mode, and more |
Interface | GPIO, SPI |
Compatibility | mikroBUS |
Click board size | L (57.15 x 25.4 mm) |
Input Voltage | 3.3V or 5V, External |
PINOUT DIAGRAM
This table shows how the pinout of the SolidSwitch 2 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | ![]() |
Pin | Notes | |||
---|---|---|---|---|---|---|---|
Idle Mode | IDL | 1 | AN | PWM | 16 | IN0 | Parallel Command 0 |
NC | 2 | RST | INT | 15 | IN1 | Parallel Command 1 | |
SPI Chip Select | CS | 3 | CS | RX | 14 | NC | |
SPI Clock | SCK | 4 | SCK | TX | 13 | NC | |
SPI Data OUT | SDO | 5 | MISO | SCL | 12 | NC | |
SPI Data IN | SDI | 6 | MOSI | SDA | 11 | NC | |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
SOLIDSWITCH 2 CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage VCC | 3.3 | - | 5 | V |
External Supply Voltage VCC-PWR | 3 | - | 18 | V |
Output Current | - | - | 1 | A |
Operating Temperature Range | -40 | +25 | +120 | °C |
Software Support
We provide a software library for the SolidSwitch 2 Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on the MikroE Github account.
Library Description
This library contains API for SolidSwitch 2 Click driver.
Key functions
-
solidswitch2_write_register
This function writes desired data to the selected register by using SPI serial interface. -
solidswitch2_toggle_in0_pin
This function toggles the IN0 pin logic state. -
solidswitch2_toggle_in1_pin
This function toggles the IN1 pin logic state.
Example Description
This example demonstrates using
void application_task ( void )
{
for ( uint16_t duty_cycle = SOLIDSWITCH2_MIN_DUTY_CYCLE; duty_cycle <= SOLIDSWITCH2_MAX_DUTY_CYCLE; duty_cycle += 5 )
{
if ( SOLIDSWITCH2_OK == solidswitch2_write_register ( &solidswitch2, SOLIDSWITCH2_REG_PWM_GEN_DC,
( uint8_t ) ( SOLIDSWITCH2_MAX_DUTY_CYCLE - duty_cycle ) ) )
{
log_printf ( &logger, " PWM GEN DC: %urn", ( SOLIDSWITCH2_MAX_DUTY_CYCLE - duty_cycle ) );
}
if ( SOLIDSWITCH2_OK == solidswitch2_write_register ( &solidswitch2, SOLIDSWITCH2_REG_PWM_LED_DC, ( uint8_t ) duty_cycle ) )
{
log_printf ( &logger, " PWM LED DC: %urn", duty_cycle );
}
solidswitch2_toggle_in0_pin ( &solidswitch2 );
log_printf ( &logger, " Toggle IN0 pinrn" );
solidswitch2_toggle_in1_pin ( &solidswitch2 );
log_printf ( &logger, " Toggle IN1 pinrnn" );
Delay_ms ( 250 );
}
}
The complete application code and ready-to-use projects can be installed directly from NECTO Studio The package Manager (recommended), downloaded from our LibStock™ or found on the MikroE Github account.
Other MikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.SolidSwitch2
Additional Notes and Information
Depending on the development board you are using, you may need USB UART Click Board™, 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 MikroElektronika compilers.
MIKROSDK
The SolidSwitch 2 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.
SolidSwitch 2 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.