How does it work?
Opto 7 Click is based on two ISOM8710s, high-speed single-channel opto-emulators from Texas Instruments. It can transmit data rates of up to 25Mbps and can output 3.3V and 5V signals with a CMOS-compatible output. Compared to an optocoupler, the ISOM7810 has a high common mode transient immunity, low propagation delay, small pulse with distortion, low power consumption, and more. Opto 7 Click is equipped with two of those opto-emulators, for receiving and transmitting data. The external power supply can be connected to a VCC2 terminal and must be 3.3V or 5V. The three-pin terminal is used to connect input and output data lines, along with the common ground.
Opto 7 Click can use general-purpose IO to communicate with the host MCU over the GP1 and GP2 pins. It can also be used for a standard UART communication isolation with commonly used UART RX and TX pins. The selection can be made over the OUT SEL and IN SEL jumpers. Both should be in a proper position for the communication to work.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the VCC SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. Also, this 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
Optocoupler
Applications
Can be used for the development of power supplies, grids, electricity meters, motor drives, factory automation, and control, building automation, and more
On-board modules
ISOM8710 – high-speed single-channel opto-emulator from Texas Instruments
Key Features
Single-channel diode-emulator input, CMOS output, high data rate, robust isolation barrier, low power consumption, tight process controls result in small part-to-part skew, low propagation delay, small pulse width distortion, high common mode transient immunity, and more
Interface
GPIO,UART
Feature
ClickID
Compatibility
mikroBUS™
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V or 5V,External
Pinout diagram
This table shows how the pinout on Opto 7 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
JP1 | VCC SEL | Left | Power/Logic Voltage Level Selection 3V3/5V: Left position 3V3, Right position 5V |
JP2 | IN SEL | Left | Input Communication Selection GP2/Tx: Left position GP2, Right position Tx |
JP3 | OUT SEL | Left | Output Communication Selection GP1/Rx: Left position GP1, Right position Rx |
Opto 7 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Data Rate | – | – | 25 | Mbps |
Isolation Rating | – | – | 3750 | Vrms |
Software Support
We provide a library for the Opto 7 Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE 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 Opto 7 Click driver.
Key functions
-
opto7_generic_write
Opto 7 data writing function. -
opto7_set_gp1_pin
Opto 7 set GP1 pin function. -
opto7_get_gp2_pin
Opto 7 get GP2 pin function.
Example Description
This example demonstrates the use of Opto 7 Click board™ by processing the incoming data and displaying them on the USB UART.
void application_task ( void )
{
#if ( DEMO_EXAMPLE == EXAMPLE_GPIO )
log_printf( &logger, " GP1 pin state HIGH rn" );
opto7_set_gp1_pin( &opto7, OPTO7_PIN_STATE_HIGH );
if ( OPTO7_PIN_STATE_HIGH == opto7_get_gp2_pin( &opto7 ) )
{
log_printf( &logger, " GP2 pin state HIGH rn" );
}
else
{
log_printf( &logger, " GP2 pin state LOW rn" );
}
log_printf( &logger, "- - - - - - - - - - - -rn" );
Delay_ms( 5000 );
log_printf( &logger, " GP1 pin state LOW rn" );
opto7_set_gp1_pin( &opto7, OPTO7_PIN_STATE_LOW );
if ( OPTO7_PIN_STATE_HIGH == opto7_get_gp2_pin( &opto7 ) )
{
log_printf( &logger, " GP2 pin state HIGH rn" );
}
else
{
log_printf( &logger, " GP2 pin state LOW rn" );
}
log_printf( &logger, "- - - - - - - - - - - -rn" );
Delay_ms( 5000 );
#else
#if defined TRANSMITTER
log_printf( &logger, " Message sent! rn" );
opto7_generic_write( &opto7, TX_MESSAGE, strlen( TX_MESSAGE ) );
Delay_ms( 2000 );
#else
if ( OPTO7_OK == opto7_process( &opto7 ) )
{
opto7_log_app_buf( );
opto7_clear_app_buf( );
}
#endif
#endif
}
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.Opto7
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 MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE 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.
For more information about mikroSDK, visit the official page.