Go Down

Topic: Detect and ignore 5 volts not 12 question. (Read 1 time)previous topic - next topic

Technochris1

Sep 01, 2011, 12:37 am
Anyone know of a ciruit, with or with out the Arduino unit, that can detect voltages between 5 and 12 volts, and only output if 12 volts is detected.

Basicly i have a wireless device that has an output that varies in voltages, The manufacturer says it will be floating voltage when idle, and 12volts in alarm. I tested with my meter, 5.5 volts and 12.8 volts. If i attach a 12volt relay directly to the circuit, it holds down the device and wont allow it to operate properly. Im thinking a Transistor is the answer, but im not sure on detecting only 12 volts. Any one have an idea i can try???

#1
Sep 01, 2011, 01:25 amLast Edit: Sep 01, 2011, 01:26 am by Graynomad Reason: 1
Quote
floating voltage when idle, and 12volts in alarm

If this is the case use a voltage divider set to give 5v when the device is producing 12v. Then you will get a signal that is either 0v or 5v.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

Technochris1

#2
Sep 01, 2011, 01:38 am
Would a voltage divider put any load on  the lines like a relay?

#3
Sep 01, 2011, 01:48 amLast Edit: Sep 01, 2011, 01:50 am by Graynomad Reason: 1
None worth mentioning, if you use large(ish) values in the 10-100k range. A relay is more like 50-200R range, big difference.

A 9k1 and 5k6 resistor should work, even 91k and 56k.

______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

Technochris1

#4
Sep 01, 2011, 01:59 am
Is it possible to use a voltage divider with a relay directly (without Arduino), i need to Minimize the circuit and size of circuit. Thanks for any suggestions.

tjbaudio

#5
Sep 01, 2011, 05:27 am
What about a Zener diode?  Pick one with a voltage near your desired trigger voltage.

#6
Sep 01, 2011, 05:42 am
Yep a zener and resistor will do a similar job.

Quote
Is it possible to use a voltage divider with a relay directly (without Arduino)

No, but if that's all that needs to be done a transistor should work.

Transistors aren't my forte but the signal should be able to drive one easily enough.

In general though use a resistor from your device to the base of an NPN, another pulling the base to GND, collector to the relay coil -, emitter to GND, coil + to 12v and a diode across the coil.

But it will depend on the ability of your device to drive something, Do you have a data sheet.

There are many examples on the web an din the Arduino playground I think.

_______
Rob
Rob Gray aka the GRAYnomad www.robgray.com

Grumpy_Mike

#7
Sep 01, 2011, 06:28 am
Yes you can get a transistor to do this. You need a potential divider to reduce the 5V to just less than 0.7V. Feed that into the base of a transistor, put the emitter to ground and the collector to one end of the relay coil. Put the other end of the relay coil to the positive of your supply.

Go Up