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.
opto3_cfg_setup
Config Object Initialization function. opto3_init
Initialization function. opto3_get_in1
This function gets input 1 pin state. opto3_get_in2
This function gets input 2 pin state. opto3_set_out1
This function sets output 1 pin 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.
Reads the input pins state and sets their respective output pins to the same logic state. The output pins state will be displayed on the USB UART where you can track their changes.
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.