solidswitch8  2.1.0.0
Main Page

SolidSwitch 8 Click

SolidSwitch 8 Click is a compact add-on board for reliable load control in automotive and industrial applications. This board features the BTS3035EJXUMA1, a smart low-side switch from Infineon. It features a 35mΩ N-channel MOSFET, capable of handling load voltages from 6V to 18V and currents up to 5A, making it suitable for various resistive, inductive, and capacitive loads. The board includes essential protection mechanisms like overtemperature shutdown, overvoltage protection, and current limitation, ensuring reliable operation under demanding conditions. With integrated feedback through an open-drain status pin and a red LED indicator for visual alerts, it enhances diagnostics and safety.

Click Product page


Click library

  • Author : Stefan Ilic
  • Date : Jan 2024.
  • Type : GPIO type

Software Support

We provide a library for the SolidSwitch 8 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.

Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.

Library Description

This library contains API for SolidSwitch 8 Click driver.

Standard key functions :

Example key functions :

Example Description

This example demonstrates the use of SolidSwitch 8 Click board by switching state of the switch.

The demo application is composed of two sections :

Application Init

Initializes the driver, performs the Click default configuration.

void application_init ( void )
{
log_cfg_t log_cfg;
solidswitch8_cfg_t solidswitch8_cfg;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, " Application Init " );
// Click initialization.
solidswitch8_cfg_setup( &solidswitch8_cfg );
SOLIDSWITCH8_MAP_MIKROBUS( solidswitch8_cfg, MIKROBUS_1 );
if ( DIGITAL_OUT_UNSUPPORTED_PIN == solidswitch8_init( &solidswitch8, &solidswitch8_cfg ) )
{
log_error( &logger, " Communication init." );
for ( ; ; );
}
solidswitch8_default_cfg ( &solidswitch8 );
log_info( &logger, " Application Task " );
}

Application Task

Switching state of the output every 5 seconds, and monitoring the status of the device.

void application_task ( void )
{
{
log_error( &logger, " Detected over temperature condition." );
for ( ; ; );
}
log_printf( &logger, " Switch state closed. \r\n" );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
log_printf( &logger, " Switch state open. \r\n" );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
}

The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.

Other Mikroe Libraries used in the example:

  • MikroSDK.Board
  • MikroSDK.Log
  • Click.SolidSwitch8

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 MikroElektronika compilers.


solidswitch8_t
SolidSwitch 8 Click context object.
Definition: solidswitch8.h:104
solidswitch8_cfg_t
SolidSwitch 8 Click configuration object.
Definition: solidswitch8.h:117
application_task
void application_task(void)
Definition: main.c:61
solidswitch8_default_cfg
void solidswitch8_default_cfg(solidswitch8_t *ctx)
SolidSwitch 8 default configuration function.
solidswitch8_set_in_pin
void solidswitch8_set_in_pin(solidswitch8_t *ctx, uint8_t pin_state)
SolidSwitch 8 in pin setting function.
solidswitch8_set_err_pin
void solidswitch8_set_err_pin(solidswitch8_t *ctx, uint8_t pin_state)
SolidSwitch 8 err pin setting function.
SOLIDSWITCH8_PIN_STATE_HIGH
#define SOLIDSWITCH8_PIN_STATE_HIGH
Definition: solidswitch8.h:73
SOLIDSWITCH8_MAP_MIKROBUS
#define SOLIDSWITCH8_MAP_MIKROBUS(cfg, mikrobus)
MikroBUS pin mapping.
Definition: solidswitch8.h:91
solidswitch8_init
err_t solidswitch8_init(solidswitch8_t *ctx, solidswitch8_cfg_t *cfg)
SolidSwitch 8 initialization function.
SOLIDSWITCH8_PIN_STATE_LOW
#define SOLIDSWITCH8_PIN_STATE_LOW
SolidSwitch 8 description setting.
Definition: solidswitch8.h:72
solidswitch8_get_sts_pin
uint8_t solidswitch8_get_sts_pin(solidswitch8_t *ctx)
SolidSwitch 8 sts pin reading function.
solidswitch8_cfg_setup
void solidswitch8_cfg_setup(solidswitch8_cfg_t *cfg)
SolidSwitch 8 configuration object setup function.
application_init
void application_init(void)
Definition: main.c:29