TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 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 (136537 times)
  2. FAT32 Library (69730 times)
  3. Network Ethernet Library (55840 times)
  4. USB Device Library (46172 times)
  5. Network WiFi Library (41800 times)
  6. FT800 Library (40985 times)
  7. GSM click (28921 times)
  8. PID Library (26383 times)
  9. mikroSDK (26277 times)
  10. microSD click (25297 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

Scanner click

Rating:

5

Author: MIKROE

Last Updated: 2020-05-21

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Optical

Downloaded: 1880 times

Not followed.

License: MIT license  

Scanner Click features a high-sensitivity 300-dpi, linear optical sensor array with integrated 8-bit analog-to-digital converters labeled as the TSL3301CL. This Click board™ has the array that consists of 102 pixels, each measuring 85 μm (H) by 77 μm (W) and spaced on 85 μm centers.

No Abuse Reported

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

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

Do you want to report abuse regarding "Scanner click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
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

Scanner Click

Scanner Click

Native view of the Scanner Click board.

View full image
Scanner Click

Scanner Click

Front and back view of the Scanner Click board.

View full image

Library Description

This library holds functions that allow user to start up the device, write to the device, make one clock pulse and control each individual pin used.

Key functions:

  • void scanner_startup (); - Function is used to start up the linear array sensor.
  • void scanner_serial_cmd ( uint8_t cmd ); - Function is used to write command to the device.
  • void scanner_clock ( ); - Function is used to make SCK pulse.
  • void scanner_read_pixel ( uint8_t *pixel_data ); - Function is used to read pixel status.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes GPIO and LOG structures, sets MOSI and SCK pins as output and MISO pin as input.
  • Application Initialization - Initialization driver enables GPIO and starts device and sets gain and offset.
  • Application Task - Device reads device pixels and logs values in 3 rows, left, center and right.
void application_task ( )
{
    scanner_pixel_log( log_write );
}

Other mikroE Libraries used in the example:

  • Conversions
  • UART

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.

ALSO FROM THIS AUTHOR

TFT Proto 7in - Example

5

TFT Proto 7in carries a 800x480 HT050AWV40T TFT screen covered with a 4-wire resistive touchscreen panel. To drive the 262k-color display, there's an SSD1963 graphic controller with a 8/9/16/24-bit MCU interface. The touchpanel is driven by an advanced STMPE811 controller. TFT Proto 7in uses a 3.3V power supply only.

[Learn More]

EERAM 5v click

5

Add memory to your project with EERAM 5V click. It carries the 47L16/47C16 I2C serial EERAM from Microchip. The click is designed to run on a 5V power supply. It communicates with the target microcontroller over I2C interface, with additional functionality provided by the INT pin on the mikroBUSâ„¢ line.

[Learn More]

Analog Input Demo

0

The application demonstrates Analog input SDK functionality.

[Learn More]