Creators
Earth Bondhon Author
Earth Bondhon
CalculatorToolsProjectExpert
Reviewers
Małgorzata Koperska, MD Steven Wooding
Last updated: November 30, 2025

Smart Night Lamp for Bedroom DIY Circuit Project

🇺🇸
English
Default
🇪🇸
Español
Spanish
🇫🇷
Français
French
🇩🇪
Deutsch
German

*Please note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

Smart Night Lamp for Bedroom Circuit

Build a Smart Night Lamp for the Bedroom with automatic ON/OFF control using LDR or a motion sensor. Step-by-step DIY guide with circuit diagram included.

What is a Smart Night Lamp Circuit?

Smart Night Lamp Circuit is an automatically controlled night lamp which allows the light to turn ON and OFF based on the daytime or the Light available in the room. It utilizes LDRs or PIR based motion detectors for the triggering so that it turns only when required and thus saves energy, as well as offering a simple automatic nighttime lighting system.

Smart night lamp DIY

Introduction: The Smart Night Lamp for Bedroom is a very easy DIY electronics project that you will find useful in your bedroom at night. With the help of light sensors (LDR) or motion detectors, it turns ON when there is darkness in the room and turns OFF with movement during daylight.

The smart lamp is perfect for home automation beginners and enthusiasts who prefer all-in-one, convenient lighting solutions. It may be constructed using ordinary resistors, relays, or ICs and can also operate tiny LED bulbs or low-power lamps. In this guide, I will explain the few parts you need, the working concept of the smart night lamp project, and, as a bonus, a tip on how to fix all components in tight places, along with the circuit diagram of an Arduino smart night lamp based on the cheapest items.

Components Required for the Circuit

  • LDR (Light Dependent Resistor) for light detection
  • PIR Motion Sensor for detecting movement (optional)
  • Transistor (e.g., BC547) or MOSFET for switching
  • Relay (5V–12V) for controlling AC lamps
  • Resistors and capacitors for sensor interface
  • LED lamp or small AC lamp
  • Power supply (battery or adapter)
  • Breadboard/PCB and connecting wires

Working Principle of Smart Night Lamp

LDR-Based Light Detection

The LDR senses ambient light. When light falls below a threshold (night), the transistor activates the relay to switch ON the lamp.

Motion Sensor Integration

A PIR sensor detects movement in the room. When motion is detected, it triggers the transistor/relay to turn ON the lamp. The lamp switches OFF automatically after a delay period without motion.

Relay or Transistor Switching

Relay isolates high-voltage AC lamps from low-voltage sensor circuits. Transistors or MOSFETs act as a switching element for the relay or direct LED lamps.

Circuit Diagram of Smart Night Lamp

  • Connect LDR as a voltage divider with a resistor to the transistor base.
  • Connect the transistor collector to the relay coil and the emitter to . GND
  • Relay NO (Normally Open) contacts connect to the lamp AC supply.
  • PIR sensor can be connected in parallel to the transistor input for motion detection.
  • Apply DC power supply (5V–12V) to sensor and relay.
  • Test sensor response; lamp should turn ON in darkness or motion and OFF otherwise.

Step-by-Step DIY Construction Guide

  1. Mount LDR, PIR sensor, transistor, and relay on a breadb or . PCB
  2. Wire the LDR voltage divider to the transistor base.
  3. Connect the relay to the lamp and the DC power supply.
  4. Test lamp switching at night and day conditions.
  5. Adjust resistor values to change light sensitivity.
  6. Fix PIR sensor delay time if used.
  7. Enclose the circuit in a safe casing for AC lamp operation.

Applications of Smart Night Lamp

  • Bedroom night lighting
  • Hallway or corridor lamps
  • Bathroom night lamp
  • Energy-efficient home lighting
  • DIY home automation projects

Safety Precautions

  • Ensure proper insulation for AC lamp wiring.
  • Avoid touching live wires during testing.
  • Use a relay suitable for lamp current.
  • Keep DC sensor circuit isolated from high-voltage AC.

Troubleshooting Common Issues

Lamp Not Turning ON/OFF

  • Check LDR connections and resistor values.
  • Verify PIR sensor wiring and power supply.

Flickering or Unstable Light

  • Check relay contacts and supply voltage stability.

Sensor Not Detecting Properly

  • Adjust LDR threshold resistor.
  • Ensure the PIR sensor is not obstructed or too far from the detection zone.

Frequently Asked Questions - Smart Night Lamp for Bedroom Circuit:

What is a smart night lamp circuit?

A circuit that automatically turns a lamp ON/OFF based on light or motion sensors.

Which sensors are used?

LDR for light detection and PIR sensor for motion detection.

Can it control AC lamps?

Yes, using a relay suitable for the lamp's current.

Is it suitable for beginners?

Yes, the circuit is simple and uses basic components.

How to adjust sensitivity?

Change resistor value in LDR voltage divider or adjust PIR sensor settings.

Can it be battery-powered?

Yes, small DC lamps or LEDs can use batteries, while AC lamps need relay control.

What is the relay for?

To safely switch high-voltage AC lamps using low-voltage sensor output.

Why does the lamp flicker?

Check relay contacts, power stability, and sensor wiring.

Can it be used in hallways?

Yes, ideal for any place needing automatic night lighting.

Is it energy efficient?

Yes, it turns the lamp ON only when needed, saving power.

Comments

Please login to comment.

Earth Bondhon

Earth Bondhon

Calculator Tools Project

Md. Jony Islam is a highly skilled professional with expertise in electronics, electrical, mechanical, and civil engineering, as well as finance. Specializing intransformer service and maintenance for 33/11kV substations, he ensures reliable and efficient electrical systems. His mechanical engineering skills drive innovative designs, while his financial acumen supports effective project budgeting. With a strong foundation in civil engineering, he contributes to robust infrastructure development. Md. Jony Islam's multidisciplinary approach ensures efficiency, quality, and reliability across all projects.