{"id":1438,"date":"2014-03-15T22:14:48","date_gmt":"2014-03-16T02:14:48","guid":{"rendered":"http:\/\/hackaweek.com\/hacks\/?p=1438"},"modified":"2014-03-17T07:48:47","modified_gmt":"2014-03-17T11:48:47","slug":"diy-emergency-vehicle-flasher-part-3","status":"publish","type":"post","link":"http:\/\/hackaweek.com\/hacks\/diy-emergency-vehicle-flasher-part-3\/","title":{"rendered":"DIY Emergency Vehicle Flasher Part 3"},"content":{"rendered":"<p>I left off last week with a few problems. The second LED array would not go all the way off and after some troubleshooting this week I realized that the circuit was not working properly due to a faulty n-channel MOSFET. This was probably caused by the odd way I was powering up the third 555 in the circuit. <\/p>\n<p>After abandoning the idea of using a small switching transistor to turn on the third 555 an idea hit me. Why not use a p-channel MOSFET? When pin 3 of the first 555 goes low I could utilize the ground signal from that pin to pull the gate of the p-channel MOSFET (Q3) to ground thus turning it on which would allow voltage to flow from the positive rail through the MOSFET to pin 8 of the third 555. I tested it out first on a breadboard and it worked fine so I added it to the schematic and installed it on the perfboard. <\/p>\n<p>The operation of the circuit is as follows. All three 555s are configured as astable oscillators. The first 555 is set to cycle high for .1 to 1 second depending on the position of R2 potentiometer. The positive output from pin 3 goes to the second 555 which powers it up. It then oscillates at approximately <del datetime=\"2014-03-17T11:47:00+00:00\">40<\/del> 21 hz  on pin 3 and feeds a positive voltage to the gate of the n-channel MOSFET (Q1) which turns it on and off rapidly thus supplying a ground to the first LED array. When pin 3 goes low on the first 555 the ground signal pulls the gate of the p-channel MOSFET (Q3) to ground and turns it on which feeds a positive voltage to the third 555. This 555 then oscillates a <del datetime=\"2014-03-17T11:47:00+00:00\">40<\/del> 21 hz on pin 3 and feeds a positive voltage to the gate of the second n-channel MOSFET (Q2) which turns it on and off rapidly thus supplying a ground to a second LED array. The result is an alternate rapid flashing of two LED arrays with adjustability in the rate via the R2 20K potentiometer.<\/p>\n<p>This circuit could also drive other lights providing the load does not exceed the amperage rating of the n-channel MOSFETS. It could also be modified to run other devices such as relays or stepper motors. Of course, all of this could be done with a micro controller but I chose the 555 because the design and build of the circuit is a good teaching tool for those wanting to learn beginning electronics.<\/p>\n<p>Below you&#8217;ll find a parts list, link to parts suppliers, a PCB layout, the schematic and the final build video.<\/p>\n<p><strong>UPDATE:<\/strong> See Timo&#8217;s comment below for an alternative circuit. <\/p>\n<p>Keep on hackin!<\/p>\n<p><strong>Parts list:<br \/>\n2 &#8211; 20 ohm 1\/4 watt resistors &#8211; R8, R9<br \/>\n7 &#8211; 1K 1\/4 watt resistors &#8211; R1, R3, R4, R6, R10, R11, R13<br \/>\n2 &#8211; 3K 1\/4 watt resistors &#8211; R5, R7<br \/>\n1 &#8211; 20K 1\/4 watt resistor &#8211; R12<br \/>\n1 &#8211; 20K potentiometer &#8211; R2<br \/>\n3 &#8211; 0.1 uF ceramic capacitors &#8211; C1, C3, C5<br \/>\n2 &#8211; 1 uF 25V electrolytic capacitors &#8211; C4, C6<br \/>\n1 &#8211; 100 uF 25V electrolytic capacitor &#8211; C2<br \/>\n2 &#8211; N-channel MOSFET transistors &#8211; Q1, Q2<br \/>\n1 &#8211; P-channel MOSFET transistor &#8211; Q3<br \/>\n1 &#8211; 1N4004 rectifier diode &#8211; D1<br \/>\n1 &#8211; 1N4742 xener diode &#8211; D2<br \/>\n3 &#8211; NE555 timer dip chips &#8211; IC1, IC2, IC3<br \/>\n1 &#8211; SPST switch &#8211; SW1<br \/>\n1 &#8211; Knob for the potentiometer<br \/>\n1 &#8211; Perfboard or PCB<br \/>\n2 &#8211; LED light arrays<br \/>\n1 &#8211; Project enclosure<br \/>\nSeveral feet of 16 gauge two strand wire<\/strong><\/p>\n<p><strong>Parts suppliers<\/strong><br \/>\n<a href=\"http:\/\/www.taydaelectronics.com\/\" target=\"_blank\">Tayda Electronics<\/a><br \/>\n<a href=\"http:\/\/www.alliedelec.com\/\" target=\"_blank\">Allied Electronics<\/a><br \/>\n<a href=\"http:\/\/www.digikey.com\/\" target=\"_blank\">DigiKey<\/a><br \/>\n<a href=\"http:\/\/www.radioshack.com\/category\/index.jsp?categoryId=2032058\" target=\"_blank\">Radio Shack<\/a><\/p>\n<p><strong>PCB Layout<\/strong><br \/>\n<a href=\"http:\/\/hackaweek.com\/hacks\/?attachment_id=1482\" rel=\"attachment wp-att-1482\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/Adjustable-speed-555-dual-alternating-light-flasher-pcb-layout.jpg\" alt=\"Adjustable speed 555 dual alternating light flasher pcb layout\" width=\"720\" height=\"453\" class=\"alignnone size-full wp-image-1482\" srcset=\"http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/Adjustable-speed-555-dual-alternating-light-flasher-pcb-layout.jpg 720w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/Adjustable-speed-555-dual-alternating-light-flasher-pcb-layout-150x94.jpg 150w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/Adjustable-speed-555-dual-alternating-light-flasher-pcb-layout-300x188.jpg 300w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/Adjustable-speed-555-dual-alternating-light-flasher-pcb-layout-476x300.jpg 476w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p><strong>ExpressPCB file<\/strong><br \/>\n<a href=\"http:\/\/hackaweek.com\/hacks\/?attachment_id=1483\" rel=\"attachment wp-att-1483\">flasher pcb layout.pcb<\/a><\/p>\n<p><strong>Schematic<\/strong><br \/>\n<a href=\"http:\/\/hackaweek.com\/hacks\/?attachment_id=1449\" rel=\"attachment wp-att-1449\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/Adjustable-speed-555-dual-alternating-light-flasher-schematic.jpg\" alt=\"Adjustable speed 555 dual alternating light flasher schematic\" width=\"1200\" height=\"864\" class=\"alignnone size-full wp-image-1449\" srcset=\"http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/Adjustable-speed-555-dual-alternating-light-flasher-schematic.jpg 1200w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/Adjustable-speed-555-dual-alternating-light-flasher-schematic-150x108.jpg 150w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/Adjustable-speed-555-dual-alternating-light-flasher-schematic-300x216.jpg 300w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/Adjustable-speed-555-dual-alternating-light-flasher-schematic-1024x737.jpg 1024w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/Adjustable-speed-555-dual-alternating-light-flasher-schematic-416x300.jpg 416w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/hackaweek.com\/hacks\/?attachment_id=1440\" rel=\"attachment wp-att-1440\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/diy-555-flasher-circuit-board-installed.jpg\" alt=\"diy 555 flasher circuit board installed\" width=\"1000\" height=\"750\" class=\"alignnone size-full wp-image-1440\" srcset=\"http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/diy-555-flasher-circuit-board-installed.jpg 1000w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/diy-555-flasher-circuit-board-installed-150x112.jpg 150w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/diy-555-flasher-circuit-board-installed-300x225.jpg 300w, http:\/\/hackaweek.com\/hacks\/wp-content\/uploads\/2014\/03\/diy-555-flasher-circuit-board-installed-400x300.jpg 400w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p><iframe loading=\"lazy\" width=\"640\" height=\"390\" src=\"\/\/www.youtube.com\/embed\/AvAQ_TyzOB4\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I left off last week with a few problems. The second LED array would not go all the way off and after some troubleshooting this week I realized that the circuit was not working properly due to a faulty n-channel &hellip; <a href=\"http:\/\/hackaweek.com\/hacks\/diy-emergency-vehicle-flasher-part-3\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1438","post","type-post","status-publish","format-standard","hentry","category-hacks"],"_links":{"self":[{"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/posts\/1438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/comments?post=1438"}],"version-history":[{"count":32,"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/posts\/1438\/revisions"}],"predecessor-version":[{"id":1485,"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/posts\/1438\/revisions\/1485"}],"wp:attachment":[{"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/media?parent=1438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/categories?post=1438"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/hackaweek.com\/hacks\/wp-json\/wp\/v2\/tags?post=1438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}