{"id":8446,"date":"2021-04-10T14:12:08","date_gmt":"2021-04-10T11:12:08","guid":{"rendered":"https:\/\/roboromania.ro\/?p=8446"},"modified":"2021-04-10T14:26:39","modified_gmt":"2021-04-10T11:26:39","slug":"arduino-remote-bluetooth-spp-c-onoff-led","status":"publish","type":"post","link":"https:\/\/roboromania.ro\/?p=8446","title":{"rendered":"Arduino Remote Bluetooth SPP-C on\/off LED"},"content":{"rendered":"<h4><span style=\"color: #0000ff;\"><strong>Arduino Remote Bluetooth SPP-C on\/off LED<\/strong><\/span><\/h4>\n<p><a href=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2021\/04\/Spp-C-Bluetooth-Slave-Module-roboromania-fat.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-8452\" src=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2021\/04\/Spp-C-Bluetooth-Slave-Module-roboromania-fat-291x300.jpg\" alt=\"Spp-C-Bluetooth-Slave-Module-roboromania-fat\" width=\"291\" height=\"300\" srcset=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2021\/04\/Spp-C-Bluetooth-Slave-Module-roboromania-fat-291x300.jpg 291w, https:\/\/roboromania.ro\/wp-content\/uploads\/2021\/04\/Spp-C-Bluetooth-Slave-Module-roboromania-fat.jpg 600w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2021\/04\/Spp-C-Bluetooth-to-Serial-Arduino-remote.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-8447\" src=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2021\/04\/Spp-C-Bluetooth-to-Serial-Arduino-remote-300x236.jpg\" alt=\"Spp-C-Bluetooth-to-Serial-Arduino-remote\" width=\"300\" height=\"236\" srcset=\"https:\/\/roboromania.ro\/wp-content\/uploads\/2021\/04\/Spp-C-Bluetooth-to-Serial-Arduino-remote-300x236.jpg 300w, https:\/\/roboromania.ro\/wp-content\/uploads\/2021\/04\/Spp-C-Bluetooth-to-Serial-Arduino-remote.jpg 852w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Avem nevoie de :<br \/>\no <a href=\"http:\/\/roboromania.ro\/produs\/placa-de-dezvoltare-uno-r3-placa-de-dezvoltare-compatibila-arduino\/\" target=\"_blank\">plac\u0103 de dezvoltare tip Arduino UNO<\/a> (sau oricare)<br \/>\nun modul <span style=\"color: #0000ff;\">Bluetooth SPP-C<\/span><br \/>\n<a href=\"http:\/\/roboromania.ro\/produs\/breadboard-din-plastic-cu-800-contacte-nichelate-65-fire-dupont\/\" target=\"_blank\">cabluri Dupont<\/a><\/p>\n<p>Cel mai simplu cod : (aten\u021bie c\u00e2nd copia\u021bi codul ar putea sa apar\u0103 unele erori de la fonturi)<\/p>\n<p>\/\/roboromania.ro<br \/>\n#include &lt;SoftwareSerial.h&gt;<br \/>\nSoftwareSerial mySerial(8,7); \/\/ 8 &#8211;&gt; pin TX, 7 &#8211;&gt; pin RX<br \/>\n#define LED 13<br \/>\nvoid setup()<br \/>\n{<br \/>\nSerial.begin(9600);<br \/>\nmySerial.begin(9600);<br \/>\npinMode(LED, OUTPUT);<br \/>\n}<br \/>\nvoid loop()<br \/>\n{<br \/>\nif (mySerial.available()) {<br \/>\nint inByte = mySerial.read();<br \/>\nSerial.println(inByte);<br \/>\nif(inByte == &#8216;1&#8217;){<br \/>\ndigitalWrite(LED, LOW);<br \/>\ndelay(500);<br \/>\n}<br \/>\nif(inByte == &#8216;2&#8217;){<br \/>\ndigitalWrite(LED, HIGH);<br \/>\ndelay(500);<br \/>\n}<br \/>\n}<br \/>\n}<\/p>\n<p>Aten\u021bie la declararea pinilor.<\/p>\n<p>Acum mai trebuie\u0219te instalat\u0103 \u0219i configurat\u0103 aplica\u021bia pentru telefon din Google Play :<\/p>\n<p class=\"AHFaub\"><strong>Arduino bluetooth controller<\/strong>(cu iconita din figura)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5903\" src=\"http:\/\/roboromania.ro\/wp-content\/uploads\/2017\/06\/ikon.png\" alt=\"ikon\" width=\"168\" height=\"92\" \/><\/p>\n<p>Nume : JDY-31-SPP<\/p>\n<p>Pin : 1234<\/p>\n<p>Seta\u021bi butoanele cu caracterele alese (in exemplu\u00a0 &#8216;1&#8217;\u00a0 \u0219i\u00a0 &#8216;2&#8217;)<\/p>\n<p>Se aprinde \u0219i se stinge LED(13) de pe placa Arduino.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Arduino Remote Bluetooth SPP-C on\/off LED Avem nevoie de : o plac\u0103 de dezvoltare tip Arduino UNO (sau oricare) un modul Bluetooth SPP-C cabluri Dupont Cel mai simplu cod : (aten\u021bie c\u00e2nd copia\u021bi codul ar putea sa apar\u0103 unele erori de la fonturi) \/\/roboromania.ro #include &lt;SoftwareSerial.h&gt; SoftwareSerial mySerial(8,7); \/\/ 8 &#8211;&gt; pin TX, 7 &#8211;&gt; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[176],"tags":[],"class_list":["post-8446","post","type-post","status-publish","format-standard","hentry","category-tutoriale-arduino"],"_links":{"self":[{"href":"https:\/\/roboromania.ro\/index.php?rest_route=\/wp\/v2\/posts\/8446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roboromania.ro\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/roboromania.ro\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/roboromania.ro\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/roboromania.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8446"}],"version-history":[{"count":3,"href":"https:\/\/roboromania.ro\/index.php?rest_route=\/wp\/v2\/posts\/8446\/revisions"}],"predecessor-version":[{"id":8453,"href":"https:\/\/roboromania.ro\/index.php?rest_route=\/wp\/v2\/posts\/8446\/revisions\/8453"}],"wp:attachment":[{"href":"https:\/\/roboromania.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/roboromania.ro\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/roboromania.ro\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}