Difference between revisions of "Template:UV Sensor C STM32 Guide"

From Waveshare Wiki
Jump to: navigation, search
 
Line 17: Line 17:
  
 
==Experimental phenomenon==
 
==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<br />
+
The default serial port 2 prints data, and using a UV lamp or UV pen to illuminate the sensor will print the UV value<br />
 
[[File:UV-Sensor-C-WIKI5.png]]<br/>
 
[[File:UV-Sensor-C-WIKI5.png]]<br/>

Latest revision as of 07:44, 8 August 2023

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 a UV lamp or UV pen to illuminate the sensor will print the UV value
UV-Sensor-C-WIKI5.png