All tutorials

Automatic Lighting

picobricksBeginner ⏱ 10 mins

Overview

In this project we'll build our very own automatic light, just like the ones that switch themselves on when it gets dark. We'll use the to measure how bright it is around us. When it gets too dark, the will switch on all by itself, and when it's bright again, it turns back off.

🎯

What you'll learn

  • How a light sensor measures the light around it
  • How to use an if/else block to make a decision
  • How to switch an RGB LED on and off automatically