Micro:Bit Advent Calendar Day 12 - Create a Light-sensitive Alarm with micro:bit


#1

Need help for the Micro:Bit Advent Calendar Day 12 (Create a Light-sensitive Alarm with micro:bit)? Just post on this thread and our highly trained team of Micro:Bit ninjas will be able to help you in no time!


#2

Great experiment!

Note for others: I was getting readings for lightVal of 590 when the light sensor was covered by my finger, to 150 in normal room lighting. So I had to reduce the lightVal threshold from 600 to something smaller for my particular sensor.


#3

This worked well thanks guys :slight_smile:
It’s worth noting that P5 is Button A, so if you’re in room light enough to trigger the digital output of the LDR board, you won’t be able to increase the tempo in the sketch which uses Button A to increase the tempo :slight_smile: