TINKER PiEDESIGN IN INDIA

UV sensor ML8511 with TinkerPie

How strong is the sunshine? Sunscreen reminders.

TypeAnalog sensors
Connect toP10-P13
GivesUV level 0-15
SimulatorYes: a control appears under the simulated board

How it works

The ML8511 is sensitive to ultraviolet light (UV-A and UV-B), the invisible part of sunlight that causes sunburn. Its output voltage rises with UV strength, and TinkerPie turns it into an approximate UV level.

How to wire it

Plug the module's A0 / OUT into P10 (or P11-P13 when Wi-Fi is off), VCC to 3.3 V, GND to GND.

Code

In blocks: Accessories category in TinkerPie Studio. As code:

// JavaScript
sensors.uvIndex(Pin.P10)

// Arduino C++
sensors::uvIndex(Pin::P10)

Good to know

Try it in TinkerPie Studio

Similar modules

More projects to try

Questions

Can I try the UV sensor ML8511 without buying one?

Yes. In TinkerPie Studio the simulator shows a control for it under the board, so you can test your program before you build it.

Is the reading the official UV index?

It is a good estimate for learning. Weather services use calibrated instruments for the official UV index.