{"id":670,"date":"2017-03-26T18:02:26","date_gmt":"2017-03-26T18:02:26","guid":{"rendered":"https:\/\/zhutarduino.wordpress.com\/?page_id=670"},"modified":"2020-10-12T16:27:01","modified_gmt":"2020-10-12T16:27:01","slug":"dfplayer-mini-mp3-arduino-bluetooth-controlled-fart-machine","status":"publish","type":"page","link":"https:\/\/thezhut.com\/?page_id=670","title":{"rendered":"DFPlayer Mini MP3 ARDUINO Bluetooth controlled Fart Machine"},"content":{"rendered":"<h1>This tutorial will show you how to use a DFPlayer Mini with your ARDUINO to make a Bluetooth controlled Fart machine.<br \/>\nThis also could be used other ways by using different sound effect mp3 clips.<\/h1>\n<h2>Click on video below for full tutorial&#8230;<\/h2>\n<p><iframe loading=\"lazy\" title=\"DFPlayer Mini MP3 ARDUINO Bluetooth controlled Fart Machine\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/-4gcKmwMyxU?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<h1>Parts List:<\/h1>\n<p>#affiliate links#<\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino board&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=9316ddcefc3bebbd476ff56cc7882e77\" target=\"_blank\" rel=\"noopener noreferrer\">ARDUINO Board<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=hc-06&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=23615c967ed0f2a1502188884991c78e\" target=\"_blank\" rel=\"noopener noreferrer\">HC-06<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=logic level converter&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=7489be0878244ef549e9fa40596c99fd\" target=\"_blank\" rel=\"noopener noreferrer\">Logic lvl Converter<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=lm386&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=ec625f9efc1c958b07d08e40c87d2775\" target=\"_blank\" rel=\"noopener noreferrer\">LM386<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=dfplayer mini&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=4672f51d8b1aff6b1a8d5bfd17927051\" target=\"_blank\" rel=\"noopener noreferrer\">DFPlayer Mini<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=capacitor&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=d76e29ea668dc6e5ff9a1096cef3b593\" target=\"_blank\" rel=\"noopener noreferrer\">capacitor<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino push button&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=2761d113d52e775949c1b638188e455e\" target=\"_blank\" rel=\"noopener noreferrer\">Push Button<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=micro sd card&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=2fa58d99a5839f1e821dcd5a9299a6cf\" target=\"_blank\" rel=\"noopener noreferrer\">Micro SD Card<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino speaker&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=490776495080f06427e2de6dabd086db\" target=\"_blank\" rel=\"noopener noreferrer\">Speaker<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino jumper wires&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=2cc0657f1eb8a6107ee2992b988c74cb\" target=\"_blank\" rel=\"noopener noreferrer\">Jumper Wires<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino bread board&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=cc8678fe784528024806937fc5ca4946\" target=\"_blank\" rel=\"noopener noreferrer\">Bread Board<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=arduino battery holder&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=655b4cd195e6b2bf0069223af4f50384\" target=\"_blank\" rel=\"noopener noreferrer\">Battery Holder<\/a><\/p>\n<h2>Schematic:<\/h2>\n<p><a href=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/03\/fart_machine_schem.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-674\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/03\/fart_machine_schem.jpg?w=300\" alt=\"\" width=\"629\" height=\"220\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/03\/fart_machine_schem.jpg 2229w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/03\/fart_machine_schem-300x105.jpg 300w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/03\/fart_machine_schem-768x270.jpg 768w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/03\/fart_machine_schem-1024x360.jpg 1024w\" sizes=\"auto, (max-width: 629px) 100vw, 629px\" \/><\/a><\/p>\n<h1>The APP:<\/h1>\n<h2><a href=\"https:\/\/drive.google.com\/open?id=0B0ZYw2jO5Q3DV2VIc1FSUnJfVFE\" target=\"_blank\" rel=\"noopener noreferrer\">AIA File<\/a><\/h2>\n<p><a href=\"http:\/\/appinventor.mit.edu\/explore\/front.html\" target=\"_blank\" rel=\"noopener noreferrer\">MIT APP Inventor 2<\/a><\/p>\n<h2>MIT Blocks:<\/h2>\n<p><a href=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/03\/blocks-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-673\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/03\/blocks-1.png?w=300\" alt=\"\" width=\"583\" height=\"276\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2017\/03\/blocks-1.png 2061w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/03\/blocks-1-300x142.png 300w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/03\/blocks-1-768x364.png 768w, https:\/\/thezhut.com\/wp-content\/uploads\/2017\/03\/blocks-1-1024x485.png 1024w\" sizes=\"auto, (max-width: 583px) 100vw, 583px\" \/><\/a><\/p>\n<h1>ARDUINO Code:<\/h1>\n<p>#define play 6<\/p>\n<p>void setup() {<br \/>\npinMode(play, OUTPUT);<br \/>\ndigitalWrite(play,HIGH);<br \/>\nSerial.begin(9600);<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;<br \/>\nif (val == 1000)<br \/>\n{<br \/>\ndigitalWrite(play, LOW);<br \/>\ndelay(100);<br \/>\ndigitalWrite(play, HIGH);<\/p>\n<p>}<br \/>\n}<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to use a DFPlayer Mini with your ARDUINO to make a Bluetooth controlled Fart machine. This also could be used other ways by using different sound effect mp3 clips. Click on video below for &hellip; <a href=\"https:\/\/thezhut.com\/?page_id=670\">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-670","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/670","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=670"}],"version-history":[{"count":2,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/670\/revisions"}],"predecessor-version":[{"id":1591,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/670\/revisions\/1591"}],"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=670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}