{"id":7853,"date":"2013-06-30T18:02:57","date_gmt":"2013-07-01T01:02:57","guid":{"rendered":"http:\/\/rustybolt.info\/wordpress\/?p=7853"},"modified":"2013-07-02T08:27:55","modified_gmt":"2013-07-02T15:27:55","slug":"2013-06-30-turn-on-a-device-with-a-normally-closed-switch","status":"publish","type":"post","link":"https:\/\/rustybolt.info\/wordpress\/?p=7853","title":{"rendered":"2013-06-30 Turn On A Device With A Normally Closed Switch"},"content":{"rendered":"<p><a href=\"http:\/\/rustybolt.info\/wordpress\/wp-content\/uploads\/2013\/06\/DSC_0399.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-7854\" alt=\"DSC_0399\" src=\"http:\/\/rustybolt.info\/wordpress\/wp-content\/uploads\/2013\/06\/DSC_0399-300x224.jpg\" width=\"300\" height=\"224\" srcset=\"https:\/\/rustybolt.info\/wordpress\/wp-content\/uploads\/2013\/06\/DSC_0399-300x224.jpg 300w, https:\/\/rustybolt.info\/wordpress\/wp-content\/uploads\/2013\/06\/DSC_0399.jpg 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Often a project has to be turned on or off by a switch that has only one set of contacts, and those contacts are normally closed.\u00a0 When the project needs to be activated, the switch has to go from normally closed to open.\u00a0 One common example of this is a window or door switch that is magnetically operated.\u00a0 When the window or door is closed, the magnet pulls the switch closed, so most of the time the switch conducts current.\u00a0 but you want the switch to activate the project &#8211; alarm for example &#8211; when the door or window is opened.<\/p>\n<p>To make matters more complicated the alarm is battery operated, so you want it to draw very little current when the windows and doors are closed.\u00a0 So somehow you need to invert the switch&#8217;s action, but it has to me done with a very tiny current flowing through the switch most of the time.\u00a0 This is when you need to use a few transistors to invert the switch&#8217;s current.<\/p>\n<h3>Operation<\/h3>\n<p>The switch Sw1 is located at the door or window.\u00a0 If the a;arm is hard wired then there will be a two conductor cable from the switch to the circuit.\u00a0 Sometimes the alarm is operated remotely through a radio frequency, so the switch would be on or very close to the transmitter.\u00a0 The wire from the switch to the circuit may pick up AC hum and radio frequency interference, so the C1 capacitor bypasses these frequencies to the negative, thus preventing false turn-on.<\/p>\n<p>The R1 resistor furnishes a very small current, only about 40 microamps, to the switch while it is closed.\u00a0 When the switch is closed, the voltage at the base of Q1 will be near or at zero volts.\u00a0 No current will flow through Q1, and thus no current will flow through Q2, and there is no 9V at the output of the circuit.<\/p>\n<p>When the switch is opened, the current from R1 will then be diverted through the base of Q1, turning it on.\u00a0 The current gain of Q1 may be a few hundred, so the current from the collector to emitter may be a few hundred times 40 microamps, or several milliamps.\u00a0 The collector voltage of Q1 drops to near zero, and nearly 9 volts is across R2.\u00a0 R2 will allow about 2 milliamps to flow through the base to emitter junction of Q2, turning it fully on.\u00a0 The full 9V is then available at the output. \u00a0 The gain of Q2 may be more than 100, so at least 100 mA should be available at the output.\u00a0 But 9V batteries don&#8217;t have the ability to supply heavy current, so a more typical load\u00a0 might be 40 mA maximum.<\/p>\n<p>This same circuit can be applied to bigger batteries with more current, but higher power transistors may have to be used.\u00a0 The Q2 is critical, it has to be turned fully on so that there is very little voltage drop and very low power dissipation.<\/p>\n<p>I my case, I am going to use a switch to remotely tell me if the garage door is open.\u00a0 I thought that I could put the switch at the point where the door stops when it&#8217;s fully open.\u00a0 This can then be a simple normally open switch, closed when the door is fully open.\u00a0 But what happens if the door is opened part way, but never reaches the end of its travel?\u00a0 The door would be open but there would be no indication of being open.\u00a0 Therefore I decided that I should put the switch at the bottom of the door, where it will be activated as soon as the door is slightly opened.\u00a0 The normally open switch is held closed by the closed door, and then opens as soon as the door opens.\u00a0 This is why I had to come up with the circuit I have described.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Often a project has to be turned on or off by a switch that has only one set of contacts, and those contacts are normally closed.\u00a0 When the project needs to be activated, the switch has to go from normally closed to open.\u00a0 One common example of this is a window or door switch that<a href=\"https:\/\/rustybolt.info\/wordpress\/?p=7853\"> <\/p>\n<p> (Read More&#8230;)<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[74],"tags":[],"class_list":["post-7853","post","type-post","status-publish","format-standard","hentry","category-electronic-components"],"_links":{"self":[{"href":"https:\/\/rustybolt.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rustybolt.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rustybolt.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rustybolt.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rustybolt.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7853"}],"version-history":[{"count":10,"href":"https:\/\/rustybolt.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7853\/revisions"}],"predecessor-version":[{"id":7887,"href":"https:\/\/rustybolt.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7853\/revisions\/7887"}],"wp:attachment":[{"href":"https:\/\/rustybolt.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rustybolt.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rustybolt.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}