{"id":788,"date":"2016-03-18T19:06:53","date_gmt":"2016-03-18T19:06:53","guid":{"rendered":"https:\/\/drakesoe.wordpress.com\/?page_id=788"},"modified":"2025-02-25T19:20:50","modified_gmt":"2025-02-25T19:20:50","slug":"arduino-blinking-multiple-leds-123dcircuit","status":"publish","type":"page","link":"http:\/\/rodmilstead.com\/pt\/arduino-blinking-multiple-leds-123dcircuit\/","title":{"rendered":"Arduino Blinking Multiple LEDS with Tinkercad Circuit Builder"},"content":{"rendered":"<p><strong>Summary:<\/strong><br \/>\n1. read all the directions.<br \/>\n2. program four LEDs to blink based on the directions.<br \/>\n3. comment four lines of code to explain your understanding.<br \/>\n4. turn your own program in on Canvas.<\/p>\n<p>Together,\u00a0 we setup a breadboard and Arduino to run the basic LED blink code. \u00a0Then we connected an LED and resistor to the breadboard and Arduino.<\/p>\n<p><a href=\"https:\/\/youtu.be\/2R6GYRJCFwI\" target=\"_blank\" rel=\"noopener\">Video tutorial: Click here to review setting up and programming one blinking LED.<\/a><\/p>\n<p>Now the next move is to add more LEDs.\u00a0 By the time your have completed this work you will have three LEDs that will blink in sequence: red, yellow, green (or whatever colors you want).<\/p>\n<ol>\n<li>login to <a href=\"http:\/\/tinkercad.com\">tinkercad.com<\/a>, go to the Circuit Builder and open your blink circuit.<\/li>\n<li>you should have one red LED connected and working.<\/li>\n<li>now add a yellow, a green LED and a blue LED next to the red LED so that your breadboard looks like this:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3825 size-full\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/09\/2021arduinotinkercad3led.png\" alt=\"\" width=\"906\" height=\"708\" srcset=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/09\/2021arduinotinkercad3led.png 906w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/09\/2021arduinotinkercad3led-300x234.png 300w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/09\/2021arduinotinkercad3led-768x600.png 768w\" sizes=\"auto, (max-width: 906px) 100vw, 906px\" \/><\/li>\n<li>go to the Code Editor.\u00a0 Change your existing code so that the each lights turns on and off before the next one. <strong>Like this:<br \/>\n<\/strong>all lights off<br \/>\nred LED on<br \/>\nred LED off<br \/>\nyellow LED on<br \/>\nyellow LED off<br \/>\ngreen LED on<br \/>\ngreen LED off<br \/>\nblue LED on<br \/>\nblue LED off<\/li>\n<li>put your name on the first line of your program as a comment.\u00a0 Like this: \/\/Rod Milstead but use your name.<\/li>\n<li>use comments on four lines of code to explain, in your own words, what is happening on that line of code.<\/li>\n<li><a href=\"https:\/\/drive.google.com\/file\/d\/1bVzL6OFqDk-0-tzq9uLxuW_roN2eaZsR\/view\" target=\"_blank\" rel=\"noopener\">follow this link to learn how to rename your program AND share from Tinkercad.<\/a><\/li>\n<li>Sample code for ONE LED to get you started: <a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/10\/2021Arduinoblinkcodecomments.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3862 size-full\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/10\/2021Arduinoblinkcodecomments.png\" alt=\"\" width=\"986\" height=\"367\" srcset=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/10\/2021Arduinoblinkcodecomments.png 986w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/10\/2021Arduinoblinkcodecomments-300x112.png 300w, http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2021\/10\/2021Arduinoblinkcodecomments-768x286.png 768w\" sizes=\"auto, (max-width: 986px) 100vw, 986px\" \/><\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Summary: 1. read all the directions. 2. program four LEDs to blink based on the directions. 3. comment four lines of code to explain your understanding. 4. turn your own program in on Canvas. Together,\u00a0 we setup a breadboard and Arduino to run the basic LED blink code. \u00a0Then we connected an LED and resistor &hellip; <a href=\"http:\/\/rodmilstead.com\/pt\/arduino-blinking-multiple-leds-123dcircuit\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Arduino Blinking Multiple LEDS with Tinkercad Circuit Builder<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-788","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/comments?post=788"}],"version-history":[{"count":16,"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/788\/revisions"}],"predecessor-version":[{"id":6624,"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/788\/revisions\/6624"}],"wp:attachment":[{"href":"http:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/media?parent=788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}