UV sensor
-
This post is deleted! -
@quentho I understand the data sheet that the output is an analog value, expected in the range of 0-~3V. 0V without UV light. Did you apply UV light to the sensor?
-
@robert-hh i use this code :
adc = machine.ADC() apin = adc.channel(pin='P16') val=apin.value() print("UV:",val) -
@quentho That should work. P16 on SiPy is not used for something else. I assume that you powered the sensor and applied it to UV light.
-
@robert-hh thank you it's working
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login