TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (385 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (97 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139842 times)
  2. FAT32 Library (72209 times)
  3. Network Ethernet Library (57392 times)
  4. USB Device Library (47739 times)
  5. Network WiFi Library (43364 times)
  6. FT800 Library (42700 times)
  7. GSM click (29980 times)
  8. mikroSDK (28439 times)
  9. PID Library (26989 times)
  10. microSD click (26398 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

SolidSwitch 6 Click

Rating:

0

Author: MIKROE

Last Updated: 2024-10-31

Package Version: 2.1.0.2

mikroSDK Library: 2.0.0.0

Category: Relay

Downloaded: 25 times

Not followed.

License: MIT license  

SolidSwitch 6 Click is a compact add-on board for reliable load management in automotive power distribution systems. This board features the VNF1048F, a high-side switch controller with intelligent e-fuse protection from STMicroelectronics. This board supports an input voltage range of 6V to 48V, controls external MOSFET, and offers essential protection features such as overcurrent, under-voltage, and thermal shutdown, with diagnostic feedback via SPI. It also includes an NTC resistor for monitoring MOSFET temperature and operates with either 3.3V or 5V logic levels.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "SolidSwitch 6 Click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "SolidSwitch 6 Click" changes.

Do you want to report abuse regarding "SolidSwitch 6 Click".

  • Information
  • Comments (0)

mikroSDK Library Blog


SolidSwitch 6 Click

SolidSwitch 6 Click is a compact add-on board for reliable load management in automotive power distribution systems. This board features the VNF1048F, a high-side switch controller with intelligent e-fuse protection from STMicroelectronics. This board supports an input voltage range of 6V to 48V, controls external MOSFET, and offers essential protection features such as overcurrent, under-voltage, and thermal shutdown, with diagnostic feedback via SPI. It also includes an NTC resistor for monitoring MOSFET temperature and operates with either 3.3V or 5V logic levels.

solidswitch6_click.png

Click Product page


Click library

  • Author : Nenad Filipovic
  • Date : Feb 2024.
  • Type : SPI type

Software Support

We provide a library for the SolidSwitch 6 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 6 Click driver.

Standard key functions :

  • solidswitch6_cfg_setup Config Object Initialization function.

    void solidswitch6_cfg_setup ( solidswitch6_cfg_t *cfg );
  • solidswitch6_init Initialization function.

    err_t solidswitch6_init ( solidswitch6_t *ctx, solidswitch6_cfg_t *cfg );
  • solidswitch6_default_cfg Click Default Configuration function.

    err_t solidswitch6_default_cfg ( solidswitch6_t *ctx );

Example key functions :

  • solidswitch6_get_vout This function reads the raw ADC value and converts it to a proportional voltage level using the SPI serial interface.

    err_t solidswitch6_get_vout ( solidswitch6_t *ctx, float *vout );
  • solidswitch6_set_control This function writes control registers to configure the switch controller using the SPI serial interface.

    err_t solidswitch6_set_control ( solidswitch6_t *ctx, solidswitch6_ctrl_t ctrl );
  • solidswitch6_get_device_temp This function reads the raw ADC value and converts it to device temperature in degrees Celsius using the SPI serial interface.

    err_t solidswitch6_get_device_temp ( solidswitch6_t *ctx, float *tj );

Example Description

This library contains API for the SolidSwitch 6 Click driver and demonstrate uses of the high-side switch controller with intelligent fuse protection.

The demo application is composed of two sections :

Application Init

The initialization of the SPI module and log UART. After driver initialization, the app sets the default configuration.

void application_init ( void )
{
    log_cfg_t log_cfg;  /**< Logger config object. */
    solidswitch6_cfg_t solidswitch6_cfg;  /**< Click config object. */

    /** 
     * Logger initialization.
     * Default baud rate: 115200
     * Default log level: LOG_LEVEL_DEBUG
     * @note If USB_UART_RX and USB_UART_TX 
     * are defined as HAL_PIN_NC, you will 
     * need to define them manually for log to work. 
     * See @b LOG_MAP_USB_UART macro definition for detailed explanation.
     */
    LOG_MAP_USB_UART( log_cfg );
    log_init( &logger, &log_cfg );
    log_info( &logger, " Application Init " );

    // Click initialization.
    solidswitch6_cfg_setup( &solidswitch6_cfg );
    SOLIDSWITCH6_MAP_MIKROBUS( solidswitch6_cfg, MIKROBUS_1 );
    if ( SPI_MASTER_ERROR == solidswitch6_init( &solidswitch6, &solidswitch6_cfg ) )
    {
        log_error( &logger, " Communication init." );
        for ( ; ; );
    }

    if ( SOLIDSWITCH6_ERROR == solidswitch6_default_cfg ( &solidswitch6 ) )
    {
        log_error( &logger, " Default configuration." );
        for ( ; ; );
    }

    log_info( &logger, " Application Task " );
    log_printf( &logger, " ______________________\r\n" );
    Delay_ms ( 100 );
}

Application Task

The demo application reads and displays the device temperature and voltage level of the current sense amplifier, NTC, and output voltage measurement. Results are being sent to the UART Terminal, where you can track their changes.

void application_task ( void )
{
    float app_buf = 0;
    if ( SOLIDSWITCH6_OK == solidswitch6_get_device_temp( &solidswitch6, &app_buf ) )
    {
        log_printf( &logger, " Temperature: %.2f [degC]\r\n", app_buf );
        Delay_ms ( 100 );
    }

    if ( SOLIDSWITCH6_OK == solidswitch6_get_vntc( &solidswitch6, &app_buf ) )
    {
        log_printf( &logger, " NTC: %.2f V\r\n", app_buf );
        Delay_ms ( 100 );
    }

    if ( SOLIDSWITCH6_OK == solidswitch6_get_vout( &solidswitch6, &app_buf ) )
    {
        log_printf( &logger, " Vout: %.2f V\r\n", app_buf );
        Delay_ms ( 100 );
    }

    if ( SOLIDSWITCH6_OK == solidswitch6_get_vds( &solidswitch6, &app_buf ) )
    {
        log_printf( &logger, " VDS: %.2f V\r\n", app_buf );
        Delay_ms ( 100 );
    }

    log_printf( &logger, " ______________________\r\n" );
    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.SolidSwitch6

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.


ALSO FROM THIS AUTHOR

I2C Isolator 4 Click

0

I2C Isolator 4 Click is a compact add-on board that offers completely isolated bidirectional communication. This board features the MAX14937, a two-channel, 5kVRMS I2C digital isolator from Analog Devices. The MAX14937 provides two bidirectional, open-drain channels for applications that require data to be transmitted in both directions on the same line. It supports data rates from DC up to 1.7MHz and can be used in isolated I2C busses with or without clock stretching.

[Learn More]

Boost 11 Click

0

Boost 11 Click is a compact add-on board that boosts low input voltages to a stable output. This board features the XCL105B331H2-G, a synchronous step-up DC/DC converter from TOREX Semi. It operates from an input voltage as low as 0.9V, ideal for devices using single Alkaline or Nickel-metal hydride batteries, with an output fixed at 3.3V. It features an EN pin for easy start-up and standby mode and supports both 3.3V and 5V logic levels. This versatility makes Boost 11 Click suitable for industrial equipment, IoT devices, wearables, and applications prioritizing battery life.

[Learn More]

6DOF IMU 17 Click

0

6DOF IMU 17 Click is a compact add-on board that contains a 6-axis inertial measurement unit. This board features the IIM-42652, a 6-axis SmartIndustrial™ MotionTracking device that supports an extended operating temperature range for industrial applications from TDK InvenSense. It combines a 3-axis gyroscope and a 3-axis accelerometer featuring a 2K-byte FIFO that can lower the traffic on the serial bus interface (SPI or I2C) and reduce power consumption by allowing the system processor to burst read sensor data and then go into a low-power mode.

[Learn More]