TOP Contributors

  1. MIKROE (2660 codes)
  2. Alcides Ramos (356 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 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 (137013 times)
  2. FAT32 Library (70135 times)
  3. Network Ethernet Library (56028 times)
  4. USB Device Library (46353 times)
  5. Network WiFi Library (41968 times)
  6. FT800 Library (41295 times)
  7. GSM click (29056 times)
  8. mikroSDK (26492 times)
  9. PID Library (26452 times)
  10. microSD click (25413 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

Binho Nova click

Rating:

0

Author: MIKROE

Last Updated: 2024-04-03

Package Version: 2.1.0.4

mikroSDK Library: 2.0.0.0

Category: Adapter

Downloaded: 19 times

Not followed.

License: MIT license  

Binho Nova Click is an adapter Click board™ that can be used as a multi-protocol adapter. This board features two female 1.27mm 2x5 connectors suitable for connecting the Binho Nova Multi-Protocol USB Host Adapter depending on the desired interface. This Click board™ is designed for ultimate flexibility and provides the ability to use this adapter with different communication protocols, such as I2C, SPI, or UART. It features five signal pins, which can be used as Digital Input/Output, PWM Output, Digital Interrupt, or Analog Input/Output. Along with these connectors, it also features two power jumpers that can be used to supply the host from the Binho Nova.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Binho Nova click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Binho Nova click" changes.

Do you want to report abuse regarding "Binho Nova click".

  • Information
  • Comments (0)

mikroSDK Library Blog


Binho Nova click

Binho Nova Click is an adapter Click board™ that can be used as a multi-protocol adapter. This board features two female 1.27mm 2x5 connectors suitable for connecting the Binho Nova Multi-Protocol USB Host Adapter depending on the desired interface. This Click board™ is designed for ultimate flexibility and provides the ability to use this adapter with different communication protocols, such as I2C, SPI, or UART. It features five signal pins, which can be used as Digital Input/Output, PWM Output, Digital Interrupt, or Analog Input/Output. Along with these connectors, it also features two power jumpers that can be used to supply the host from the Binho Nova.

binhonova_click.png

click Product page


Click library

  • Author : Stefan Filipovic
  • Date : May 2023.
  • Type : UART type

Software Support

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

Standard key functions :

  • binhonova_cfg_setup Config Object Initialization function.

    void binhonova_cfg_setup ( binhonova_cfg_t *cfg );
  • binhonova_init Initialization function.

    err_t binhonova_init ( binhonova_t *ctx, binhonova_cfg_t *cfg );

Example key functions :

  • binhonova_generic_write This function writes a desired number of data bytes by using UART serial interface.

    err_t binhonova_generic_write ( binhonova_t *ctx, uint8_t *data_in, uint16_t len );
  • binhonova_generic_read This function reads a desired number of data bytes by using UART serial interface.

    err_t binhonova_generic_read ( binhonova_t *ctx, uint8_t *data_out, uint16_t len );

Example Description

This example demonstrates the use of Binho Nova click board by processing the incoming data and displaying them on the USB UART.

The demo application is composed of two sections :

Application Init

Initializes the driver and logger.


void application_init ( void )
{
    log_cfg_t log_cfg;  /**< Logger config object. */
    binhonova_cfg_t binhonova_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.
    binhonova_cfg_setup( &binhonova_cfg );
    BINHONOVA_MAP_MIKROBUS( binhonova_cfg, MIKROBUS_1 );
    if ( UART_ERROR == binhonova_init( &binhonova, &binhonova_cfg ) ) 
    {
        log_error( &logger, " Communication init." );
        for ( ; ; );
    }

    log_info( &logger, " Application Task " );
    Delay_ms ( 1000 );

    uart_set_blocking( &logger.uart, false );
}

Application Task

All data received from the USB UART will be forwarded to mikroBUS UART, and vice versa.

void application_task ( void )
{
    app_buf_len = uart_read( &logger.uart, app_buf, PROCESS_BUFFER_SIZE );
    if ( app_buf_len > 0 ) 
    {
        uart_write ( &binhonova.uart, app_buf, app_buf_len );
        memset( app_buf, 0, app_buf_len );
        app_buf_len = 0;
    }
    app_buf_len = uart_read( &binhonova.uart, app_buf, PROCESS_BUFFER_SIZE );
    if ( app_buf_len > 0 ) 
    {
        uart_write ( &logger.uart, app_buf, app_buf_len );
        memset( app_buf, 0, app_buf_len );
        app_buf_len = 0;
    }
}

Note

The example code is performed via UART communication and consists of a few simple steps:

  1. Place "Binho Nova Click" into the mikroBUS socket 1.
  2. Insert the "Binho USB Host Adapter" connector into the "Binho Nova Click" I2C/UART slot.
  3. Start the "Mission Control Software" application.
  4. Connect "Binho USB Host Adapter".
  5. Activate UART Bridge with a baud rate of 115200bps.
  6. All data sent via the "Mission Control Software" application will be displayed on the USB UART logger, and vice versa.

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.BinhoNova

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

Stepper 9 click

0

Stepper 9 Click is a compact add-on board that contains a bipolar stepper motor driver. This board features the TB67S581FNG, a two-phase bipolar stepping motor driver from Toshiba Semiconductor. Fabricated with the BiCD process, it supports a PWM constant-current control drive and steps resolution from full to 1/32 for less motor noise and smoother control. It has a wide operating voltage range of 8.2V to 44V with a maximum output current capacity of 2A, decay modes selection function, protection, and several anomaly detection indicators.

[Learn More]

Analog Input Demo

0

The application demonstrates Analog input SDK functionality.

[Learn More]

H-Bridge 11 click

0

H-Bridge 11 Click is a compact add-on board that allows a voltage to be applied across a load in either direction. This board features the MAX22200, an octal serial-controlled solenoid and motor driver from Analog Devices. The MAX22200 is SPI-configurable and rated for an operating voltage range from 4.5V to 36V. Each channel features a low impedance push-pull output stage with sink-and-source driving capability up to 1A RMS driving current. Its internal half-bridges can be configured as low-side or high-side drivers, supports two control methods (voltage and current drive regulation), and features a full set of protections and diagnostic functions.

[Learn More]