{"id":500,"date":"2018-04-12T03:40:57","date_gmt":"2018-04-12T10:40:57","guid":{"rendered":"https:\/\/learn71.ca\/vanier-tech\/?page_id=500"},"modified":"2024-02-06T12:55:55","modified_gmt":"2024-02-06T20:55:55","slug":"button-fade-pcb","status":"publish","type":"page","link":"https:\/\/learn71.ca\/vanier-tech\/button-fade-pcb\/","title":{"rendered":"Button-Fade PCB"},"content":{"rendered":"\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69def519efb58&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69def519efb58\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"370\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/learn71.ca\/wp-content\/uploads\/sites\/40\/2023\/10\/Button-Fade-220_bb-1-1024x370.jpg\" alt=\"\" class=\"wp-image-3060\" srcset=\"https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2023\/10\/Button-Fade-220_bb-1-1024x370.jpg 1024w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2023\/10\/Button-Fade-220_bb-1-300x108.jpg 300w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2023\/10\/Button-Fade-220_bb-1-768x278.jpg 768w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2023\/10\/Button-Fade-220_bb-1-1536x555.jpg 1536w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2023\/10\/Button-Fade-220_bb-1-1400x506.jpg 1400w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2023\/10\/Button-Fade-220_bb-1-1600x578.jpg 1600w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2023\/10\/Button-Fade-220_bb-1.jpg 1746w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Questions<\/h3>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><strong>1.<\/strong> Why do the LEDs each have a 220R resistor?<\/p>\n\n\n\n<p><strong>2.<\/strong> When the button is pressed, why does the second LED turn on?<\/p>\n\n\n\n<p><strong>3.<\/strong> When the button is released, why does the LED fade slowly instead of suddenly turning off?<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p><strong>4.<\/strong> There is no current flowing through the 10uF capacitor, so why does the negative side need to be connected to ground?<\/p>\n\n\n\n<p><strong>5.<\/strong> Rather than powering the LED directly from the 10uF capacitor, why is the transistor needed to create a visible fading effect?<\/p>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-columns has-2-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h3 class=\"wp-block-heading\">Schematic<\/h3>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69def519f0703&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69def519f0703\" class=\"wp-block-image wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"864\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/learn71.ca\/wp-content\/uploads\/sites\/40\/2019\/11\/Button-Fade-Schematic-1024x864.jpg\" alt=\"\" class=\"wp-image-2033\" srcset=\"https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2019\/11\/Button-Fade-Schematic-1024x864.jpg 1024w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2019\/11\/Button-Fade-Schematic-300x253.jpg 300w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2019\/11\/Button-Fade-Schematic-768x648.jpg 768w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2019\/11\/Button-Fade-Schematic-711x600.jpg 711w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2019\/11\/Button-Fade-Schematic-1600x1350.jpg 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<h3 class=\"wp-block-heading\">PCB<\/h3>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69def519f0c32&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69def519f0c32\" class=\"wp-block-image wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"926\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/learn71.ca\/wp-content\/uploads\/sites\/40\/2019\/11\/Button-Fade-PCB-1024x926.jpg\" alt=\"\" class=\"wp-image-2034\" srcset=\"https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2019\/11\/Button-Fade-PCB-1024x926.jpg 1024w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2019\/11\/Button-Fade-PCB-300x271.jpg 300w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2019\/11\/Button-Fade-PCB-768x694.jpg 768w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2019\/11\/Button-Fade-PCB-664x600.jpg 664w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2019\/11\/Button-Fade-PCB-1600x1447.jpg 1600w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2019\/11\/Button-Fade-PCB.jpg 1880w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Components<\/h3>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p>The resistors (220R) and push button have no +\/- pins because they are non-polar. <\/p>\n\n\n\n<p>The LED, capacitor (10uF), and diode (1N4001) all have markings on the negative pin, which always goes in the square hole on the PCB.<\/p>\n\n\n\n<p>The NPN transistor (2N3904) has one flat side to indicate direction. Use the PCB diagram to ensure the flat side is in the correct orientation.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69def519f12cb&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69def519f12cb\" class=\"wp-block-image size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"438\" height=\"327\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/learn71.ca\/wp-content\/uploads\/sites\/40\/2023\/07\/Button-Fade-Parts.jpg\" alt=\"\" class=\"wp-image-2936\" srcset=\"https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2023\/07\/Button-Fade-Parts.jpg 438w, https:\/\/learn71.ca\/vanier-tech\/wp-content\/uploads\/sites\/40\/2023\/07\/Button-Fade-Parts-300x224.jpg 300w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Questions 1. Why do the LEDs each have a 220R resistor? 2. When the button is pressed, why does the second LED turn on? 3. When the button is released, why does the LED fade slowly instead of suddenly turning off? 4. There is no current flowing through the 10uF capacitor, so why does the [&hellip;]<\/p>\n","protected":false},"author":84,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-500","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/learn71.ca\/vanier-tech\/wp-json\/wp\/v2\/pages\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learn71.ca\/vanier-tech\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/learn71.ca\/vanier-tech\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/learn71.ca\/vanier-tech\/wp-json\/wp\/v2\/users\/84"}],"replies":[{"embeddable":true,"href":"https:\/\/learn71.ca\/vanier-tech\/wp-json\/wp\/v2\/comments?post=500"}],"version-history":[{"count":52,"href":"https:\/\/learn71.ca\/vanier-tech\/wp-json\/wp\/v2\/pages\/500\/revisions"}],"predecessor-version":[{"id":3196,"href":"https:\/\/learn71.ca\/vanier-tech\/wp-json\/wp\/v2\/pages\/500\/revisions\/3196"}],"wp:attachment":[{"href":"https:\/\/learn71.ca\/vanier-tech\/wp-json\/wp\/v2\/media?parent=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}