{"id":1222,"date":"2015-10-15T13:44:13","date_gmt":"2015-10-15T20:44:13","guid":{"rendered":"http:\/\/www.donluc.com\/?p=1222"},"modified":"2015-10-15T13:44:13","modified_gmt":"2015-10-15T20:44:13","slug":"project-1-the-accelerosynth-mk4","status":"publish","type":"post","link":"https:\/\/www.donluc.com\/?p=1222","title":{"rendered":"Project #1 &#8211; The AcceleroSynth &#8211; Mk4"},"content":{"rendered":"<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4a.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4a.jpg\" alt=\"AcceleroSynth Mk4a\" width=\"640\" height=\"480\" class=\"alignnone size-full wp-image-1223\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4a.jpg 640w, https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4a-300x225.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4b.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4b.jpg\" alt=\"AcceleroSynth Mk4b\" width=\"640\" height=\"480\" class=\"alignnone size-full wp-image-1224\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4b.jpg 640w, https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4b-300x225.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4c.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4c.jpg\" alt=\"AcceleroSynth Mk4c\" width=\"640\" height=\"480\" class=\"alignnone size-full wp-image-1225\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4c.jpg 640w, https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4c-300x225.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4d.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4d.jpg\" alt=\"AcceleroSynth Mk4d\" width=\"640\" height=\"480\" class=\"alignnone size-full wp-image-1226\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4d.jpg 640w, https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4d-300x225.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4e.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4e.jpg\" alt=\"AcceleroSynth Mk4e\" width=\"640\" height=\"480\" class=\"alignnone size-full wp-image-1227\" srcset=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4e.jpg 640w, https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4e-300x225.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<div style=\"width: 640px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-1222-1\" width=\"640\" height=\"360\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4.mp4?_=1\" \/><a href=\"https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4.mp4\">https:\/\/www.donluc.com\/wp-content\/uploads\/2015\/10\/AcceleroSynthMk4.mp4<\/a><\/video><\/div>\n<p>1 X Arduino and Breadboard Holder<\/p>\n<p>1 X Breadboard<\/p>\n<p>1 X Arduino UNO Rev3<\/p>\n<p>1 X Speaker<\/p>\n<p>11 X Jumper Wires Premium 3&#8243; M\/M<\/p>\n<p>4 X Colorful Round Tactile Button Switch<\/p>\n<p>1 X Cable<\/p>\n<p>AcceleroSynthMk4.1.ino<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"default\" data-enlighter-title=\"\">\r\n\/\/ ***** Don Luc *****\r\n\/\/ Software Version Information\r\n\/\/ 4.1 Switch\r\n\r\n\/\/ Which pin on the Arduino is connected pin 8?\r\n\/\/ 8-ohm speaker\r\n#define tonePIN 8\r\n\/\/ Switch\r\n\r\nint switchPin1 = 9;\r\nint switchPin2 = 10;\r\nint switchPin3 = 11;\r\nint switchPin4 = 12;\r\n\r\nboolean running = false;\r\n\r\n\/\/ Pitches\r\n#include &quot;pitches.h&quot;\r\n\r\nvoid loop() {\r\n\r\n  if (digitalRead(switchPin1) == LOW)\r\n  {  \/\/ switch is pressed - pullup keeps pin high normally\r\n    delay(100);                        \/\/ delay to debounce switch\r\n    running = !running;                \/\/ toggle running variable\r\n    tone(tonePIN, NOTE_C4, 100);\r\n  }  \r\n\r\n  if (digitalRead(switchPin2) == LOW)\r\n  {  \/\/ switch is pressed - pullup keeps pin high normally\r\n    delay(100);                        \/\/ delay to debounce switch\r\n    running = !running;                \/\/ toggle running variable\r\n    tone(tonePIN, NOTE_D4, 100);\r\n  } \r\n  \r\n  if (digitalRead(switchPin3) == LOW)\r\n  {  \/\/ switch is pressed - pullup keeps pin high normally\r\n    delay(100);                        \/\/ delay to debounce switch\r\n    running = !running;                \/\/ toggle running variable\r\n    tone(tonePIN, NOTE_E4, 100);\r\n  }   \r\n\r\n  if (digitalRead(switchPin4) == LOW)\r\n  {  \/\/ switch is pressed - pullup keeps pin high normally\r\n    delay(100);                        \/\/ delay to debounce switch\r\n    running = !running;                \/\/ toggle running variable\r\n    tone(tonePIN, NOTE_F4, 100);\r\n  } \r\n  \r\n}\r\n<\/pre>\n<p>pitches.h<\/p>\n<pre class=\"\">{\r\n\/*************************************************\r\n * Public Constants\r\n *************************************************\/\r\n\r\n#define NOTE_B0  31\r\n#define NOTE_C1  33\r\n#define NOTE_CS1 35\r\n#define NOTE_D1  37\r\n#define NOTE_DS1 39\r\n#define NOTE_E1  41\r\n#define NOTE_F1  44\r\n#define NOTE_FS1 46\r\n#define NOTE_G1  49\r\n#define NOTE_GS1 52\r\n#define NOTE_A1  55\r\n#define NOTE_AS1 58\r\n#define NOTE_B1  62\r\n#define NOTE_C2  65\r\n#define NOTE_CS2 69\r\n#define NOTE_D2  73\r\n#define NOTE_DS2 78\r\n#define NOTE_E2  82\r\n#define NOTE_F2  87\r\n#define NOTE_FS2 93\r\n#define NOTE_G2  98\r\n#define NOTE_GS2 104\r\n#define NOTE_A2  110\r\n#define NOTE_AS2 117\r\n#define NOTE_B2  123\r\n#define NOTE_C3  131\r\n#define NOTE_CS3 139\r\n#define NOTE_D3  147\r\n#define NOTE_DS3 156\r\n#define NOTE_E3  165\r\n#define NOTE_F3  175\r\n#define NOTE_FS3 185\r\n#define NOTE_G3  196\r\n#define NOTE_GS3 208\r\n#define NOTE_A3  220\r\n#define NOTE_AS3 233\r\n#define NOTE_B3  247\r\n#define NOTE_C4  262\r\n#define NOTE_CS4 277\r\n#define NOTE_D4  294\r\n#define NOTE_DS4 311\r\n#define NOTE_E4  330\r\n#define NOTE_F4  349\r\n#define NOTE_FS4 370\r\n#define NOTE_G4  392\r\n#define NOTE_GS4 415\r\n#define NOTE_A4  440\r\n#define NOTE_AS4 466\r\n#define NOTE_B4  494\r\n#define NOTE_C5  523\r\n#define NOTE_CS5 554\r\n#define NOTE_D5  587\r\n#define NOTE_DS5 622\r\n#define NOTE_E5  659\r\n#define NOTE_F5  698\r\n#define NOTE_FS5 740\r\n#define NOTE_G5  784\r\n#define NOTE_GS5 831\r\n#define NOTE_A5  880\r\n#define NOTE_AS5 932\r\n#define NOTE_B5  988\r\n#define NOTE_C6  1047\r\n#define NOTE_CS6 1109\r\n#define NOTE_D6  1175\r\n#define NOTE_DS6 1245\r\n#define NOTE_E6  1319\r\n#define NOTE_F6  1397\r\n#define NOTE_FS6 1480\r\n#define NOTE_G6  1568\r\n#define NOTE_GS6 1661\r\n#define NOTE_A6  1760\r\n#define NOTE_AS6 1865\r\n#define NOTE_B6  1976\r\n#define NOTE_C7  2093\r\n#define NOTE_CS7 2217\r\n#define NOTE_D7  2349\r\n#define NOTE_DS7 2489\r\n#define NOTE_E7  2637\r\n#define NOTE_F7  2794\r\n#define NOTE_FS7 2960\r\n#define NOTE_G7  3136\r\n#define NOTE_GS7 3322\r\n#define NOTE_A7  3520\r\n#define NOTE_AS7 3729\r\n#define NOTE_B7  3951\r\n#define NOTE_C8  4186\r\n#define NOTE_CS8 4435\r\n#define NOTE_D8  4699\r\n#define NOTE_DS8 4978\r\n  \r\n}\r\nsetup.ino\r\n<pre class=\"\">void setup() {\r\n\r\n  \/\/ Switch\r\n  pinMode(switchPin1, INPUT);\r\n  digitalWrite(switchPin1, HIGH);      \/\/ turn on pullup resistor\r\n  pinMode(switchPin2, INPUT);\r\n  digitalWrite(switchPin2, HIGH);      \/\/ turn on pullup resistor  \r\n  pinMode(switchPin3, INPUT);\r\n  digitalWrite(switchPin3, HIGH);      \/\/ turn on pullup resistor\r\n  pinMode(switchPin4, INPUT);\r\n  digitalWrite(switchPin4, HIGH);      \/\/ turn on pullup resistor\r\n    \r\n}\r\n<\/pre>\n<p><strong>Don Luc<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 X Arduino and Breadboard Holder 1 X Breadboard 1 X Arduino UNO Rev3 1 X Speaker 11 X Jumper Wires Premium 3&#8243; M\/M 4 X Colorful Round Tactile Button Switch 1 X Cable AcceleroSynthMk4.1.ino \/\/ ***** Don Luc ***** \/\/ Software Version Information \/\/ 4.1 Switch \/\/ Which pin on the Arduino is connected &#8230; <a title=\"Project #1 &#8211; The AcceleroSynth &#8211; Mk4\" class=\"read-more\" href=\"https:\/\/www.donluc.com\/?p=1222\" aria-label=\"Read more about Project #1 &#8211; The AcceleroSynth &#8211; Mk4\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,50,5,7,10,51],"tags":[],"class_list":["post-1222","post","type-post","status-publish","format-standard","hentry","category-accelerosynth","category-arduino","category-microcontrollers","category-musical-instruments","category-projects","category-synth"],"_links":{"self":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/1222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1222"}],"version-history":[{"count":1,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/1222\/revisions"}],"predecessor-version":[{"id":1229,"href":"https:\/\/www.donluc.com\/index.php?rest_route=\/wp\/v2\/posts\/1222\/revisions\/1229"}],"wp:attachment":[{"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.donluc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}