UVC-Click-Platine
UVC-Click-Platine
Overview
Das UVC Click Board™ ist eine Ultraviolett-Sensorplatine, die ergänzt UVC Light Click Board™ für eine ultimative Ultraviolettlösung. Die Platine basiert auf einem Ultraviolettsensor GUVC-T21GH von GenUV, der UVC-Spektrum im Bereich von 220 nm bis 280 nm und Lichtintensitäten von 0 mW/cm² bis 9,3 mW/cm² messen kann.
Dank seiner hohen Empfindlichkeit und guten Sonnenblindheit kann es eine perfekte Lösung für die Überwachung von Sterilisationslampen sein, die bei der keimtötenden ultravioletten Bestrahlung (UVGI) verwendet werden, einer Desinfektionsmethode, die im Kampf gegen Viren und Bakterien zu einem unverzichtbaren Instrument wird.
Der UVC Click Board™ verfügt über zwei Möglichkeiten zum Lesen der UV-Sensorausgabe: direkter analoger Ausgabewert und digitale Ausgabe dank des MCP3221-ADC-Konverters.
How Does The UVC Click Board™ Work?
The UVC Click Board™ can provide reliable and stable UVC light intensity value by using GUVC-T21GH sensor which have spectral detection range of 220nm - 280nm with output responsivity of 0.6mV/nW (at 254nm). Light intensity is converted in digital value by using MCP3221 a successive approximation A/D converter (ADC) with a 12-bit resolution.
Communication to the MCP3221 is performed using a 2-wire, I2C compatible interface. Standard (100 kHz) and Fast (400 kHz) I2C modes are available with the device. An on-chip conversion clock enables independent timing for the I2C and conversion clocks.
To get reliable readings from sensor, ADC power and voltage reference is supplied from MCP1501T-33E/RW a buffered voltage reference with 3.3V output capable of sourcing up to 20mA of current as a low-drift bandgap-based reference. The bandgap uses chopper-based amplifiers, effectively reducing the drift to zero.
Second way of reading output voltage from sensor is by placing 0 ohm resistor on JP2 position labeled on PCB and reading analog value from AN pin on mikroBUS™. This way you can relay on external voltage reference and ADC with some other desired specifications for your application and you can measure light power intensity up to 14.1 mW/cm².
An SMD jumper labeled as VCC SEL can be moved to the desired position, allowing both 3.3V and 5V MCUs to be used with the UVC Click Board™.
SPECIFICATIONS
Type | Optical,UVC Light |
Applications | The UVC Click Board™ can be used for UV measurement applications, sterilization lamp monitoring, prototyping of wearables, handsets, and various consumer electronics based on received UV light |
On-board modules | GUVC-T21GH |
Key Features | UVC sensing with 12-bit resolution, High Sensitivity, Good Solar Blindness |
Interface | Analog,I2C |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
PINOUT DIAGRAM
This table shows how the pinout on the UVC Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
Analog Voltage Output | AN | 1 | AN | PWM | 16 | NC | |
NC | 2 | RST | INT | 15 | NC | ||
NC | 3 | CS | RX | 14 | NC | ||
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | SCL | I2C Clock | |
NC | 6 | MOSI | SDA | 11 | SDA | I2C Data | |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
PWR | LD1 | - | Power LED Indicator |
VCC SEL | JP1 | Left | Logic level voltage selection: left position 3V3, right position 5V |
JP2 | Jumper | NP | Jumper for direct analog voltage reading from sensor |
TECHNICAL SPECIFICATION
Characteristic | Value |
---|---|
UVC sensing resolution | 12-bit |
Responsivity | 0.6mV/nW |
Spectral Detection Range | 220nm - 280nm |
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.
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.
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.