author
9Comments

Tell us about yourself!

  • RendelB commented on Ryo Kosaka's instructable Arduino Minimal Drum Kit2 years ago
    Arduino Minimal Drum Kit

    Hi Sir,Can I delete this code?Cause I dont have to use LCD for my project.void loop() { /////////////////////////////////// CIRCUIT /////////////////////////////////////// int button_set = digitalRead(6); int button_up = digitalRead(7); int button_down = digitalRead(8); int button_next = digitalRead(9); int button_back = digitalRead(10); int piezoValue_0 = analogRead(A0); //snare head int piezoValue_1 = analogRead(A1); //snare rim int piezoValue_2 = analogRead(A2); //hi-hat int piezoValue_3 = analogRead(A3); //kick drum int fsrValue_0 = analogRead(A4); //hi-hat pedal ////////////////////////////////// EDIT MODE //////////////////////////////////// int UP[4] = {5, 50, 1,1}; //{threshold, sensitivity, note, flag} int UP_ADVANCE[4] = {1, 50, 1,1}; //{scantime, rim / head, p...

    see more »

    Hi Sir,Can I delete this code?Cause I dont have to use LCD for my project.void loop() { /////////////////////////////////// CIRCUIT /////////////////////////////////////// int button_set = digitalRead(6); int button_up = digitalRead(7); int button_down = digitalRead(8); int button_next = digitalRead(9); int button_back = digitalRead(10); int piezoValue_0 = analogRead(A0); //snare head int piezoValue_1 = analogRead(A1); //snare rim int piezoValue_2 = analogRead(A2); //hi-hat int piezoValue_3 = analogRead(A3); //kick drum int fsrValue_0 = analogRead(A4); //hi-hat pedal ////////////////////////////////// EDIT MODE //////////////////////////////////// int UP[4] = {5, 50, 1,1}; //{threshold, sensitivity, note, flag} int UP_ADVANCE[4] = {1, 50, 1,1}; //{scantime, rim / head, pedal velocity ,masktime} char* instrument[] = { "SNARE HEAD", "SNARE RIM", "HIHAT OPEN", "HIHAT CLOSE", "HIHAT PEDAL", "KICK", "ADVANCED SETTING" }; char* setting[] = { "THRESHOLD", "SENSITIVITY", "NOTE", "FLAG" }; char* setting_ADVANCE[] = { "SCAN TIME", "HEAD / RIM ","PEDAL VELO", "MASK TIME" }; if (UPDOWN < 0) { UPDOWN = 6; } if (UPDOWN > 6) { UPDOWN = 0; } if (NEXTBACK < 0) { NEXTBACK = 3; } if (NEXTBACK > 3) { NEXTBACK = 0; } ////////////////////////////// EDIT BUTTON //////////////////////////////// if (button_set == LOW && buttonState == true && buttonState_set == true) { lcd.clear(); lcd.print("EDIT"); buttonState = false; buttonState_set = false; delay(500); } if (button_set == LOW && buttonState == true && buttonState_set == false) { lcd.clear(); lcd.print("EDIT DONE"); buttonState = false; buttonState_set = true; delay(500); } if (button_up == LOW && buttonState == true && buttonState_set == false) { switch (UPDOWN) { case 0: SNARE[NEXTBACK] = SNARE[NEXTBACK] + UP[NEXTBACK]; break; case 1: SNARE_RIM[NEXTBACK] = SNARE_RIM[NEXTBACK] + UP[NEXTBACK]; break; case 2: switch (NEXTBACK) { case 2: HIHAT[NEXTBACK] = HIHAT[NEXTBACK] + UP[NEXTBACK]; break; default: HIHAT_CLOSE[NEXTBACK] = HIHAT_CLOSE[NEXTBACK] + UP[NEXTBACK]; HIHAT[NEXTBACK] = HIHAT[NEXTBACK] + UP[NEXTBACK]; } break; case 3: switch (NEXTBACK) { case 2: HIHAT_CLOSE[NEXTBACK] = HIHAT_CLOSE[NEXTBACK] + UP[NEXTBACK]; break; default: HIHAT_CLOSE[NEXTBACK] = HIHAT_CLOSE[NEXTBACK] + UP[NEXTBACK]; HIHAT[NEXTBACK] = HIHAT[NEXTBACK] + UP[NEXTBACK]; } break; case 4: switch (NEXTBACK) { case 0: HIHAT_PEDAL[NEXTBACK] = HIHAT_PEDAL[NEXTBACK] + UP[NEXTBACK]; break; case 2: HIHAT_PEDAL[NEXTBACK] = HIHAT_PEDAL[NEXTBACK] + UP[NEXTBACK]; break; } break; case 5: KICK[NEXTBACK] = KICK[NEXTBACK] + UP[NEXTBACK]; break; case 6: SETTING[NEXTBACK] = SETTING[NEXTBACK] + UP_ADVANCE[NEXTBACK]; break; } buttonState = false; delay(30); } if (button_down == LOW && buttonState == true && buttonState_set == false) { switch (UPDOWN) { case 0: SNARE[NEXTBACK] = SNARE[NEXTBACK] - UP[NEXTBACK]; break; case 1: SNARE_RIM[NEXTBACK] = SNARE_RIM[NEXTBACK] - UP[NEXTBACK]; break; case 2: switch (NEXTBACK) { case 2: HIHAT[NEXTBACK] = HIHAT[NEXTBACK] - UP[NEXTBACK]; break; default: HIHAT_CLOSE[NEXTBACK] = HIHAT_CLOSE[NEXTBACK] - UP[NEXTBACK]; HIHAT[NEXTBACK] = HIHAT[NEXTBACK] - UP[NEXTBACK]; } break; case 3: switch (NEXTBACK) { case 2: HIHAT_CLOSE[NEXTBACK] = HIHAT_CLOSE[NEXTBACK] - UP[NEXTBACK]; break; default: HIHAT_CLOSE[NEXTBACK] = HIHAT_CLOSE[NEXTBACK] - UP[NEXTBACK]; HIHAT[NEXTBACK] = HIHAT[NEXTBACK] - UP[NEXTBACK]; } break; case 4: switch (NEXTBACK) { case 0: HIHAT_PEDAL[NEXTBACK] = HIHAT_PEDAL[NEXTBACK] - UP[NEXTBACK]; break; case 2: HIHAT_PEDAL[NEXTBACK] = HIHAT_PEDAL[NEXTBACK] - UP[NEXTBACK]; break; } break; case 5: KICK[NEXTBACK] = KICK[NEXTBACK] - UP[NEXTBACK]; break; case 6: SETTING[NEXTBACK] = SETTING[NEXTBACK] - UP_ADVANCE[NEXTBACK]; break; } buttonState = false; delay(30); } ///////////////////////////// UP DOWN NEXT BACK //////////////////////////////// if (button_up == LOW && buttonState == true && buttonState_set == true) { UPDOWN = ++UPDOWN; buttonState = false; delay(30); } if (button_down == LOW && buttonState == true && buttonState_set == true) { UPDOWN = --UPDOWN; buttonState = false; delay(30); } if (button_next == LOW && buttonState == true && buttonState_set == true) { NEXTBACK = ++NEXTBACK; buttonState = false; delay(30); } if (button_back == LOW && buttonState == true && buttonState_set == true) { NEXTBACK = --NEXTBACK; buttonState = false; delay(30); } if (buttonState == false && button_up == HIGH && button_down == HIGH && button_next == HIGH && button_back == HIGH && button_set == HIGH) { switch (UPDOWN) { case 0: lcd.clear(); lcd.print(instrument[UPDOWN]); lcd.setCursor(0, 1); lcd.print(setting[NEXTBACK]); lcd.setCursor(12, 1); lcd.print(SNARE[NEXTBACK]); break; case 1: lcd.clear(); lcd.print(instrument[UPDOWN]); lcd.setCursor(0, 1); lcd.print(setting[NEXTBACK]); lcd.setCursor(12, 1); lcd.print(SNARE_RIM[NEXTBACK]); break; case 2: lcd.clear(); lcd.print(instrument[UPDOWN]); lcd.setCursor(0, 1); lcd.print(setting[NEXTBACK]); lcd.setCursor(12, 1); lcd.print(HIHAT[NEXTBACK]); break; case 3: lcd.clear(); lcd.print(instrument[UPDOWN]); lcd.setCursor(0, 1); lcd.print(setting[NEXTBACK]); lcd.setCursor(12, 1); lcd.print(HIHAT_CLOSE[NEXTBACK]); break; case 4: lcd.clear(); lcd.print(instrument[UPDOWN]); lcd.setCursor(0, 1); lcd.print(setting[NEXTBACK]); lcd.setCursor(12, 1); lcd.print(HIHAT_PEDAL[NEXTBACK]); break; case 5: lcd.clear(); lcd.print(instrument[UPDOWN]); lcd.setCursor(0, 1); lcd.print(setting[NEXTBACK]); lcd.setCursor(12, 1); lcd.print(KICK[NEXTBACK]); break; case 6: lcd.clear(); lcd.print(instrument[UPDOWN]); lcd.setCursor(0, 1); lcd.print(setting_ADVANCE[NEXTBACK]); lcd.setCursor(12, 1); lcd.print(SETTING[NEXTBACK]); break; } buttonState = true; }

    View Instructable »
  • RendelB made the instructable Arduino Minimal Drum Kit2 years ago
    Arduino Minimal Drum Kit

    Hi Sir Ryo,I cant understand the step 14. :(Can you help me to understand this.

    View Instructable »
  • RendelB commented on Ryo Kosaka's instructable Arduino Minimal Drum Kit2 years ago
    Arduino Minimal Drum Kit

    Hi Sir,I had a problem code uploading using your code.Here's the problem.Arduino: 1.8.6 Hourly Build 2017/10/30 11:33 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"C:\Users\MRBello\Downloads\HELLODRUM\HELLODRUM.ino:23:18: fatal error: MIDI.h: No such file or directory #include <MIDI.h> ^compilation terminated.exit status 1Error compiling for board Arduino/Genuino Mega or Mega 2560.This report would have more information with"Show verbose output during compilation"option enabled in File -> Preferences.

    View Instructable »
  • Homemade Electronic Drum Kit With Arduino Mega2560

    Is this the same code and schematic?

    View Instructable »
  • RendelB made the instructable Arduino Minimal Drum Kit2 years ago
    Arduino Minimal Drum Kit

    Hi Ryo,Is this right? Thanks

    View Instructable »
  • Homemade Electronic Drum Kit With Arduino Mega2560

    Hi Sir can i use this for my ipad garage band? because I have no drum software for my laptop. So I decided to use ipad instead of software. Thanks

    View Instructable »