TOP Contributors

  1. MIKROE (2642 codes)
  2. Alcides Ramos (347 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 (136223 times)
  2. FAT32 Library (69489 times)
  3. Network Ethernet Library (55708 times)
  4. USB Device Library (45992 times)
  5. Network WiFi Library (41639 times)
  6. FT800 Library (40795 times)
  7. GSM click (28789 times)
  8. PID Library (26332 times)
  9. mikroSDK (26058 times)
  10. microSD click (25145 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
Example

LightHz click - Example

Rating:

5

Author: MIKROE

Last Updated: 2016-02-18

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Optical

Downloaded: 5904 times

Followed by: 2 users

License: MIT license  

This project demonstrates working with TSL230RD.

Pulses from TSL230BR are counted using RB0/INT interrupt on rising edge on pin RB0 of PIC18F45K22 MCU. Timer1 generates interrupt after 1/4 second for calculating frequency.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "LightHz click - Example" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "LightHz click - Example" changes.

Do you want to report abuse regarding "LightHz click - Example".

  • mikroSDK Library 2.0.0.0
  • Comments (0)

Example Blog

LightHz click

LightHz click

Front and back view of LightHz click board designed in mikroBUS form factor. mikroBUS is specially designed pinout standard with SPI, I2C, Analog, UART, Interrupt, PWM, Reset and Power supply pins.

View full image

TSL230BR is a programmable light-to-frequency converter. The output can be either a pulse train or a square wave (50% duty cycle) with frequency directly proportional to light intensity. Device sensitivity and frequency scaling can be selected using available SMD jumpers.

Examples are written for:
- EasyPIC v7 - PIC18F45K22
- EasyPIC PRO v7 - PIC18F87K22
- EasyMx PRO v7 for Stellaris(R)  - LM3S9B95, LM4F232H5QD
- EasyMX PRO v7 for ST - STM32F107VC
- EasyPIC v7 for dsPIC30 - dsPIC30F4013
- EasyAVR v7 - ATmega32

LightHz click schematics

LightHz click schematics

Board is set to use 3.3V power supply by default. Solder PWR SEL SMD jumper to 5V position if used with 5V systems.

View full image

ALSO FROM THIS AUTHOR

GSM/GNSS click

0

GSM/GNSS click combines GPS/GLONASS location tracking with GSM module capability for mobile communication. The click features Quectel’s MC60 quad-band module.

[Learn More]

Current Limit 6 click

0

Current Limit 6 Click is a compact add-on board representing a current-limiting solution. This board features the MAX17608, adjustable overvoltage, and overcurrent protection device from Maxim Integrated, now part of Analog Devices. This Click board™ is ideal for protecting systems with the flexible input overvoltage protection range from 4.5V to 60V, and the adjustable input undervoltage protection range is 4.5V to 59V. Also, the maximum current limit is 1A and can be programmed through a digital potentiometer MAX5401. When the device current reaches the programmed threshold, the device prevents further current increases by modulating the FET resistance.

[Learn More]

NFC Tag 5 click

0

NFC Tag 5 Click is a compact add-on board that contains a compact NFC tag IC. This board features the M24LR64E-R, a dynamic NFC/RFID tag IC with a dual interface 64-Kbit EEPROM from STMicroelectronics. It features an I2C interface alongside an RF contactless interface operating at 13.56MHz, organized as 8192×8 bits in the I2C mode and 2048×32 bits in the ISO 15693 and ISO 18000-3 mode 1 RF mode. The M24LR64E-R also features an energy harvesting analog output and a user-configurable digital output pin, used as an interrupt, toggling during either RF write in progress or RF busy mode.

[Learn More]