Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Tools
Old 3rd November 2009, 07:51 PM   #1
Default Interfacing a switch with an end of line resistor

I've been asked to come up with an interface to a switch with an end of line resistor. I'm planning on using a I2C parallel port IC (8 bit) communicating to a ARM micro processor and am considering using a couple of programmable Schmitt triggers to sense open circuit vs close circuit vs a normal unswitched condition. One trigger set to fire at or near VCC, one trigger set to fire at or near ground. Is there a better way to do this?

If this is a reasonable approach does anyone have any suggestions as to which part (IC) might be a reasonable choice for a Schmitt trigger?

Thanks,
Jim.
AverageGuy is offline  
Old 4th November 2009, 11:35 PM   #2
Default

I'll try again. For background, alarm switches used in the security business frequently have a resistor across the switch. The purpose of this resistor is to help detect a switch being disconnected. So you need to be able to sense 3 conditions with respect to the switch. Switch closed, alarm condition, switch open, someone has disconnected the switch and you need to alert someone and switch open, but resistance present, all's well.

Hence the question of how to detect those three conditions. I'm proposing connecting one side of the switch to VCC via a resistor, the other side connected to ground, so a normal operating condition would provide a voltage somewhere between VCC and ground. I suggested two Schmitt triggers one biased to sense a transition near ground when the switch is closed and one near VCC which would sense a disconnected switch. Normal operation would have the output from one trigger a logical 1 and the other a logical 0. Two logical 1s or two logical zeros would indicate either an alarm or a fault. Which is which depends on the inverting or non inverting property of the trigger.

That was my suggested design but I was wondering if anyone had a better design or if anyone saw any problems with this design.

Thanks,
Jim
AverageGuy is offline  
Reply

Tags
end, interfacing, line, resistor, switch

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
interfacing telephone line with MT8870 sumeshm.pnr General Electronics Chat 1 19th March 2009 10:36 AM
Interfacing HT9200A to the phone line Fandango General Electronics Chat 6 23rd October 2008 12:47 AM
LCD 4 Line 40 Character Interfacing rwamser Electronic Projects Design/Ideas/Reviews 5 28th November 2003 01:44 AM
Interfacing MT8880c DTMF IC with Phone Line lee_man_tbu Electronic Projects Design/Ideas/Reviews 0 26th November 2003 03:12 PM
Interfacing HT9200 to telephone line Ajit Robotics Chat 1 30th March 2003 05:06 PM



All times are GMT. The time now is 03:08 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker