How to Make a Motion and Darkness Sensing Night Lamp #Arduino

From instructables user osc2:

This is a battery powered DIY project. The device automatically switches itself on when motion is detected. It can be used in bedrooms, washrooms, closets or dark court etc. to have light if it is needed, no AC power is needed. The colour of the RGB LED can be set up with a help of the left potentiometer. There is a second potentiometer, which can modify the sensitivity for external light (sun, other lamps), with that it will turn the LED-s on only if it is really dark. The Arduino is in sleep mode, only the motion detector is powered on. In case of motion, the Arduino is powering on checking the photo resistor, if the measured AD value of the photo resistor is brighter than the level of the right potentiometer it turns on the LED as long as the motion sensor is active. Before the LED is turned on the Arduino checks the level of the left potentiometer, and change the colour according to this level. It starts with one colour (red, blue, green), than two colours (red-blue, blue-green, red-green) and three colours (red-blue-green). The sensitivity of the motion sensor and the activation time is changeable also on the motion module with dedicated potentiometer. It need 3 pcs of AAA batteries, because of the light sensor and power down mode it can operate for long time of period.

Full instructable


Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 11/15/2024 Featuring Adafruit bq25185 USB / DC / Solar Charger with 3.3V Buck Board! (Video)

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — The 2024 Recap Issue!

Maker Business – Adafruit Daily — Apple to build another chip at TSMC Arizona

Electronics – Adafruit Daily — SMT Tip – Stop moving around!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !


No Comments

No comments yet.

Sorry, the comment form is closed at this time.