UVB-Click-Platine
UVB-Click-Platine
Overview
Das UVB Click Board™ ist eine Ultraviolett-Sensorplatine basierend auf dem GUVB-C31SM-Sensor von GenUV, die einen UV-Index zwischen 0 und 16 messen kann. UVB Click unterstützt integrierte Funktionen von Ultraviolettlichtsensoren, die einfach konfiguriert und in Benutzeranwendungen verwendet werden können. Übermäßige UVB-Strahlung kann nicht nur Sonnenbrand, sondern auch einige Formen von Hautkrebs verursachen. Daher kann es sehr wichtig sein, die Menge an UVB-Licht zu kennen, und dieses Click Board™ ist die perfekte Lösung für diese Aufgabe. Diese Platine kann für verschiedene Anwendungen verwendet werden, bei denen UV-Licht gemessen werden muss, wie z. B. tragbare Geräte, Wetterstationen, Fahrradnavigation und vieles mehr.
Das UVB Click Board™ wird durch eine mikroSDK-kompatible Bibliothek unterstützt, die Funktionen enthält, die die Softwareentwicklung vereinfachen. Dieses Click Board™ wird als vollständig getestetes Produkt geliefert und ist bereit für den Einsatz auf einem System, das mit der mikroBUS™-Buchse ausgestattet ist.
How Does The UVB Click Board™ Work?
The UVB Click Board™ is based on the GUVB-C31SM, a Digital UV Sensor from GENUV Technology. The sensor detects UVB light, as it includes on-chip GaN Sensors for UVB. The current generated by photo detectors is converted and measured by ADC and changed to 16-bit resolution digital data. The measured data can be delivered to host via I2C serial interface. Spectral responsivity of sensor is from 240nm up to 320nm which covers full range of UVB spectrum that's defined as light with wavelength from 280nm up to 315nm.
The atmosphere blocks about 77% of the Sun's UV, of the ultraviolet radiation that reaches the Earth's surface, more than 95% is the longer wavelengths of UVA, with the small remainder UVB. Overexposure to UVB radiation not only can cause sunburn but also some forms of skin cancer. UVB radiation can cause direct DNA damage. This cancer connection is one reason for concern about ozone depletion and the ozone hole.
One of the benefits of UV light is that it causes the body to produce vitamin D (specifically, UVB), which is essential for life. The human body needs some UV radiation to maintain adequate vitamin D levels; however, excess exposure produces harmful effects that typically outweigh the benefits. With all of this in mind it's very useful to know the amount of UVB radiation that you are exposed to, and the UVB Click Board™ is perfect solution for such purpose, and perfect tool for developing wearable devices or weather stations that can report amount of UVB light intensity.
Since sensor is supplied with 3.3V only, also featured on the UVB Click Board™ is voltage level shifter. For the level shifting, the PCA9306 dual bidirectional I2C bus and SMBus voltage level shifter is used. This level shifter IC allows shifting (converting) the I2C signal levels to the voltage level selected by the VCC SEL onboard SMD jumper. This allows both 3.3V and 5V capable MCUs to be interfaced with the UVB Click board™.
SPECIFICATIONS
Type | Optical |
Applications | It can be used for UV measurement applications, sun exposure protection devices, prototyping of wearables, handsets, and various consumer electronics based on received UV light |
On-board modules | GUVB-C31SM |
Key Features | UVB sensing with 16-bit resolution, Support UV index measurement (0~16), Response at only UV range |
Interface | I2C |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
PINOUT DIAGRAM
This table shows how the pinout on UVB Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
NC | 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 |
TECHNICAL SPECIFICATION
Characteristic | Value |
---|---|
UVB sensing resolution | 16-bit |
UV index measurement | 0~16 |
Spectral responsivity | 240nm - 320nm |
Software Support
We provide a library for the UVB 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 UVB click.
Key Functions
void uvb_configuration ( uint8_t reg, uint8_t cfg )
- Configuration registeruint8_t uvb_check_communication ( void )
- Check communicationuint16_t uvb_get_uv_data ( void )
- Get UVB data
Example Description
The application is composed of three sections :
- System Initialization - Initializes I2C module
- Application Initialization - Initialization driver init, check communication and configuration module for measurement.
- Application Task - Reads UVB data and logs to the USBUART every 1500ms.
void application_task ( ) { uint16_t uvb_data; char demo_text[ 20 ]; uvb_data = uvb_get_uv_data( ); IntToStr( uvb_data, demo_text ); mikrobus_logwrite( ">> UVB data: ", _LOG_TEXT ); mikrobus_logwrite( demo_text, _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
- UART
- 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 UVB 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 UVB 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 UVB click.
Key Functions
void uvb_configuration ( uint8_t reg, uint8_t cfg )
- Configuration registeruint8_t uvb_check_communication ( void )
- Check communicationuint16_t uvb_get_uv_data ( void )
- Get UVB data
Example Description
The application is composed of three sections :
- System Initialization - Initializes I2C module
- Application Initialization - Initialization driver init, check communication and configuration module for measurement.
- Application Task - Reads UVB data and logs to the USBUART every 1500ms.
void application_task ( ) { uint16_t uvb_data; char demo_text[ 20 ]; uvb_data = uvb_get_uv_data( ); IntToStr( uvb_data, demo_text ); mikrobus_logwrite( ">> UVB data: ", _LOG_TEXT ); mikrobus_logwrite( demo_text, _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
- UART
- 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 UVB 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.