OFF
MIKROE-1377
30 g
Status:
IR Click is a compact add-on board representing a compact and easy solution for adding an infrared (IR) remote control to your design. This board features the TSOP38238, a miniaturized sensor for receiving the modulated signal of QEE113 IR emitting diode from Vishay Semiconductors. This IR sensor module consists of a photodetector, pre-amplifier, and automatic gain control to surpass ambient noise with signals transmitted to it in the near-infrared range, tuned to a carrier frequency of 38kHz with a beam and viewing angle of 45 degrees. It also communicates with the target MCU via selectable GPIO lines. This Click board™ is suitable for IR remote control applications that improve your system and allow you more flexibility.
IR Click is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
This product is no longer in stock
Availability date:
IR Click is based the TSOP38238, a miniaturized sensor for receiving the modulated signal of QEE113 IR emitting diode from Vishay Semiconductors. All Vishay IR receivers have the same circuit architecture consisting of a photodetector, pre-amplifier, and automatic gain control (ACG) to surpass ambient noise with transmitted signals. Tuned to a carrier frequency of 38kHz with a transmission distance of 45m and beam and viewing angle of 45 degrees, this Click board™ represents a compact and easy solution allowing you to control A/V equipment with IR remote controller.
The infrared signal generates an equivalent photocurrent in the integrated photo PIN diode. The DC part of the signal is blocked in the bias circuit, while the AC part is passed to a trans-impedance amplifier, followed by an automatic gain-control amplifier and an integrated bandpass filter. A comparator, an integrator, and a Schmitt Trigger stage perform the final signal conditioning. The blocks “Automatic Gain Control” and “Automatic Threshold Control” dynamically control the operating points and the threshold levels required to suppress noise from disturbance sources. The digital output signal has an active-low polarity and consists of an incoming optical burst envelope signal without the carrier frequency.
IR Click communicates with the target MCU via selectable GPIO lines. The selection can be made by positioning SMD jumpers to an appropriate position marked as GPIO or UART. The default configuration of this Click board™ allows transmission via the PWM pin of the mikroBUS™ socket and reception via the AN pin, while the other configuration allows communication using TX and RX pins.
This Click board™ can operate with both 3.3V and 5V logic voltage levels selected via the PWR SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
Type
Optical
Applications
Can be used for IR repeater applications
On-board modules
TSOP38238 - miniaturized sensor for receiving the modulated signal of IR emitting diode from Vishay Semiconductors
Key Features
Photo detector and preamplifier in one package, AGC to suppress ambient noise, improved shielding againts electric field disturbance, high sensitivity, long receiving range, flexibility, low power consumption, and more
Interface
GPIO,UART
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V or 5V
This table shows how the pinout on IR Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | PWR SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
JP2-JP3 | - | Left | Communication Interface Selection GPIO/UART: Left position GPIO, Right position UART |
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
Carrier Frequency | - | 38 | - | kHz |
Transmission Range | - | - | 45 | m |
View Angle | - | 45 | - | deg |
We provide a library for the IR 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 IR Click driver.
Key functions
ir_get_an_state
IR get AN pin state function.
ir_nec_send_command
IR NEC send data function.
ir_nec_read_command
IR NEC data reading function.
Example Description
This is an example that demonstrates the use of the IR Click board.
void application_task ( void )
{
#ifdef IR_TRANSMITTER_MODE
log_printf( &logger, " Sending message." );
for ( uint8_t cnt = 0; cnt < 8; cnt++ )
{
ir_nec_send_command( &ir, 0x00, tx_data[ cnt ] );
log_printf( &logger, "." );
Delay_ms( 50 );
}
log_printf( &logger, "rn Message sent! rn" );
log_printf( &logger, "- - - - - - - - - - - - rn" );
Delay_ms( 500 );
#else
uint8_t arr;
char rx_data;
err_t err_flag = ir_nec_read_command ( &ir, &arr, &rx_data );
if ( IR_OK == err_flag )
{
log_printf( &logger, "%c", rx_data );
}
else
{
log_printf( &logger, "Read ERROR! rn" );
}
Delay_ms( 50 );
#endif
}
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.
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.
NOTE: Please be advised that any peripheral devices or accessories shown connected to the Click board™ are not included in the package. Check their availability in our shop or in the YMAN section below.