TOP Contributors

  1. MIKROE (2784 codes)
  2. Alcides Ramos (386 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 (139917 times)
  2. FAT32 Library (72256 times)
  3. Network Ethernet Library (57427 times)
  4. USB Device Library (47761 times)
  5. Network WiFi Library (43391 times)
  6. FT800 Library (42718 times)
  7. GSM click (29982 times)
  8. mikroSDK (28501 times)
  9. PID Library (27000 times)
  10. microSD click (26405 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

Rec N Play 2 Click

Rating:

0

Author: MIKROE

Last Updated: 2024-10-31

Package Version: 2.1.0.2

mikroSDK Library: 2.0.0.0

Category: Signal processing

Downloaded: 22 times

Not followed.

License: MIT license  

Rec&Play 2 Click is a compact add-on board for voice recording and playback applications. It is based on the ISD1616B, a single-message voice record and playback IC from Nuvoton. The board features an on-chip oscillator, a microphone preamplifier with Automatic Gain Control (AGC), an omnidirectional microphone, and a speaker driver for high-quality audio recording and playback. Voice data is stored in onboard Flash memory without digital compression, ensuring clear and reliable sound. It supports both manual and digital control, as well as flexible message durations from 10 to 26 seconds.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Rec N Play 2 Click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Rec N Play 2 Click" changes.

Do you want to report abuse regarding "Rec N Play 2 Click".

  • Information
  • Comments (0)

mikroSDK Library Blog


Rec N Play 2 Click

Rec&Play 2 Click is a compact add-on board for voice recording and playback applications. It is based on the ISD1616B, a single-message voice record and playback IC from Nuvoton. The board features an on-chip oscillator, a microphone preamplifier with Automatic Gain Control (AGC), an omnidirectional microphone, and a speaker driver for high-quality audio recording and playback. Voice data is stored in onboard Flash memory without digital compression, ensuring clear and reliable sound. It supports both manual and digital control, as well as flexible message durations from 10 to 26 seconds.

recplay2_click.png

Click Product page


Click library

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

Software Support

We provide a library for the Rec N Play 2 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 Rec N Play 2 Click driver.

Standard key functions :

  • recnplay2_cfg_setup Config Object Initialization function.

    void recnplay2_cfg_setup ( recnplay2_cfg_t *cfg );
  • recnplay2_init Initialization function.

    err_t recnplay2_init ( recnplay2_t *ctx, recnplay2_cfg_t *cfg );
  • recnplay2_default_cfg Click Default Configuration function.

    void recnplay2_default_cfg ( recnplay2_t *ctx );

Example key functions :

  • recnplay2_set_pl_pin This function sets the PL pin on the selected level of Rec N Play 2 Click board.

    void recnplay2_set_pl_pin ( recnplay2_t *ctx, uint8_t pin_state );
  • recnplay2_record_sound This function is used to record sound with Rec N Play 2 Click board.

    err_t recnplay2_record_sound ( recnplay2_t *ctx, uint16_t rec_len );
  • recnplay2_play_sound This function is used to play recorded sounds with Rec N Play 2 Click board.

    err_t recnplay2_play_sound ( recnplay2_t *ctx, uint16_t play_len );

Example Description

This example demonstrates the use of Rec N Play 2 Click board by recording and then playing recorded sound.

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;  /**< Logger config object. */
    recnplay2_cfg_t recnplay2_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.
    recnplay2_cfg_setup( &recnplay2_cfg );
    RECNPLAY2_MAP_MIKROBUS( recnplay2_cfg, MIKROBUS_1 );
    if ( DIGITAL_OUT_UNSUPPORTED_PIN == recnplay2_init( &recnplay2, &recnplay2_cfg ) ) 
    {
        log_error( &logger, " Communication init." );
        for ( ; ; );
    }

    recnplay2_default_cfg ( &recnplay2 );

    log_info( &logger, " Application Task " );
}

Application Task

Recording sound for 5 seconds, then playing it back.

void application_task ( void ) 
{
    log_printf( &logger, " Recording... \r\n" );
    recnplay2_record_sound( &recnplay2, RECORDING_LEN );
    Delay_ms ( 1000 );

    log_printf( &logger, " Playing... \r\n" );
    recnplay2_play_sound( &recnplay2, RECORDING_LEN );
    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.RecNPlay2

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

IR Grid 2 Click

0

IR Grid 2 Click is a thermal imaging sensor. It has an array of 768 very sensitive factory calibrated IR elements (pixels), arranged in 32 rows of 24 pixels. Each one of them is measuring an object temperature up to 300˚C within its local Field of View (FOV). The MLX90640ESF-BAB IR sensor used on this Click board™ has just four pins, and it is mounted inside of the industry standard TO39 package. It is equipped with 2Kbit of EEPROM for storing the compensation and calibration parameters.

[Learn More]

Pot 3 Click

0

POT 3 Click is a Click board� with the accurate selectable reference voltage output. By employing a high-quality 11mm, metal shaft potentiometer, this Click board� can provide very accurate voltage output.

[Learn More]

Stepper 2 Click

0

Stepper 2 Click is a complete solution for driving bipolar stepper motors with full/half and micro-steps. It features the A4988 IC from Allegro Microsystems with DMOS low RDSON drivers on its outputs, which ensure high efficiency and reliable operation of the internal H-Bridges. This IC has the integrated translator section, used to simplify the control: using simple step control inputs from the host MCU, the stepper motor can be driven in both directions, with the predetermined step sizes. In addition, the output current is regulated allowing for noiseless operation of the stepper motor, with no resonance and ringing typically observed at unregulated stepper driver designs.

[Learn More]