ireclipse2
2.1.0.0
|
IR Eclipse 2 Click is a compact add-on board that adds photo interrupter ability to any application. This board features the EE-SX1330, a transmissive photomicrosensor with a phototransistor output from OMRON. This compact interrupter sensor senses objects or object positions with an optical beam. It can sense any object less than 3mm as it is the space between the photomicrosensor and phototransistor in which an object can fit.
We provide a library for the IR Eclipse 2 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.
This library contains API for IR Eclipse 2 Click driver.
ireclipse2_cfg_setup
Config Object Initialization function. ireclipse2_init
Initialization function. ireclipse2_get_state
This function detects eclipse states. ireclipse2_enable
This function enables the transmitter of the photo-microsensor. ireclipse2_disable
This function disables the transmitter of the photo-microsensor. This example demonstrates the use of the IR Eclipse 2 Click board by detecting eclipse states.
The demo application is composed of two sections :
Initialization of GPIO module, log UART and enables the transmitter of the photo-microsensor.
When the beam from the transmitter is eclipsed by placing an object in the gap ( like a piece of paper ), the counter is incremented by one when the sensor is triggered.
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:
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 MikroElektronika compilers.