Go Down

Topic: Voltage Detector (Read 3731 times) previous topic - next topic

Joes

hi there

 i have made this as shown on this site:
http://hackaweek.com/hacks/?p=380

all works fine but i would like to reverse the operation of the LED
when voltage is detected LED is low

What would be a good way of doing this?

Thanks Joe

raschemmel

Quote
What would be a good way of doing this?
 
Add a transistor inverter on the input ?
Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,<br />DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Grumpy_Mike

Or wire the last transistor with the resistor between the collector and the supply ( just like the other two ) and then wire the LED between the collector and the emitter.

raschemmel

#3
May 05, 2016, 10:35 pm Last Edit: May 05, 2016, 10:36 pm by raschemmel
Quote
and then wire the LED between the collector and the emitter.  
?

Are you sure you  meant to say that ?
Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,<br />DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Grumpy_Mike

Well anode to collector and cathode to the emitter, that is what I meant.

Joes

right ok, should i be fine using the same 220R or should i go for something more like 2K?

Grumpy_Mike

Quote
should i be fine using the same 220R
Yes.

dlloyd

You may need to add a "test" pushbutton (or power switch) to prevent the constant current draw when not being used.

Joes

the LED does not go out, it duels a bit but that is it, i did increase the 220R but made no difference?

Grumpy_Mike

Then put a normal diode in seriese with the LED.

MarkT

#10
May 07, 2016, 02:28 pm Last Edit: May 07, 2016, 02:30 pm by MarkT
the LED does not go out, it duels a bit but that is it, i did increase the 220R but made no difference?

the LED does not go out, it duels a bit but that is it, i did increase the 220R but made no difference?

This circuit detects mains AC (detects in the radio sense, rectifies and amplifies), so that the current
through the 220R load is pulsed, which the size and length of the pulses increasing as the copper
strip picks up more stray field.  This means that most of the time the output transistor is off, so
that simply complementing the output won't work well.

You would need to low-pass filter the output voltage, then use a comparator to threshold the signal,
then drive an LED to get the inverted sense (light only when little input, no light when strong input).

[ Its probably possible to add low pass filtering earlier on in the circuit by adding a capacitor to
one of the transistor bases, that might help ]
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Joes

Quote
Then put a normal diode in seriese with the LED.
Seemed to make no difference :smiley-confuse:


there must be a way you can do this with keeping a low component count?

thanks Joe

MarkT

Tried the capacitor yet?  This is a very high gain circuit (gain around 10 million), so it picks up mains
interference from any nearby object, which means it is pulsing - you need dc to be able to invert
the sense of the LED.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

dlloyd

I think the output could be inverted like this, but that would mean constant drain on the battery when no electric field is near the copper strip ... so a "test" switch might be needed.

Also note that its much more difficult to perceive impulse activity on an LED that is normally ON than an LED that is normally OFF. Using a capacitor as MarkT has suggested could resolve this.


runaway_pancake

Please confirm, for the record,
you did this...



and "no joy", right?

BTW, with 9V, I'd go with >= 470ohms, not 220. [He used a rechargeable batt., "7V"]
"Who is like unto the beast? who is able to make war with him?"
When all else fails, check your wiring!

Go Up