opto3
2.0.0.0
|
Opto 3 click is a relay Click boardâ„¢, equipped with two pairs of optically isolated solid-state relays (SSR).
We provide a library for the Opto3 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Opto3 Click driver.
void opto3_cfg_setup ( opto3_cfg_t *cfg );
OPTO3_RETVAL opto3_init ( opto3_t *ctx, opto3_cfg_t *cfg );
OPTO3_STATE opto3_get_in1 ( opto3_t *ctx );
OPTO3_STATE opto3_get_in2 ( opto3_t *ctx );
void opto3_set_out1 ( opto3_t *ctx, OPTO3_SWITCH state );
void opto3_set_out2 ( opto3_t *ctx, OPTO3_SWITCH state );
Opto 3 click to be used in applications that require reinforced galvanic isolation for both their input and output stages.
The demo application is composed of two sections :
Initializes GPIO interface.
Switches ON or switches OFF the both outputs depending on the states of the inputs, respectively.
Input state is active low, and output state is active high.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
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.