TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 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 (137029 times)
  2. FAT32 Library (70155 times)
  3. Network Ethernet Library (56033 times)
  4. USB Device Library (46355 times)
  5. Network WiFi Library (41970 times)
  6. FT800 Library (41298 times)
  7. GSM click (29072 times)
  8. mikroSDK (26512 times)
  9. PID Library (26452 times)
  10. microSD click (25440 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: 5934 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

ISM RX click

0

ISM RX Click is a compact add-on board that contains a complete wireless RF digital data receiver. This board features the MAX1471, a low-power CMOS RF dual-channel receiver configurable through SPI serial interface from Maxim Integrated.

[Learn More]

Rotary B 2 click

0

Rotary B 2 Click is a compact add-on board that allows you to add a precision input knob to your design. This board features the TLC5925, a low-power 16-channel constant-current LED sink driver from Texas Instruments that, combined with a high-quality rotary encoder from ALPS, the EC12D1564402, allows you to add a precision input knob to your design. It also features an LED ring composed of 16 individual blue LEDs that can be used to represent the encoder position more visually.

[Learn More]

Slider click

0

Slider click features a mechanical slide action potentiometer - a slider, which gives a nice feeling when actuating, along with 16 SMD LEDs, that can be used for any kind of visual feedback. The onboard high-resolution 22-bit ADC can detect even the smallest move, faithfully capturing the smoothness of the slider movement, while digitizing its position. The 16 onboard SMD LEDs can give a nice visual feedback of the slider position, but those LEDs can also be used for other purposes since they are not hardwired to the slider.

[Learn More]