Creators
Rojony Khatun Author
Rojony Khatun
CalculatorToolsProjectExpert
Reviewers
Małgorzata Koperska, MD Steven Wooding
Last updated: November 24, 2025

Automatic On and Off Solar Light Circuit | DIY Guide & Schematics

🇺🇸
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!

Automatic On and Off Solar Light Circuit

Build an automatic on/off solar light circuit using LDR or comparator/relay, MOSFET/SCR switching, battery charging, and night detection — full parts, wiring, a...

What is an Automatic On and Off Solar Light Circuit?

An automatic solar light circuit is an independent electric system that has a solar panel and a battery that controls the lamp to ON when it is nighttime and OFF during the day. It eliminates mains power and manual switch over - it does it automatically day after day. Examples of common installations are garden lighting, street lighting, signage lighting, and emergency lighting.

2 Wire Sensor & Magnetic Contactor Wiring Summary:

Power Supply: Sensor and contactor coil voltage must match (commonly 24V DC or 230V AC)
Wiring: Sensor wired in series with contactor coil control circuit
Operation: Sensor closes circuit to energize contactor coil
Protection: Use appropriate fuses and isolation devices

2-wire proximity sensor wiring

A 2-wire sensor is a basic device frequently applied in detecting conditions such as position, presence, proximity, and by signaling the magnetic contactor to manage electrical burden such as motors. Sending a 2-wire sensor to a magnetic contactor can be handled by wiring the sensor series or parallel to the contactor coil control circuit. The sensor is a switch that either opens or closes the circuit to either energize or de-energize the contactor coil. Since 2-wire sensors usually run on DC power, this is important to check that the voltage matches with contactor coil. This connection is often used in automation, whereby when the sensor detects something, it turns on the motor or machine through the use of the contactor. Realisation of the sensor contacts system is based on safe and reliable functioning obtained by proper wiring, power supply, and protective devices.

magnetic contactor sensor integration

Component Connection Description
2 Wire Sensor Connected in series with the contactor coil Acts as a control switch based on detection
Contactor Coil Receives control voltage via sensor Energizes main contacts to control the load
Power Supply Supplies voltage to sensor and coil circuit Must match device ratings
Protective Fuse In series with the control circuit Protects wiring and devices from faults

Frequently Asked Questions - Automatic On and Off Solar Light Circuit:

What is an automatic on and off solar light circuit?

A system that charges a battery by day with a solar panel and switches the lamp ON automatically at dusk and OFF at dawn using a light sensor and switching element.

Which sensor is best for night detection?

An LDR (photoresistor) is common and cheap; for more accuracy use a digital light sensor (BH1750/TSL2561) or a comparator with LDR and potentiometer.

Do I need a charge controller?

Yes — for reliable battery life use a proper solar charge controller (PWM or MPPT). Small hobby lights may use a blocking diode but risk battery damage.

Should I use a relay or MOSFET to switch the lamp?

Use MOSFETs for silent, efficient DC switching; use relays for simple setups or when switching AC or inductive loads.

How do I stop the lamp from flickering at dusk?

Add hysteresis (positive feedback) to comparator circuits or implement software debounce/timer in microcontroller designs.

How do I size battery capacity?

Multiply lamp power (W) by required hours to get Wh; divide by battery voltage (V) to get Ah, then add margin for depth-of-discharge and losses.

Can I use a Li-ion battery?

Yes, but always use a proper BMS and a charger designed for lithium chemistry to prevent overcharge and thermal events.

Where should I place the LDR sensor?

Place LDR away from the lamp so it measures ambient light, not the lamp’s own illumination; shield it from rain and stray reflections.

What causes the battery not to charge fully?

Wrong panel orientation, shading, wiring errors, faulty diode/charge controller, or insufficient panel rating can prevent full charging.

Can I add motion sensing to save battery?

Yes — add a PIR sensor to boost brightness only when motion is detected; use microcontroller for advanced logic.

Comments

Please login to comment.

Rojony Khatun

Rojony Khatun

Calculator Tools Project

Rojony Khatun is the creator of a free online tools website designed to simplify everyday and engineering-related calculations for students, professionals, and hobbyists. The platform offers a wide variety of basic and advanced calculators across key categories, including Electrical Calculators, Electronic Calculators, and Time & Date Calculators, helping users solve problems quickly and accurately.