2. Soldering the headers 4. SMD Jumpers Frequency scaling and sensitivity Before using your click board, make sure selection of the sensor can be set by to solder the provided 1x8 male headers bringing the logic combination to S0 S3 lines to both sides of the board. Two 1x8 male according to sensor specicfi ation. This can headers are included with the board in be done by soldering the package. corresponding SMD 1 jumpers to appropriate logic voltage levels, or LightHz click they can be connected 2 3 to your MCU and determined by software. Board comes with SMD jumpers which are set to ON-BOARD 1. Introduction congfi uration of scaling and sensitivity. If you want those lines to be available to your MCU, just resolder SMD jumpers to MCU position. Default on-board congfi uration for scaling is (S2, S3) = (H, H), and for sensitivity is (S0, S1) = (H, H). Turn the board upside down, so that Turn the board upward again. Make sure bottom side is facing you upwards. Place to align the headers so that they are shorter parts of the header pins in the perpendicular to the board, then solder the Front and back side appearance both soldering pad locations. pins carefully. of the LightHz click Board LightHz Click is an accessory board in mikroBus form factor. Board features 3. Plugging the board in TSL230BR programmable light-to-frequency click converter. The output can be either a pulse Once you have soldered the headers your train or a square wave (50% duty cycle) board is ready to be placed into desired BOARD with frequency directly proportional to light mikroBUS socket. Make sure to align the www.mikroe.com intensity. Device sensitivity and frequency cut in the lower-right part of the board scaling can be determined by the MCU, or with the markings on the silkscreen at the LightHz click Manual selected using available SMD jumpers if used mikroBUS socket. If all the pins are aligned ver. 1.00 in hardware selection congfi uration. Solder correctly, push the board all the way PWR SEL SMD jumper to 5V position if used into the socket. with 5V systems.6. Sensitivity and scaling 5. LightHz click Board Schematics Hardware configuration of frequency scaling and sensitivity selection can be adjusted by resoldering S0 S3 SMD jumpers to H - logic high or L - logic low positions, according to the following table: S0 S1 Sensitivity S2 S3 f Scaling 0 L L Power down L L 1 L H 1x L H 2 H L 10x H L 10 H H 100x H H 100 S0 SEL S2 SEL 1 P0 P2 1 MCU 2 S0 S2 2 MCU ON-BRD 3 3 ON-BRD 7. Code Examples VCC VCC S0 VCC VCC S2 1 1 Once you have done all the necessary H 2 2 H E1 C1 L 3 3 L PWR SEL VCC 10uF 100nF preparations, its time to get your click VCC board up and running. We have provided +3.3V +5V SENSITIVITY FREQUENCY U2 the examples for mikroC, mikroBasic and SELECTION S0 1 8 S3 SCALING VCC S0 S3 VCC P1 P0 S1 2 7 S2 mikroPascal compilers on our Libstock AN PWM S1 S2 P3 FREQ S1 3 6 FREQ S3 RST INT 1 OE OUT 1 P2 4 5 website. Just download them and you are CS TX H 2 GND VDD 2 H R1 SCK RX L 3 3 L 220 TSL230RD ready to start. SCL MISO SDA MOSI +3.3V +5V GND GND S1 SEL S3 SEL 3 3 ON-BRD 2 S1 S3 2 ON-BRD .com MCU 1 P1 P3 1 MCU 8. Support MikroElektronika oers ff Free Tech Support (www.mikroe.com/esupport) until the end of product lifetime, so if something goes wrong, we are ready and willing to help MikroElektronika assumes no responsibility or liability for any errors or inaccuracies that may appear in the present document. Specification and information contained in the present schematic are subject to change at any time without notice. Copyright 2012 MikroElektronika. All rights reserved. 1 2 3