How does it work?
Opto 5 Click is based on the FOD4216, a random phase snubberless Triac driver that provides uncomplicated high voltage safety isolation from ON Semiconductor. It utilizes a high efficiency infrared emitting diode that offers an improved trigger sensitivity coupled to a hybrid random phase triac formed with two inverse parallel SCRs, which creates the triac function capable of driving discrete triacs. It provides electrical isolation between a low voltage input and a high voltage output while switching the high voltage output.
The Triac stands for triode for alternating current and is a device that can conduct current in either direction when it is triggered or turned on by detecting a light beam on its trigger junction (Gate). The Triac changes from the off-state to the conducting state when a current, or current pulses are applied to the control electrode (Gate). Turning on the device can be achieved while synchronizing with the input voltage, whereas turn-off occurs when the current passes through zero following the control signal removal.
Opto 5 Click operates only with the PWM signal from the mikroBUS™ socket that drives the cathode of the FOD4216. In applications when hot-line switching is required, the “hot” side of the line is switched, and the load is connected to the cold or neutral side. In the case of a Standard Triac usage, the user should add a 39Ω resistor and 0.01uF capacitor parallel to triac terminals A1 and A2 used for snubbing of the triac. While in the case of highly inductive loads where the power factor is lower than 0.5), the value of a resistor should be 360Ω. In the case of use Snubberless Triac usage, there is no need for these components.
NOTE: This optoisolator should not be used to drive a load directly. It is intended to be a discrete triac driver device only.
This Click board™ is designed to operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper, which allows the use of both 3.3V and 5V capable MCUs. This Click board™ comes equipped with a library that contains functions and an example code that can be used, as a reference, for further development.
Specifications
Type
Optocoupler
Applications
Can be used for applications like high voltage AC switching where there is a need to protect and electrically isolate two circuits in a switching application.
On-board modules
FOD4216, a random phase snubberless Triac driver that provides uncomplicated high voltage safety isolation from ON Semiconductor.
Key Features
High blocking voltage, high trigger sensitivity, high static dv/dt, high efficiency infrared emitting diode, and more.
Interface
PWM
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on Opto 5 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 | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
Opto 5 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Off−State Output Terminal Voltage | – | – | 600 | V |
Isolation Voltage | 5000 | – | – | Vrms |
Maximum LED Trigger Current | – | – | 1.3 | mA |
Operating Temperature Range | -55 | +25 | +100 | °C |
Software Support
We provide a library for the Opto 5 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 Opto 5 Click driver.
Key functions:
void opto5_cfg_setup ( opto5_cfg_t *cfg );
– Config Object Initialization function.OPTO5_RETVAL opto5_init ( opto5_t *ctx, opto5_cfg_t *cfg );
– Initialization function.void opto5_default_cfg ( opto5_t *ctx );
– Click Default Configuration function.
Examples description
This example demonstrates the use of Opto 5 Click board™.
The demo application is composed of two sections
void application_task ( void ) { Delay_ms( 5000 ); log_printf( &logger, " Pin toggling...rn" ); opto5_pin_toggle( &opto5 ); }
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.Opto5
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
mikroSDK
This Click board™ is supported with mikroSDK – MikroElektronika 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.