Make a flameless electronic candle using simple electronics and LEDs

Publisher:SunshineHopeLatest update time:2023-06-05 Source: elecfans Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Candles have been very useful since ancient times, guiding mankind at night even before Edison came up with the idea of ​​the light bulb. Today, from churches to kitchens, candles not only provide lighting when needed, but also add beauty and provide a sense of warmth. While regular candles work fine, they quickly melt, making the place dirty and sometimes also a fire hazard if left unattended. So, in this tutorial, we will use some simple electronics and LEDs to make a flameless electronic candle. Moreover, this smart candle will automatically turn on at night or in the dark and turn off during the day.


Required Materials

LM358 Integrated Circuit

LDR (Light Dependent Resistor)

1M and 1K resistors

Light Emitting Diode

10K Pot

12V female DC power jack and 12V adapter

Cardstock and perforated board

LM358 – Operational Amplifier Comparator

The brains behind this circuit is the LM358 IC, which acts as a comparator in this particular design. Before we dive in, let’s take a brief look at what it is. The LM358 is an Operational Amplifier (Op Amp) IC. This IC consists of two operational amplifiers that can handle voltages between 3.3V to 32V and has a very low supply current consumption of 500μA. The IC looks like this:

poYBAGMIdrSAIyxvAAElAf97wD8065.png

It is commonly used to build simple comparator and amplifier circuits and can also be found in active filter circuits, waveform shapers, etc. In this project, we will use LM358 as a voltage comparator. Voltage comparator is used to compare two voltages and find out which one is greater than the other and then turns the output high or low based on that voltage. So, if we apply voltage to the inverting and non-inverting inputs and if the voltage on the non-inverting input is greater than the voltage on the inverting input, then the output becomes high and vice versa, the output becomes low. This project works exactly on this principle. The voltage comparison formula is given below:

V OUT =AO (V in+ - V in- )

Where AO is the open loop gain of the operational amplifier. Vin+ is the input voltage at the non-inverting input and Vin- is the input voltage at the inverting input. Therefore, if Vin+ is greater than Vin- then the output will be high, otherwise it will be low.

pYYBAGMIdrCAMVZPAABF60VV2bk035.png

LDR

If the op-amp is the brain of our circuit, then the LDR is the sensory organ. A light-dependent resistor (LDR) or photoresistor is a light-controlled resistor. Its resistance decreases as the light intensity increases and vice versa. In fact, when light is incident on the LDR, the semiconductor absorbs the photons of light, the bonding electrons jump to the conduction band, and the resistance decreases due to photoconductivity.

poYBAGMIdqyAfLS7AATGoPwGTZw284.png

Circuit diagram and description

The circuit is not difficult. Given below is the complete circuit diagram of the electronic candle.

poYBAGMIdqiALbPyAACNCBQJbXU864.png

As shown in the circuit diagram, connect a 1K resistor to pin 1 of the IC and then connect the positive leg of the LED to this resistor and the negative leg to ground. Now connect the middle pin of the 10K potentiometer to pin 2 of the IC and connect ground and 12V to the remaining pins of the potentiometer. Connect a 1M resistor to 12V and connect the LDR in series with this resistor. Now, connect the other end of the LDR to the ground of the circuit. Connect the common point of the LDR and the 1M resistor to pin 3 of the IC. Connect 12V to pin 8 and ground to pin 4 of the IC and you are ready. You don't need to be very picky about the resistors, we have already connected them. But make sure the resistor connected to the LDR is megohms and the resistor with the LED is a few thousand.

We built the complete circuit on a dummy board to make it compact and easy to use. It really is a simple circuit, you just need to sharpen your soldering skills and start designing it. First, mount the 12V female DC power jack on the perfboard. Keep the pin configuration of this jack in mind while designing the circuit. As shown in the image below:

pYYBAGMIdqSAFEfVAABW04hsdEg238.png

As we have discussed above about the pinout of op-amp, resistors and LDR have no polarity. After the soldering work is completed, the board should look like the following image.

pYYBAGMIdp-AUDGoAALh8R7vH4g479.png

Smart Electric Candle - Working

After designing the circuit on the perfboard and soldering it, connect the 12V adapter to the female jack and your LED must glow. Now, to calibrate the comparator, adjust the 10K potentiometer to a level where the LED just turns off. Now cover the LDR with your hand and you will see the LED light up. You can adjust the sensitivity of the LDR by adjusting the potentiometer.

