TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136634 times)
  2. FAT32 Library (69841 times)
  3. Network Ethernet Library (55893 times)
  4. USB Device Library (46227 times)
  5. Network WiFi Library (41864 times)
  6. FT800 Library (41087 times)
  7. GSM click (28945 times)
  8. PID Library (26402 times)
  9. mikroSDK (26317 times)
  10. microSD click (25329 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

IR Beacon click

Rating:

2

Author: MIKROE

Last Updated: 2019-03-15

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: Optical

Downloaded: 3896 times

Not followed.

License: MIT license  

IR Beacon click is a mikroBUS add-on board with an array of nine high speed infrared emitting diodes. It functions as a beacon device, transmitting infrared rays in a wide angle, which can be detected by nearby infrared receivers (such as the one on IR click).

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "IR Beacon click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "IR Beacon click" changes.

Do you want to report abuse regarding "IR Beacon click".

  • mikroSDK Library 2.0.0.0
  • Comments (1)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

IR Beacon Click

IR Beacon Click

Front and back view of the IR Beacon Click

View full image

Library Description

The library covers all the necessary functions to control IR Beacon Click board.
IR Beacon Click communicates with the target board via PWM module.
This library contains drivers for enabling or disabling PWM and for enabling, disabling or reseting MOD.

Key functions:

  • void irbeacon_enablePwm(); - Function enables the PWM by seting PWM pin.
  • void irbeacon_enableMod();- Function enables the device by seting MOD pin.
  • void irbeacon_resetMod(); - Function resets the device.

Examples description

The application is composed of three sections:

  • System Initialization - Initializes GPIO structure, sets AN and PWM pins as output.
  • Application Initialization -  Enables GPIO and PWM, sets the frequency and duty cycle and enables PWM.
  • Application Task - (code snippet) This is a example which demonstrates the use of IR Beacon Click board. It shows how to enable the device and gradualy increase the duty cycle.
void applicationTask() 
{
    irbeacon_enableMod();
    
    for ( dutyCycle = 250; dutyCycle < 3000; dutyCycle += 250 )
    {
        irbeacon_pwmSetDuty( dutyCycle );
        Delay_ms( 500 );
    }
    
    irbeacon_disableMod();
    Delay_ms( 1000 );
}  

Other mikroE Libraries used in the example:

  • PWM

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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

IR Beacon Click Schematic

IR Beacon Click Schematic

Schematic of the IR Beacon Click board

View full image

IR Beacon Click Demo

Demonstrational video of the IR Beacon Click board

Watch on YouTube

ALSO FROM THIS AUTHOR

Stepper 14 Click

5

The Stepper 14 Click is a Click board that features the DRV8847PWPR, a step motor driver, from Texas Instruments. This Click boardâ„¢ provides a bipolar step motor controle, It features an H-bridge bipolar step motor driver, which supports full-, half-, quarter-, or eighth-step modes.

[Learn More]

BLE 3 click

0

BLE 3 click is a Bluetooth Low Energy radio module which carries u-blox's NINA-B1 radio. The click can communicate with a target MCU through UART, SPI or I2C.

[Learn More]

Color click

0

Color click is a color light sensing Click board™, featuring the popular TSC3471 integrated color sensor. It is capable of sensing red, green, and blue light components, as well as the clear light.

[Learn More]