{"id":1262,"date":"2025-04-11T18:43:11","date_gmt":"2025-04-11T18:43:11","guid":{"rendered":"https:\/\/electricidad.microlog.es\/?p=1262"},"modified":"2025-04-14T11:56:43","modified_gmt":"2025-04-14T11:56:43","slug":"semaforo-2","status":"publish","type":"post","link":"https:\/\/electricidad.microlog.es\/en\/semaforo-2\/","title":{"rendered":"Sem\u00e1foro"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"1262\" class=\"elementor elementor-1262\">\n\t\t\t\t<div class=\"elementor-element elementor-element-87ebb3a e-flex e-con-boxed e-con e-parent\" data-id=\"87ebb3a\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f7fc947 elementor-widget elementor-widget-text-editor\" data-id=\"f7fc947\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Conectando los 3 LEDs a la placa micro:bit, podemos recrear un sem\u00e1foro cuyas luces se enciendan y apaguen de forma aut\u00f3noma.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-be34734 e-flex e-con-boxed e-con e-parent\" data-id=\"be34734\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ebd1d70 elementor-widget elementor-widget-heading\" data-id=\"ebd1d70\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Conexi\u00f3n<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-0e74570 e-flex e-con-boxed e-con e-parent\" data-id=\"0e74570\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-861ab11 elementor-widget elementor-widget-text-editor\" data-id=\"861ab11\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Presta atenci\u00f3n a la polaridad de los LEDs. Los polos positivos (+) se conectan a los pines 0, 1 y 2 de la placa micro:bit. Los polos negativos (-) se conectan a GND. Puedes utilizar la perforaci\u00f3n de los conectores banana para interconectar los 3 cables que se van a unir a la conexi\u00f3n GND.\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-329e1c8 elementor-widget elementor-widget-image\" data-id=\"329e1c8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"293\" height=\"300\" src=\"https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/conexiones-293x300.jpg\" class=\"attachment-medium size-medium wp-image-1345\" alt=\"\" srcset=\"https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/conexiones-293x300.jpg 293w, https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/conexiones-1000x1024.jpg 1000w, https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/conexiones-768x786.jpg 768w, https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/conexiones.jpg 1470w\" sizes=\"(max-width: 293px) 100vw, 293px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-7c75708 e-con-full e-flex e-con e-parent\" data-id=\"7c75708\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b0f30e5 elementor-widget elementor-widget-image\" data-id=\"b0f30e5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"537\" height=\"534\" src=\"https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/semaforov2.jpg\" class=\"attachment-large size-large wp-image-1580\" alt=\"\" srcset=\"https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/semaforov2.jpg 537w, https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/semaforov2-300x298.jpg 300w, https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/semaforov2-150x150.jpg 150w\" sizes=\"(max-width: 537px) 100vw, 537px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b1b249d elementor-widget elementor-widget-heading\" data-id=\"b1b249d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Programaci\u00f3n<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d4ce994 elementor-widget elementor-widget-text-editor\" data-id=\"d4ce994\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>En este ejemplo, el sem\u00e1foro realiza la siguiente secuencia de luces:<\/p><ul><li>Verde<\/li><li>Amarillo<\/li><li>Rojo<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e5595e1 elementor-widget elementor-widget-image\" data-id=\"e5595e1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"474\" height=\"471\" src=\"https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/Captura-de-pantalla-2025-04-13-202307.png\" class=\"attachment-large size-large wp-image-1291\" alt=\"\" srcset=\"https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/Captura-de-pantalla-2025-04-13-202307.png 474w, https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/Captura-de-pantalla-2025-04-13-202307-300x298.png 300w, https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/Captura-de-pantalla-2025-04-13-202307-150x150.png 150w\" sizes=\"(max-width: 474px) 100vw, 474px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-aa13a44 elementor-widget elementor-widget-heading\" data-id=\"aa13a44\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Programaci\u00f3n (amarillo parpadeante)\n<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-825a778 e-flex e-con-boxed e-con e-parent\" data-id=\"825a778\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-9dff8f9 elementor-widget elementor-widget-text-editor\" data-id=\"9dff8f9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>En este ejemplo, el sem\u00e1foro realiza la siguiente secuencia de luces:<\/p><ul><li>Verde<\/li><li>Amarillo parpadea 4 veces<\/li><li>Rojo<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-5bb8ff3 e-flex e-con-boxed e-con e-parent\" data-id=\"5bb8ff3\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-253b8a5 elementor-widget elementor-widget-image\" data-id=\"253b8a5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"587\" height=\"574\" src=\"https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/Captura-de-pantalla-2025-04-13-201800.png\" class=\"attachment-large size-large wp-image-1290\" alt=\"\" srcset=\"https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/Captura-de-pantalla-2025-04-13-201800.png 587w, https:\/\/electricidad.microlog.es\/wp-content\/uploads\/2025\/04\/Captura-de-pantalla-2025-04-13-201800-300x293.png 300w\" sizes=\"(max-width: 587px) 100vw, 587px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-6d53f21 e-grid e-con-boxed e-con e-parent\" data-id=\"6d53f21\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-cfd0ab9 elementor-widget elementor-widget-button\" data-id=\"cfd0ab9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/electricidad.microlog.es\/en\/luz-intermitente\/\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t<span class=\"elementor-button-icon\">\n\t\t\t\t<svg aria-hidden=\"true\" class=\"e-font-icon-svg e-far-arrow-alt-circle-left\" viewbox=\"0 0 512 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M8 256c0 137 111 248 248 248s248-111 248-248S393 8 256 8 8 119 8 256zm448 0c0 110.5-89.5 200-200 200S56 366.5 56 256 145.5 56 256 56s200 89.5 200 200zm-72-20v40c0 6.6-5.4 12-12 12H256v67c0 10.7-12.9 16-20.5 8.5l-99-99c-4.7-4.7-4.7-12.3 0-17l99-99c7.6-7.6 20.5-2.2 20.5 8.5v67h116c6.6 0 12 5.4 12 12z\"><\/path><\/svg>\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Luz intermitente<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-13f38c1 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"13f38c1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8f5eb91 elementor-align-right elementor-widget elementor-widget-button\" data-id=\"8f5eb91\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/electricidad.microlog.es\/en\/luz-nocturna\/\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t<span class=\"elementor-button-icon\">\n\t\t\t\t<svg aria-hidden=\"true\" class=\"e-font-icon-svg e-far-arrow-alt-circle-right\" viewbox=\"0 0 512 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M504 256C504 119 393 8 256 8S8 119 8 256s111 248 248 248 248-111 248-248zm-448 0c0-110.5 89.5-200 200-200s200 89.5 200 200-89.5 200-200 200S56 366.5 56 256zm72 20v-40c0-6.6 5.4-12 12-12h116v-67c0-10.7 12.9-16 20.5-8.5l99 99c4.7 4.7 4.7 12.3 0 17l-99 99c-7.6 7.6-20.5 2.2-20.5-8.5v-67H140c-6.6 0-12-5.4-12-12z\"><\/path><\/svg>\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Luz nocturna<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Conectando los 3 LEDs a la placa micro:bit, podemos recrear un sem\u00e1foro cuyas luces se enciendan y apaguen de forma aut\u00f3noma. Conexi\u00f3n Presta atenci\u00f3n a la polaridad de los LEDs. Los polos positivos (+) se conectan a los pines 0, 1 y 2 de la placa micro:bit. Los polos negativos (-) se conectan a GND. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ocean_front_end_style_editor":"no","ocean_post_layout":"full-width","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"on","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"off","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1262","post","type-post","status-publish","format-standard","hentry","category-microbit","entry"],"_links":{"self":[{"href":"https:\/\/electricidad.microlog.es\/en\/wp-json\/wp\/v2\/posts\/1262","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/electricidad.microlog.es\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/electricidad.microlog.es\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/electricidad.microlog.es\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/electricidad.microlog.es\/en\/wp-json\/wp\/v2\/comments?post=1262"}],"version-history":[{"count":26,"href":"https:\/\/electricidad.microlog.es\/en\/wp-json\/wp\/v2\/posts\/1262\/revisions"}],"predecessor-version":[{"id":1583,"href":"https:\/\/electricidad.microlog.es\/en\/wp-json\/wp\/v2\/posts\/1262\/revisions\/1583"}],"wp:attachment":[{"href":"https:\/\/electricidad.microlog.es\/en\/wp-json\/wp\/v2\/media?parent=1262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/electricidad.microlog.es\/en\/wp-json\/wp\/v2\/categories?post=1262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/electricidad.microlog.es\/en\/wp-json\/wp\/v2\/tags?post=1262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}