{"id":7271,"date":"2023-03-15T10:56:53","date_gmt":"2023-03-15T09:56:53","guid":{"rendered":"https:\/\/agora.xtec.cat\/ies-eltiller\/?p=7271"},"modified":"2023-03-15T10:56:53","modified_gmt":"2023-03-15T09:56:53","slug":"programacio-amb-placa-arduino-i-c","status":"publish","type":"post","link":"https:\/\/agora.xtec.cat\/ies-eltiller\/portada\/programacio-amb-placa-arduino-i-c\/","title":{"rendered":"Programaci\u00f3 amb placa Arduino i C++"},"content":{"rendered":"<p>Estimades fam\u00edlies,<\/p>\n<p>A la mat\u00e8ria de programaci\u00f3 1r batxillerat, continuem programant en llenguatge C++ les nostres plaques Arduino UNO. Les darreres sessions hem fet la programaci\u00f3 que controla el funcionament d&#8217;un LED gr\u00e0cies a un LDR (resist\u00e8ncia que detecta la llum): si hi ha molta llum exterior, el LED roman apagat; en canvi, si no hi ha llum exterior suficient, el LED s&#8217;enc\u00e9n. Tamb\u00e9 han programat el funcionament d&#8217;un servomotor amb l&#8217;acci\u00f3 d&#8217;un potenci\u00f2metre (resist\u00e8ncia variable): quan el potenci\u00f2metre t\u00e9 un valor menor a 300, la posici\u00f3 del servomotor \u00e9s 0\u00ba; quan t\u00e9 un valor de 300 a 700, la posici\u00f3 \u00e9s de 90\u00ba; si \u00e9s major a 700, la posici\u00f3 del servomotor \u00e9s de 180\u00ba.<\/p>\n<p>Aquestes programacions els ajuda a practicar el llenguatge de programaci\u00f3 C++, un dels m\u00e9s utilitzats en la programaci\u00f3 actual.<\/p>\n<p><iframe loading=\"lazy\" title=\"Programaci\u00f3 1r batxillerat: pr\u00e0ctiques amb placa Arduino i C++\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/wJS2yuGBarM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Estimades fam\u00edlies,<\/p>\n<p>A la mat\u00e8ria de programaci\u00f3 1r batxillerat, continuem programant en llenguatge C++ les nostres plaques Arduino UNO. Les darreres sessions hem fet la programaci\u00f3 que controla el funcionament d&#8217;un LED gr\u00e0cies a un LDR (resist\u00e8ncia que detecta la llum): si hi ha molta llum exterior, el LED roman apagat; en canvi, si no hi ha llum exterior suficient, el LED s&#8217;enc\u00e9n&hellip;  <a href=\"https:\/\/agora.xtec.cat\/ies-eltiller\/portada\/programacio-amb-placa-arduino-i-c\/\" title=\"Read Programaci\u00f3 amb placa Arduino i C++\">Llegeix m\u00e9s\u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":7272,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[372,29],"tags":[1050,1015],"class_list":["post-7271","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-batxillerat","category-portada","tag-arduino","tag-programacio"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/agora.xtec.cat\/ies-eltiller\/wp-json\/wp\/v2\/posts\/7271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/agora.xtec.cat\/ies-eltiller\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/agora.xtec.cat\/ies-eltiller\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/agora.xtec.cat\/ies-eltiller\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/agora.xtec.cat\/ies-eltiller\/wp-json\/wp\/v2\/comments?post=7271"}],"version-history":[{"count":1,"href":"https:\/\/agora.xtec.cat\/ies-eltiller\/wp-json\/wp\/v2\/posts\/7271\/revisions"}],"predecessor-version":[{"id":7273,"href":"https:\/\/agora.xtec.cat\/ies-eltiller\/wp-json\/wp\/v2\/posts\/7271\/revisions\/7273"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/agora.xtec.cat\/ies-eltiller\/wp-json\/wp\/v2\/media\/7272"}],"wp:attachment":[{"href":"https:\/\/agora.xtec.cat\/ies-eltiller\/wp-json\/wp\/v2\/media?parent=7271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/agora.xtec.cat\/ies-eltiller\/wp-json\/wp\/v2\/categories?post=7271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/agora.xtec.cat\/ies-eltiller\/wp-json\/wp\/v2\/tags?post=7271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}