Night Light

Hi guys! Do you know to make a night light using micro:bit??

Introduction

nightlight is a small light fixture, usually electrical, placed for comfort or convenience in dark areas or areas that may become dark at certain times, such as at night or in an emergency. So, we are going to make a night light using micro:bit.

Video

This video will show you how to use the light sensor on micro:bit to make a night light.

Hardware Preparation

This is the hardware connection and the components needed.

Untitled Sketch Bb
Figure 1 : Hardware connection.

Sample Code

Capture
Figure 2 : Programming

References :

  1. Light Level

Thank you

Thank you for reading this tutorial and we hope it helps your project development. If you have any technical inquiry, please post at Cytron Technical Forum.

Leave a Comment

Your email address will not be published.

Share this Tutorial

Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest
Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest

Latest Tutorial

Getting Started with Robotic Operating System (ROS) and JetRacer AI Kit
Barrier Gate with micro:bit and MakeCode
Play MP3 File on Maker Pi Pico Using CircuitPython
Remote Jetson Nano using SSH with Visual Studio Code
3.3V Serial LCD with Raspberry Pi Pico via SPI or I2C
Tutorials of Cytron Technologies Scroll to Top