{"id":180,"date":"2012-02-27T23:35:08","date_gmt":"2012-02-27T22:35:08","guid":{"rendered":"http:\/\/www.hilltop-cottage.info\/blogs\/adam\/?p=180"},"modified":"2012-12-28T20:17:40","modified_gmt":"2012-12-28T19:17:40","slug":"scratchboard-emulator-using-arduino-uno","status":"publish","type":"post","link":"https:\/\/www.hilltop-cottage.info\/blogs\/adam\/scratchboard-emulator-using-arduino-uno\/","title":{"rendered":"ScratchBoard Emulator using Arduino Uno"},"content":{"rendered":"<p>Here is a circuit and arduino code to <span style=\"text-decoration: underline;\">approximately<\/span> emulate a <a href=\"http:\/\/info.scratch.mit.edu\/Sensor_Boards\">ScratchBoard<\/a>; there is sound, light, a button and four sliders but it isn&#8217;t a drop-in replacement.<\/p>\n<p><a href=\"https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-content\/\/2012\/02\/ScratchBoard-Emulator.zip\">Zip file download<\/a> (55kB) contains a schematic (as a PNG graphic and as a TinyCAD file) and an Arduino sketch.<\/p>\n<figure id=\"attachment_182\" aria-describedby=\"caption-attachment-182\" style=\"width: 199px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-content\/\/2012\/02\/ScratchBoard-Emulator_.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-182\" title=\"ScratchBoard Emulator\" src=\"https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-content\/\/2012\/02\/ScratchBoard-Emulator_-199x300.png\" alt=\"\" width=\"199\" height=\"300\" srcset=\"https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-content\/2012\/02\/ScratchBoard-Emulator_-199x300.png 199w, https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-content\/2012\/02\/ScratchBoard-Emulator_-681x1024.png 681w, https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-content\/2012\/02\/ScratchBoard-Emulator_.png 1336w\" sizes=\"auto, (max-width: 199px) 100vw, 199px\" \/><\/a><figcaption id=\"caption-attachment-182\" class=\"wp-caption-text\">ScratchBoard Emulator Schematic (click image for full-size)<\/figcaption><\/figure>\n<p>Various notes:<\/p>\n<ul>\n<li>The electret mic used was an off-the-shelf component from Maplin Electronics.<\/li>\n<li>the sound circuit is essentially &#8220;pinched&#8221; from the ScratchBoard (NB the circuit is intended to capture amplitude and not the actual audio waveform)<\/li>\n<li>the 250k variable resistor provides some gain (amplification) control<\/li>\n<li>there are some configurable parameters for the sound sensor in the sketch<\/li>\n<li>remember to change the COM ports in the Arduino IDE and in Scratch so that they are not competing (if the Arduino is on COM3 then only one of the IDE or Scratch can use COM3 at a given time)<\/li>\n<li>the arduino pin\u00a0 numbers in the schematic and in the sketch are matched so it should &#8220;just work&#8221; (build circuit, upload sketch, run Scratch)<\/li>\n<li>configuring things in <a href=\"http:\/\/scratch.mit.edu\/\">Scratch <\/a>is a bit cryptic: you need to right-click on the &#8220;sensor value&#8221; block to show the &#8220;watcher&#8221; then right-click on that to set the COM port.<\/li>\n<li>feel free to adapt and share&#8230; all is under open licence.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a circuit and arduino code to approximately emulate a ScratchBoard; there is sound, light, a button and four&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,16],"tags":[],"class_list":["post-180","post","type-post","status-publish","format-standard","hentry","category-arduino","category-mcu","post-archive"],"_links":{"self":[{"href":"https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-json\/wp\/v2\/posts\/180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-json\/wp\/v2\/comments?post=180"}],"version-history":[{"count":4,"href":"https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-json\/wp\/v2\/posts\/180\/revisions"}],"predecessor-version":[{"id":279,"href":"https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-json\/wp\/v2\/posts\/180\/revisions\/279"}],"wp:attachment":[{"href":"https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-json\/wp\/v2\/media?parent=180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-json\/wp\/v2\/categories?post=180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hilltop-cottage.info\/blogs\/adam\/wp-json\/wp\/v2\/tags?post=180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}