Now, let's understand how this candle works. As we already know, in darkness, the resistance of the LDR increases to megohms and decreases to a few hundred ohms as the light intensity increases. So since the resistance is very low, the voltage across the non-inverting signal is very low compared to the inverting end, because we have connected the 10K pot. So in this case, the output voltage is also low, so the LED does not turn on. But in darkness, the resistance increases to megohms, which is very high compared to the 10K pot, so the LED glows.

Adjusting the pot will manipulate the sensitivity. By sensitivity, I mean at what intensity of light your comparator turns on the LED. If you adjust the pot close to the LED, then it will detect tiny darkness as well. But if you adjust it far away before the LED lights up, then it will only detect high darkness. You can also test the sensitivity by placing your hand in front of the LDR. If it detects your hand far away, it is highly sensitive, if you need to cover it to light up the LED, it is not that sensitive.

pYYBAGMIdpyAdBgOAAOVnGtWwWQ730.png

If you want to use multiple LEDs then it's not a problem. Connect two or three LEDs in series and finally connect them to where we connected a single LED and its perfect. But make sure your comparator can provide enough current to power all the LEDs.


To make the candle, you can use anything to cover the LED. I used card stock and tissue paper. Roll up the card according to the size of the LED and cut a flame shape or any shape you want from it to make it look attractive. Cover the LED with this candle and you have made your own smart electronic candle.


Reference address:Make a flameless electronic candle using simple electronics and LEDs

Previous article:24V Handheld Vacuum Cleaner Solution Based on TMI82312
Next article:Modern digital approaches to microphone processing

Recommended ReadingLatest update time:2024-11-16 21:34

The importance of power factor to LED lamps
What is the power factor of LED lamps? Power factor is an important parameter of LED lamps. Knowing what power factor is will help us further understand LED lamps.   1. Power factor The power factor characterizes the ability of a lamp to output active power. Power is a measure of the rate of energy transfer. In a
[Power Management]
The importance of power factor to LED lamps
Analysis of excellent solutions for intelligent energy-saving monitoring system of LED lamps
Urban street lighting is an indispensable public facility in people's daily life. It is understood that the current power consumption of street lighting in China accounts for about 15% of the total power consumption. Faced with the tense situation of power supply, manual control and street light inspection have become
[Power Management]
[51 MCU Quick Start Guide] 2.4: 74HC595, LED dot matrix screen and its SPI control
Puzhong 51-Single-core-A2 STC89C52 Keil uVision V5.29.0.0 PK51 Prof. Developers Kit Version:9.60.0.0 Hard Knowledge Selected from "Popular 51 Single-Chip Microcomputer Development Strategy_V1.2" IO port expansion method - serial to parallel        The chip used is 74HC595. The development board has one 74HC595 chi
[Microcontroller]
[51 MCU Quick Start Guide] 2.4: 74HC595, LED dot matrix screen and its SPI control
LED Street Light Energy Saving Renovation Program
With the continuous consumption of energy, the increasing scarcity of resources, the increasing harm of the greenhouse effect to human beings, the increasingly serious pollution of the atmospheric environment to the earth, the international call for energy conservation and consumption reduction is getting louder a
[Power Management]
LED Street Light Energy Saving Renovation Program
The first driver written by micro2440 - LED
This is the first driver written on the MICRO 2440 development board in the process of learning driver development. It realizes the control of S3C2440's GPIO and is the simplest driver on ARM-LINUX. This driver controls 4 LEDs through S3C2440's GPB5~8 and is a MISC (mixed) driver. In fact, MISC is also a special chara
[Microcontroller]
Design of side-light LED backlight source
   1. Introduction   As human society enters the knowledge economy era, information and knowledge dissemination have become real-time, and the display technology of terminal equipment used to realize information exchange has developed rapidly. As one of the display technologies, LCD displays have developed rapidly. S
[Power Management]
Design of side-light LED backlight source
Design and implementation of a large-screen LED display system based on GPRS
LED display screen is a new type of information dissemination media that has developed rapidly in the world since the late 1980s. It is a large-scale display system that integrates microelectronics technology, optoelectronics technology, computer technology, and information processing technology. It has gradually be
[Microcontroller]
Design and implementation of a large-screen LED display system based on GPRS
How to improve LED heat dissipation performance
Since the light generated by the LED is reflected in the encapsulated resin, if a resin reflector is used to change the direction of light from the chip, the reflector will absorb the light, causing the light extraction to drop sharply. For this reason, it is necessary to find a way to reduce the temperature of the
[Power Management]
How to improve LED heat dissipation performance
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号