Template: UV Sensor C STM32 Guide
From Waveshare Wiki
Working with STM32
This demo has been verified on NUCLEO-F103RB (chip model STM32RBT6). If you need to transplant, please pay attention to the relevant configuration and connection method.
Hardware connection
Connection with XNUCLEO-F103RB:
UV Sensor (C) | XNUCLEO-F103RB |
VCC | 3.3V/5V |
GND | GND |
SDA | SDA/D14/PB9 |
SCL | SCL/D15/PB8 |
Experimental phenomenon
The default serial port 2 prints data, and using UV lamp or UV pen to illuminate the sensor will print the UV value