Arduino Forum

Using Arduino => LEDs and Multiplexing => Topic started by: petamel on Mar 02, 2018, 08:13 pm

Title: Check if 220vac lamp is broken
Post by: petamel on Mar 02, 2018, 08:13 pm
Hi, I want to realize a circuit, connected to analog/digital input of arduino, that put arduino output to high if a lamp (powered with 220vac) became broken (even if 220vac is present. Can anybody help me? Thanks.
Title: Re: Check if 220vac lamp is broken
Post by: GrooveFlotilla on Mar 02, 2018, 08:34 pm
What sort of lamp?
Title: Re: Check if 220vac lamp is broken
Post by: petamel on Mar 02, 2018, 08:45 pm
lamp with filament
Title: Re: Check if 220vac lamp is broken
Post by: PaulRB on Mar 02, 2018, 09:26 pm
What about an ldr? That would test the most important thing: "is the lamp generating light?"

If that would work, you don't need an Arduino. An analog comparator would work, and they don't need any code.
Title: Still here!
Post by: Paul__B on Nov 16, 2019, 11:04 am
I'm sorry Paul for my delayed reply. I want to know if the lamp is broken both cases (switched on and off). Thank you for your attention
Wow!  20 months later!

Well, this is a trifle tricky.  :smiley-lol: When the lamp is powered, you want to monitor whether it is drawing current, so you want a current sensor.  Let's see - this one (https://www.ebay.com/itm/5A-20A-30A-ACS712-714-Range-Current-Sensor-Module-For-Arduino-Raspberry-Pi-UNO/323918350306) should probably do.
(https://i.ebayimg.com/images/g/3S4AAOSwAqhdv7-J/s-l1600.jpg) (https://www.ebay.com/itm/5A-20A-30A-ACS712-714-Range-Current-Sensor-Module-For-Arduino-Raspberry-Pi-UNO/323918350306)

The 5 Amp ACS712 (https://www.sparkfun.com/datasheets/BreakoutBoards/0712.pdf) gives an analog output of 1 V per 5 Amps, so you need to figure how much current your lamp draws to get an idea of how critical the ADC reading will be; you may want to add an op amp or comparator as per the application notes to make detection easier.

To check the lamp when it is not powered - well, you have to actually power it!  Basically, an opto-coupler across the switch which controls the lamp feeds a few mA through the lamp without lighting it, checking if the filament is OK.  If there is no mains supply at all, then you simply will not be able to determine whether the lamp is intact.  :smiley-eek:

Title: Re: Check if 220vac lamp is broken
Post by: gilshultz on Nov 17, 2019, 01:15 am
The previously mentioned current sensor will do it when on, then put an optocoupler across the lamp driver portion of the circuit.  When it is off and the filimate is good you will get an output from the optocoupler, if it is bad you will not. Since you have control of the lamp you know when it is off or on. When  on you will not have an output from the optocoupler. The resistance levels etc will be relative high, but you still have to maintain the minimum current required on the photo side.
this way everything can be in one enclosuer.

Good Luck & Have Fun!
Gil