Template: UV Sensor Arduino Guide
From Waveshare Wiki
Arduino User Guide
The Arduino example is written for the Arduino UNO. If you want to connect it to other Arduino boards, you may need to change the connection.
Hardware connection
Sensor | Arduino | Description |
---|---|---|
VCC | 5V | Power input |
GND | GND | Power ground |
AOUT | A0 | Analog output |
Examples
- Download the demo codes to your PC and unzip
- Install the Arduino IDE in your PC
- Go into UV-Sensor-code/Arduino/UV_Sensor
- Run the UV_Senosr.ino file
- Select the correct Board and the Port
- Build the project and upload it to the board.
- Open the serial monitor of the Arduino IDE or the SSCOM software and check the serial data.