{"id":770,"date":"2017-06-24T13:52:12","date_gmt":"2017-06-24T13:52:12","guid":{"rendered":"https:\/\/zhutarduino.wordpress.com\/?page_id=770"},"modified":"2017-06-24T13:52:12","modified_gmt":"2017-06-24T13:52:12","slug":"arduino-bluetooth-controlled-dice-shaker-game","status":"publish","type":"page","link":"https:\/\/thezhut.com\/?page_id=770","title":{"rendered":"ARDUINO Bluetooth Controlled Dice Shaker Game"},"content":{"rendered":"<h1>This tutorial will show you how to build a bluetooth controlled ARDUINO dice shaker game.<\/h1>\n<p>Click on video below for full tutorial&#8230;<\/p>\n<p><iframe loading=\"lazy\" title=\"ARDUINO Bluetooth Controlled Dice Shaker Game\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/BwHZf9sFPsQ?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<p>&nbsp;<\/p>\n<h2>The APP:<\/h2>\n<p><a href=\"https:\/\/drive.google.com\/open?id=0B0ZYw2jO5Q3DOXlXbTMySjFzck0\" target=\"_blank\" rel=\"noopener noreferrer\">APK File<\/a><\/p>\n<p><a href=\"https:\/\/drive.google.com\/open?id=0B0ZYw2jO5Q3DT0x0cEdDZzA0bUE\" target=\"_blank\" rel=\"noopener noreferrer\">AIA File<\/a><\/p>\n<h2>ARDUINO Code:<\/h2>\n<p>#define shaker 3<br \/>\nvoid setup() {<br \/>\nSerial.begin(9600);<br \/>\npinMode(shaker, OUTPUT);<br \/>\n}<\/p>\n<p>void loop() {<\/p>\n<p>if (Serial.available() &gt;= 2 )<br \/>\n{<br \/>\nunsigned int a = Serial.read();<br \/>\nunsigned int b = Serial.read();<br \/>\nunsigned int val = (b * 256) + a;<\/p>\n<p>delay(1000);<br \/>\nanalogWrite(shaker, 175);<br \/>\ndelay(val);<br \/>\ndigitalWrite(shaker, LOW);<\/p>\n<p>&nbsp;<\/p>\n<p>}<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to build a bluetooth controlled ARDUINO dice shaker game. Click on video below for full tutorial&#8230; &nbsp; The APP: APK File AIA File ARDUINO Code: #define shaker 3 void setup() { Serial.begin(9600); pinMode(shaker, OUTPUT); &hellip; <a href=\"https:\/\/thezhut.com\/?page_id=770\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":10,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-770","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=770"}],"version-history":[{"count":0,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/770\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/10"}],"wp:attachment":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}