        <style>
            #donation_buttons td{
                border:medium none;
                background: inherit !important;
            }
            #donation_buttons table{               
                border:medium none;
                margin: auto;
                width: auto;
            }
        </style>
        {"id":6114,"date":"2020-12-19T22:04:39","date_gmt":"2020-12-19T22:04:39","guid":{"rendered":"http:\/\/rogerbit.com\/wprb\/?p=6114"},"modified":"2020-12-19T22:15:22","modified_gmt":"2020-12-19T22:15:22","slug":"rotating-christmas-tree-and-programmable-lights-with-arduino","status":"publish","type":"post","link":"https:\/\/rogerbit.com\/wprb\/2020\/12\/rotating-christmas-tree-and-programmable-lights-with-arduino\/","title":{"rendered":"Rotating Christmas tree and programmable lights with Arduino"},"content":{"rendered":"<p><iframe loading=\"lazy\" width=\"1160\" height=\"653\" src=\"https:\/\/www.youtube.com\/embed\/aD6nNLIgmqI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>The project will see, how to make a rotating Christmas tree with arduino, a cooler, a perforated experimental board, LED lights and some other electronic elements.<\/p>\n<hr \/>\n<p>You may be interested in projects in Arduino, pic, robotics, telecommunications,\u00a0<a href=\"http:\/\/www.youtube.com\/user\/carlosvolt?sub_confirmation=1\">subscribe http:\/\/www.youtube.com\/user\/carlosvolt?sub_confirmation=1<\/a>\u00a0videos with full source code and diagrams<\/p>\n<div id=\"ubm-banners-rotation-n1\" data-interval=\"4000\" class=\"ubm_banners_rotation\" style=\"overflow: hidden; width: 200px; height: 150px;\"><div id=\"3_ubm_banner\" class=\"ubm_rotating_banner\"><a href=\"https:\/\/bit.ly\/3aXRDAu\" target=\"_blank\" rel=\"dofollow\"><img src=\"https:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/useful_banner_manager_banners\/3-2-logo youtube.png\" width=\"100%\" height=\"100%\" alt=\"SUSCRIBETE A NUESTRO CANAL DE YOUTUBE, TUTORIALES GRATIS\" \/><\/a><\/div><\/div>\n<hr \/>\n<p><strong>Project circuit<\/strong><\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/circuito.jpg\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-6100\" src=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/circuito.jpg\" sizes=\"(max-width: 337px) 100vw, 337px\" srcset=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/circuito.jpg 337w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/circuito-192x300.jpg 192w\" alt=\"\" width=\"337\" height=\"526\" \/><\/a><\/p>\n<p><strong>Electronic components<\/strong><\/p>\n<p><strong>13 Resistors of 1 Kohm 1\/4 W<\/strong><\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/1k.jpg\"><img loading=\"lazy\" class=\"alignnone wp-image-6101\" src=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/1k-958x1024.jpg\" sizes=\"(max-width: 253px) 100vw, 253px\" srcset=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/1k-958x1024.jpg 958w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/1k-281x300.jpg 281w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/1k-768x821.jpg 768w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/1k-600x641.jpg 600w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/1k-820x876.jpg 820w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/1k-1320x1411.jpg 1320w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/1k.jpg 1600w\" alt=\"\" width=\"253\" height=\"270\" \/><\/a><\/p>\n<p>Resistors are used in circuits to limit the current value or to set the voltage value, according to Ohm&#8217;s Law. Unlike other electronic components, resistors have no defined polarity.<\/p>\n<hr \/>\n<p><strong>An LM7805 regulator<\/strong><\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/7805.jpg\"><img loading=\"lazy\" class=\"alignnone wp-image-6102\" src=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/7805.jpg\" sizes=\"(max-width: 184px) 100vw, 184px\" srcset=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/7805.jpg 350w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/7805-150x150.jpg 150w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/7805-300x300.jpg 300w\" alt=\"\" width=\"184\" height=\"184\" \/><\/a><\/p>\n<p>The LM7805 is a fixed voltage regulator. It is an integrated linear regulation circuit. This controller has 3 pins of connection, input, ground and output. The operation of a control source is to reduce or regulate a voltage at the input, in this particular case it will reduce 9 volts to 5 volts.<\/p>\n<hr \/>\n<p><strong>An Arduino mini pro<\/strong><\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/arduinominipro.jpg\"><img loading=\"lazy\" class=\"alignnone wp-image-6103\" src=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/arduinominipro.jpg\" sizes=\"(max-width: 285px) 100vw, 285px\" srcset=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/arduinominipro.jpg 667w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/arduinominipro-150x150.jpg 150w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/arduinominipro-300x300.jpg 300w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/arduinominipro-600x600.jpg 600w\" alt=\"\" width=\"285\" height=\"285\" \/><\/a><\/p>\n<p>The Arduino Pro mini is a board based on the ATmega328P. It has 20 digital input\/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz quartz crystal, a programming connector, and a reset button. It contains everything you need to start using the micro-controller. Simply plug in a power supply to get started.<\/p>\n<hr \/>\n<p><strong>A 9-volt battery connector<\/strong><\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/conector9v.jpg\"><img loading=\"lazy\" class=\"alignnone size-large wp-image-6104\" src=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/conector9v.jpg\" sizes=\"(max-width: 225px) 100vw, 225px\" srcset=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/conector9v.jpg 225w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/conector9v-150x150.jpg 150w\" alt=\"\" width=\"225\" height=\"225\" \/><\/a><\/p>\n<p>9 volt wired battery connector, ideal for powering any device that requires 9v, is mainly used on connecting tablets (Protoboard) or to power any prototype electronic circuits, since as output cables do not have any specific connector so you can use it wherever you need to power.<\/p>\n<hr \/>\n<p><strong>A 12-volt cooler (serves that of an old pc source)<\/strong><\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/cooler.jpg\"><img loading=\"lazy\" class=\"alignnone wp-image-6105\" src=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/cooler.jpg\" sizes=\"(max-width: 288px) 100vw, 288px\" srcset=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/cooler.jpg 566w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/cooler-150x150.jpg 150w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/cooler-300x300.jpg 300w\" alt=\"\" width=\"288\" height=\"289\" \/><\/a><\/p>\n<p>Fan cooler is that small fan that usually comes installed in your computer&#8217;s enclosure; it has as its main task to ventilate the air that is inside the computer, for the sole purpose of regulating its temperature.<\/p>\n<hr \/>\n<p><strong>A 9-volt battery (better if it&#8217;s reclassible)<\/strong><\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/DURACELL.jpg\"><img loading=\"lazy\" class=\"alignnone wp-image-6106\" src=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/DURACELL.jpg\" sizes=\"(max-width: 330px) 100vw, 330px\" srcset=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/DURACELL.jpg 600w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/DURACELL-150x150.jpg 150w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/DURACELL-300x300.jpg 300w\" alt=\"\" width=\"330\" height=\"330\" \/><\/a><\/p>\n<p>The 9V battery has two terminals at one of its separate ends half an inch (12.7 mm) from center to center. The smaller male round terminal is positive and the larger female terminal, hexagonal or octagonal in shape, is negative.<\/p>\n<hr \/>\n<p>A plinth for the Arduino mini pro<\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/header-30pines.jpg\"><img loading=\"lazy\" class=\"alignnone size-large wp-image-6107\" src=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/header-30pines.jpg\" sizes=\"(max-width: 259px) 100vw, 259px\" srcset=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/header-30pines.jpg 259w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/header-30pines-150x150.jpg 150w\" alt=\"\" width=\"259\" height=\"259\" \/><\/a><\/p>\n<p>The socket is the device for connecting integrated circuits in printed circuits, without welding. This avoids over-temperatureing integrated or other devices, which can damage them; it also allows the replacement of the component without going through a process of desoldering and welding.<\/p>\n<hr \/>\n<p>13 LEDs of different colors<\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/led.jpg\"><img loading=\"lazy\" class=\"alignnone size-large wp-image-6108\" src=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/led.jpg\" alt=\"\" width=\"218\" height=\"144\" \/><\/a><\/p>\n<p>An LED (an acronym for the English light-emitting diode) is a light-emitting diode. Inside there is a semiconductor that, when traversed by a continuous voltage, emits light, known as electroluminescence.<\/p>\n<hr \/>\n<p><strong>A 10 x 15 cm perforated experimental plate<\/strong><\/p>\n<p><a href=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/placa-experimental.jpg\"><img loading=\"lazy\" class=\"alignnone wp-image-6109\" src=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/placa-experimental.jpg\" sizes=\"(max-width: 582px) 100vw, 582px\" srcset=\"http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/placa-experimental.jpg 780w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/placa-experimental-300x203.jpg 300w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/placa-experimental-768x521.jpg 768w, http:\/\/rogerbit.com\/wprb\/wp-content\/uploads\/2020\/12\/placa-experimental-600x407.jpg 600w\" alt=\"\" width=\"582\" height=\"395\" \/><\/a><\/p>\n<p>A perforated experimental board is a material for prototyping electronic circuits (also called PCB DOT). It is a thin, rigid blade with pre-drilled holes at standard intervals along a grid<\/p>\n<p><strong>Source<\/strong><\/p>\n<pre class=\"lang:default decode:true \" title=\"Source code\">\/\/Definici\u00f3n de pines a utilizar para las luces \r\nint led4= 4;\r\nint led5= 5;\r\nint led6= 6;\r\nint led7= 7;\r\nint led8= 8;\r\nint led9= 9;\r\nint led10= 10;\r\nint led11= 11;\r\nint led12= 12;\r\nint led13= 13;\r\n\/\/Determinamos el tiempo de encendido y apagado de las luces\r\nint tiempo = 50;\r\nvoid setup() {\r\n  \/\/Inicializamos todos los pines como salidas\r\n  pinMode(led4, OUTPUT);\r\n  pinMode(led5, OUTPUT);\r\n  pinMode(led6, OUTPUT);\r\n  pinMode(led7, OUTPUT);\r\n  pinMode(led8, OUTPUT);\r\n  pinMode(led9, OUTPUT);\r\n  pinMode(led10, OUTPUT);\r\n  pinMode(led11, OUTPUT);\r\n  pinMode(led12, OUTPUT);\r\n  pinMode(led13, OUTPUT);\r\n  pinMode(A0, OUTPUT);\r\n  pinMode(A1, OUTPUT);\r\n  pinMode(A3, OUTPUT);\r\n}\r\nvoid loop() {\r\n\/\/Llamamos a la funci\u00f3n desendente 20 veces\r\nfor (int i = 0; i &lt;= 20; i++) {\r\ndesendente();\r\n}\r\n\/\/Llamamos a la funci\u00f3n parpadeo 120 veces\r\nfor (int i = 0; i &lt;= 120; i++) {\r\nparpadeo();\r\n}\r\n\/\/\r\nfor (int i = 0; i &lt;= 20; i++) {\r\nascendente();\r\n}\r\n}\r\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\r\n\/\/------Finc\u00edon ascendente----------------------------------\r\n  void ascendente (void) {\r\n  digitalWrite(led4, LOW);\r\n  digitalWrite(A1,LOW);\r\n    \/\/------\r\n  digitalWrite(led5,LOW);\r\n  digitalWrite(A0, LOW);\r\n  \/\/------\r\n  digitalWrite(led13, LOW);\r\n  digitalWrite(led6, LOW);\r\n  \/\/------\r\n  digitalWrite(led12, LOW);\r\n  digitalWrite(led7, LOW);\r\n  \/\/-----  \r\n  digitalWrite(led10, LOW);\r\n  digitalWrite(led9, LOW);\r\n  \/\/-----\r\n  digitalWrite(led11, HIGH);\r\n  digitalWrite(led8, HIGH);\r\n  \/\/-----\r\n  digitalWrite(A3, HIGH);\r\n  delay(tiempo);\r\n  digitalWrite(led4, LOW);\r\n  digitalWrite(A1,LOW);\r\n    \/\/------\r\n  digitalWrite(led5,LOW);\r\n  digitalWrite(A0, LOW);\r\n  \/\/------\r\n  digitalWrite(led13, LOW);\r\n  digitalWrite(led6, LOW);\r\n  \/\/------\r\n  digitalWrite(led12, LOW);\r\n  digitalWrite(led7, LOW);\r\n  \/\/-----  \r\n  digitalWrite(led10, HIGH);\r\n  digitalWrite(led9, HIGH);\r\n  \/\/-----\r\n  digitalWrite(led11, LOW);\r\n  digitalWrite(led8, LOW);\r\n  \/\/-----\r\n  digitalWrite(A3, LOW);\r\n  delay(tiempo);\r\n  \/\/-----\r\n  digitalWrite(led4, LOW);\r\n  digitalWrite(A1,LOW);\r\n    \/\/------\r\n  digitalWrite(led5,LOW);\r\n  digitalWrite(A0, LOW);\r\n  \/\/------\r\n  digitalWrite(led13, LOW);\r\n  digitalWrite(led6, LOW);\r\n  \/\/------\r\n  digitalWrite(led12, HIGH);\r\n  digitalWrite(led7, HIGH);\r\n  \/\/-----  \r\n  digitalWrite(led10, LOW);\r\n  digitalWrite(led9, LOW);\r\n  \/\/-----\r\n  digitalWrite(led11, LOW);\r\n  digitalWrite(led8, LOW);\r\n  \/\/-----\r\n  digitalWrite(A3, HIGH);\r\n  delay(tiempo);\r\n  \/\/-----\r\n  digitalWrite(led4, LOW);\r\n  digitalWrite(A1,LOW);\r\n    \/\/------\r\n  digitalWrite(led5,LOW);\r\n  digitalWrite(A0, LOW);\r\n  \/\/------\r\n  digitalWrite(led13, HIGH);\r\n  digitalWrite(led6, HIGH);\r\n  \/\/------\r\n  digitalWrite(led12, LOW);\r\n  digitalWrite(led7, LOW);\r\n  \/\/-----  \r\n  digitalWrite(led10, LOW);\r\n  digitalWrite(led9, LOW);\r\n  \/\/-----\r\n  digitalWrite(led11, LOW);\r\n  digitalWrite(led8, LOW);\r\n  \/\/-----\r\n  digitalWrite(A3, LOW);\r\n  delay(tiempo);\r\n  \/\/-----\r\n  digitalWrite(led4, LOW);\r\n  digitalWrite(A1,LOW);\r\n    \/\/------\r\n  digitalWrite(led5,HIGH);\r\n  digitalWrite(A0, HIGH);\r\n  \/\/------\r\n  digitalWrite(led13, LOW);\r\n  digitalWrite(led6, LOW);\r\n  \/\/------\r\n  digitalWrite(led12, LOW);\r\n  digitalWrite(led7, LOW);\r\n  \/\/-----  \r\n  digitalWrite(led10, LOW);\r\n  digitalWrite(led9, LOW);\r\n  \/\/-----\r\n  digitalWrite(led11, LOW);\r\n  digitalWrite(led8, LOW);\r\n  \/\/-----\r\n  digitalWrite(A3, HIGH);\r\n  delay(tiempo);\r\n  \/\/-----\r\n  digitalWrite(led4, HIGH);\r\n  digitalWrite(A1,HIGH);\r\n    \/\/------\r\n  digitalWrite(led5,LOW);\r\n  digitalWrite(A0, LOW);\r\n  \/\/------\r\n  digitalWrite(led13, LOW);\r\n  digitalWrite(led6, LOW);\r\n  \/\/------\r\n  digitalWrite(led12, LOW);\r\n  digitalWrite(led7, LOW);\r\n  \/\/-----  \r\n  digitalWrite(led10, LOW);\r\n  digitalWrite(led9, LOW);\r\n  \/\/-----\r\n  digitalWrite(led11, LOW);\r\n  digitalWrite(led8, LOW);\r\n  \/\/-----\r\n  digitalWrite(A3, LOW);\r\n  delay(tiempo);\r\n}\r\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\r\n\/\/------Funci\u00f3n desendente----------------------------------\r\n  void desendente(void) {\r\n  digitalWrite(led4, HIGH);\r\n  digitalWrite(A1,HIGH);\r\n    \/\/------\r\n  digitalWrite(led5,LOW);\r\n  digitalWrite(A0, LOW);\r\n  \/\/------\r\n  digitalWrite(led13, LOW);\r\n  digitalWrite(led6, LOW);\r\n  \/\/------\r\n  digitalWrite(led12, LOW);\r\n  digitalWrite(led7, LOW);\r\n  \/\/-----  \r\n  digitalWrite(led10, LOW);\r\n  digitalWrite(led9, LOW);\r\n  \/\/-----\r\n  digitalWrite(led11, LOW);\r\n  digitalWrite(led8, LOW);\r\n  \/\/-----\r\n  digitalWrite(A3, HIGH);\r\n  delay(tiempo);\r\n  digitalWrite(led4, LOW);\r\n  digitalWrite(A1,LOW);\r\n    \/\/------\r\n  digitalWrite(led5,HIGH);\r\n  digitalWrite(A0, HIGH);\r\n  \/\/------\r\n  digitalWrite(led13, LOW);\r\n  digitalWrite(led6, LOW);\r\n  \/\/------\r\n  digitalWrite(led12, LOW);\r\n  digitalWrite(led7, LOW);\r\n  \/\/-----  \r\n  digitalWrite(led10, LOW);\r\n  digitalWrite(led9, LOW);\r\n  \/\/-----\r\n  digitalWrite(led11, LOW);\r\n  digitalWrite(led8, LOW);\r\n  \/\/-----\r\n  digitalWrite(A3, LOW);\r\n  delay(tiempo);\r\n  \/\/-----\r\n  digitalWrite(led4, LOW);\r\n  digitalWrite(A1,LOW);\r\n    \/\/------\r\n  digitalWrite(led5,LOW);\r\n  digitalWrite(A0, LOW);\r\n  \/\/------\r\n  digitalWrite(led13, HIGH);\r\n  digitalWrite(led6, HIGH);\r\n  \/\/------\r\n  digitalWrite(led12, LOW);\r\n  digitalWrite(led7, LOW);\r\n  \/\/-----  \r\n  digitalWrite(led10, LOW);\r\n  digitalWrite(led9, LOW);\r\n  \/\/-----\r\n  digitalWrite(led11, LOW);\r\n  digitalWrite(led8, LOW);\r\n  \/\/-----\r\n  digitalWrite(A3, HIGH);\r\n  delay(tiempo);\r\n  \/\/-----\r\n  digitalWrite(led4, LOW);\r\n  digitalWrite(A1,LOW);\r\n    \/\/------\r\n  digitalWrite(led5,LOW);\r\n  digitalWrite(A0, LOW);\r\n  \/\/------\r\n  digitalWrite(led13, LOW);\r\n  digitalWrite(led6, LOW);\r\n  \/\/------\r\n  digitalWrite(led12, HIGH);\r\n  digitalWrite(led7, HIGH);\r\n  \/\/-----  \r\n  digitalWrite(led10, LOW);\r\n  digitalWrite(led9, LOW);\r\n  \/\/-----\r\n  digitalWrite(led11, LOW);\r\n  digitalWrite(led8, LOW);\r\n  \/\/-----\r\n  digitalWrite(A3, LOW);\r\n  delay(tiempo);\r\n  \/\/-----\r\n  digitalWrite(led4, LOW);\r\n  digitalWrite(A1,LOW);\r\n    \/\/------\r\n  digitalWrite(led5,LOW);\r\n  digitalWrite(A0, LOW);\r\n  \/\/------\r\n  digitalWrite(led13, LOW);\r\n  digitalWrite(led6, LOW);\r\n  \/\/------\r\n  digitalWrite(led12, LOW);\r\n  digitalWrite(led7, LOW);\r\n  \/\/-----  \r\n  digitalWrite(led10, HIGH);\r\n  digitalWrite(led9, HIGH);\r\n  \/\/-----\r\n  digitalWrite(led11, LOW);\r\n  digitalWrite(led8, LOW);\r\n  \/\/-----\r\n  digitalWrite(A3, HIGH);\r\n  delay(tiempo);\r\n  \/\/-----\r\n  digitalWrite(led4, LOW);\r\n  digitalWrite(A1,LOW);\r\n    \/\/------\r\n  digitalWrite(led5,LOW);\r\n  digitalWrite(A0, LOW);\r\n  \/\/------\r\n  digitalWrite(led13, LOW);\r\n  digitalWrite(led6, LOW);\r\n  \/\/------\r\n  digitalWrite(led12, LOW);\r\n  digitalWrite(led7, LOW);\r\n  \/\/-----  \r\n  digitalWrite(led10, LOW);\r\n  digitalWrite(led9, LOW);\r\n  \/\/-----\r\n  digitalWrite(led11, HIGH);\r\n  digitalWrite(led8, HIGH);\r\n  \/\/-----\r\n  digitalWrite(A3, LOW);\r\n  delay(tiempo);\r\n}\r\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\r\n\/\/------Funci\u00f3n parpadeo----------------------------------\r\n  void parpadeo(void) {\r\n  digitalWrite(led4, HIGH);\r\n  digitalWrite(A1,HIGH);\r\n    \/\/------\r\n  digitalWrite(led5,LOW);\r\n  digitalWrite(A0, LOW);\r\n  \/\/------\r\n  digitalWrite(led13, HIGH);\r\n  digitalWrite(led6, HIGH);\r\n  \/\/------\r\n  digitalWrite(led12, LOW);\r\n  digitalWrite(led7, LOW);\r\n  \/\/-----  \r\n  digitalWrite(led10, HIGH);\r\n  digitalWrite(led9, HIGH);\r\n  \/\/-----\r\n  digitalWrite(led11, LOW);\r\n  digitalWrite(led8, LOW);\r\n  \/\/-----\r\n  digitalWrite(A3, LOW);\r\n  delay(tiempo);\r\ndigitalWrite(led4, LOW);\r\n  digitalWrite(A1,LOW);\r\n    \/\/------\r\n  digitalWrite(led5,HIGH);\r\n  digitalWrite(A0, HIGH);\r\n  \/\/------\r\n  digitalWrite(led13, LOW);\r\n  digitalWrite(led6, LOW);\r\n  \/\/------\r\n  digitalWrite(led12, HIGH);\r\n  digitalWrite(led7, HIGH);\r\n  \/\/-----  \r\n  digitalWrite(led10, LOW);\r\n  digitalWrite(led9, LOW);\r\n  \/\/-----\r\n  digitalWrite(led11, HIGH);\r\n  digitalWrite(led8, HIGH);\r\n  \/\/-----\r\n  digitalWrite(A3, HIGH);\r\n  delay(tiempo);\r\n  }<\/pre>\n<hr \/>\n<p>SUBSCRIBE TO OUR NEWSLETTERS, RECEIVE IN YOUR EMAIL THE MOST OUTSTANDING NEWS, JUST BY ENTERING YOUR EMAIL<\/p>\n<p style=\"text-align: left;\">[wysija_form id=&#8221;1&#8243;]<\/p>\n<hr \/>\n<p style=\"text-align: left;\"><div class=\"page-sidebar widget\" id=\"donation_buttons\"><form action=\"https:\/\/www.paypal.com\/cgi-bin\/webscr\" method=\"post\" target=\"_blank\" ><input type=\"hidden\" name=\"business\" value=\"donacion@rogerbit.com\"><input type=\"hidden\" name=\"bn\" value=\"mbjtechnolabs_SP\"><input type=\"hidden\" name=\"cmd\" value=\"_donations\"><input type=\"hidden\" name=\"item_name\" value=\"Ayuda a RogerBit.com\"><input type=\"hidden\" name=\"item_number\" value=\"www.rogerbit.com\"><input type=\"hidden\" class=\"set_donation_button_amount\" name=\"amount\" value=\"1\"><table ><tbody><tr><td><label for=\"rogerBit necesita de tu ayuda para seguir existiendo :-)\">rogerBit necesita de tu ayuda para seguir existiendo :-)<\/label><\/td><\/tr><\/tbody><\/table><table ><tbody><tr><td><input style=\"margin-top:10px;\" type=\"image\" name=\"submit\" border=\"0\" src=\"https:\/\/www.paypal.com\/en_US\/i\/btn\/btn_donateCC_LG.gif\" alt=\"PayPal - The safer, easier way to pay online\"><\/td><\/tr><\/tbody><\/table><input type=\"hidden\" name=\"currency_code\" value=\"USD\"><input type=\"hidden\" name=\"notify_url\" value=\"https:\/\/rogerbit.com\/wprb\/?Donation_Button&#038;action=ipn_handler\"><\/form><\/div><\/p>\n<hr \/>\n<p><strong>RECOMMENDED PROJECT<\/strong><\/p>\n<p><iframe loading=\"lazy\" width=\"1160\" height=\"653\" src=\"https:\/\/www.youtube.com\/embed\/GTPkAgXQy5Y?list=PLd82UJfPBYYFXUuRPjUsWnf3EfQM428wF\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>The project will see, how to make a rotating Christmas tree with arduino, a cooler, a perforated experimental board, LED lights and some other electronic elements. You may be interested in projects in Arduino, pic, robotics, telecommunications,\u00a0subscribe http:\/\/www.youtube.com\/user\/carlosvolt?sub_confirmation=1\u00a0videos with full source code and diagrams Project circuit Electronic components 13 Resistors of 1 Kohm 1\/4 W [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":6099,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[648],"tags":[1047,45,1046,1037,1011,1048,1044,1049,1051,1043,1045,1050,986],"_links":{"self":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts\/6114"}],"collection":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/comments?post=6114"}],"version-history":[{"count":1,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts\/6114\/revisions"}],"predecessor-version":[{"id":6115,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/posts\/6114\/revisions\/6115"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/media\/6099"}],"wp:attachment":[{"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/media?parent=6114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/categories?post=6114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rogerbit.com\/wprb\/wp-json\/wp\/v2\/tags?post=6114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}