ireclipse 2.0.0.0
|
IR eclipse click carries an EE-SX198 photo interrupter sensor. This sensor consists of an infrared transmitter and receiver facing each other and spaced apart by a 3mm slit.
We provide a library for the IrEclipse 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 IrEclipse Click driver.
- Initialization function.void ireclipse_cfg_setup ( ireclipse_cfg_t *cfg );
IRECLIPSE_RETVAL ireclipse_init ( ireclipse_t *ctx, ireclipse_cfg_t *cfg );
void ireclipse_default_cfg ( ireclipse_t *ctx );
uint8_t ireclipse_int_status ( ireclipse_t *ctx );
This is an example of IR ECLIPSE click board.
The demo application is composed of two sections :
Configuring clicks and log objects.
This is a example which demonstrates the use of IR eclipse Click board. When the beam from the transmitter is eclipsed by placing an object in the gap ( like a piece of paper ), when the sensor is triggered, the counter is incremented by one. Results are being sent to the Usart Terminal where you can track their changes. Data logs on usb uart when the sensor is triggered.
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.