UVC Click Board
UVC Click Board
The UVC Click Board™ is an ultraviolet sensing board that complements UVC Light Click Board™ for an ultimate ultraviolet solution. The board is based on a GUVC-T21GH ultraviolet sensor from GenUV, capable of measuring UVC spectrum in the range of 220nm up to 280nm and light intensity from 0mW/cm² up to 9.3mW/cm².
With high sensitivity and good solar blindness, it can be a perfect solution for monitoring sterilisation lamps used in ultraviolet germicidal irradiation (UVGI), a disinfection method that is becoming an essential tool in the battle against viruses and bacteria.
The UVC Click Board™ has two ways of reading UV sensor output, direct analogue output value and digital output thanks to the MCP3221 ADC converter.
Software Support
We provide a library for the UVC Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library contains basic functions for working with the UVC Click Board™.
Key Functions
uint16_t uvc_read_raw_data( )
- Read 12bit raw datafloat uvc_get_voltage( )
- Calculate voltagefloat uvc_calculate_power( float voltage )
- Calculate power
Example Description
The application is composed of three sections :
- System Initialization - Initializes I2C module
- Application Initialization - Initializes driver init
- Application Task - Reads sensor raw data and calculating voltage and power data.
void application_task ( ) { uint16_t raw_data; float voltage; float power; char demo_text[ 20 ]; raw_data = uvc_read_raw_data(); IntToStr( raw_data, demo_text ); mikrobus_logWrite( "Raw data: ", _LOG_TEXT ); mikrobus_logWrite( demo_text, _LOG_LINE ); voltage = uvc_get_voltage(); FloatToStr( voltage, demo_text ); mikrobus_logWrite( "Voltage: ", _LOG_TEXT ); mikrobus_logWrite( demo_text, _LOG_TEXT ); mikrobus_logWrite( " mV", _LOG_LINE ); power = uvc_calculate_power( voltage ); FloatToStr( power, demo_text ); mikrobus_logWrite( "Power: ", _LOG_TEXT ); mikrobus_logWrite( demo_text, _LOG_TEXT ); mikrobus_logWrite( " mW/cm2", _LOG_LINE ); mikrobus_logWrite( "----------------------", _LOG_LINE ); Delay_ms( 1500 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- I2C library
- Conversions
Additional Notes and Information
Depending on the development board you are using, you may need a USB UART click, USB 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.
MIKROSDK
The UVC Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
UVC Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.