Tell us about yourself!

Complete Your Profile

Achievements

course completion badge
Design Sketching ClassClass Complete!
Show 1 More »
  • Homemade Electronic Drum Kit With Arduino Mega2560

    Hi, the resistor goes parallel to the piezo connection {one end of the resistor connected to the positive end of the piezo(red wire) and one to the ground}.hope it helps :)

    Hi, I tried to make a version of this using an arduino mega and 8 piezos. Hairlessmidi and FL studio 12. I tried replacing my arduino as well as the piezos and every component I used but only the first six analog pins(A0-A5) are responding to signals from the piezos to make sure the hardware is fine.Here's the code I used (from @audreyobscura 's Arduino Xylophone instructable) ://Xylophone//Adapted for an ArduinoMega//from Jenna deBoisblanc and Spiekenzie Labs initial code//*******************************************************************************************************************// User settable variables//*******************************************************************************************************************int pinRead;char pinAssignments[16] ={'A0','A1','A2','A3','A...

    see more »

    Hi, I tried to make a version of this using an arduino mega and 8 piezos. Hairlessmidi and FL studio 12. I tried replacing my arduino as well as the piezos and every component I used but only the first six analog pins(A0-A5) are responding to signals from the piezos to make sure the hardware is fine.Here's the code I used (from @audreyobscura 's Arduino Xylophone instructable) ://Xylophone//Adapted for an ArduinoMega//from Jenna deBoisblanc and Spiekenzie Labs initial code//*******************************************************************************************************************// User settable variables//*******************************************************************************************************************int pinRead;char pinAssignments[16] ={'A0','A1','A2','A3','A4','A5','A6','A7','A8','A9','A10','A11','A12','A13','A14','A15'};byte PadNote[16] = {57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72}; // MIDI notes from 0 to 127 (Mid C = 60)int PadCutOff[16] ={400,400,200,800,400,400,400,400,400,400,400,400,400,400,400,400}; // Minimum Analog value to cause a drum hitint MaxPlayTime[16] = {90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90}; // Cycles before a 2nd hit is allowed#define midichannel 1; // MIDI channel from 0 to 15 (+1 in "real world")boolean VelocityFlag = true; // Velocity ON (true) or OFF (false)//*******************************************************************************************************************// Internal Use Variables//*******************************************************************************************************************boolean activePad[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; // Array of flags of pad currently playingint PinPlayTime[16] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; // Counter since pad started to playbyte status1;int pin = 0;int hitavg = 0;//*******************************************************************************************************************// Setup//*******************************************************************************************************************void setup(){Serial.begin(57600); // connect to the serial port 115200}//*******************************************************************************************************************// Main Program//*******************************************************************************************************************void loop(){for(int pin=0; pin < 16; pin++) //{//int pin = 3;// for (pinRead=0; pinRead < 16, pin++){hitavg = analogRead(pinAssignments[pin]);//Serial.println(hitavg);// read the input pinif((hitavg > PadCutOff[pin])){if((activePad[pin] == false)){if(VelocityFlag == true){// hitavg = 127 / ((1023 - PadCutOff[pin]) / (hitavg - PadCutOff[pin])); // With full range (Too sensitive ?)hitavg = (hitavg / 8) -1 ; // Upper range}else{hitavg = 127;}MIDI_TX(144,PadNote[pin],hitavg); //note onPinPlayTime[pin] = 0;activePad[pin] = true;}else{PinPlayTime[pin] = PinPlayTime[pin] + 1;}}else if((activePad[pin] == true)){PinPlayTime[pin] = PinPlayTime[pin] + 1;if(PinPlayTime[pin] > MaxPlayTime[pin]){activePad[pin] = false;MIDI_TX(144,PadNote[pin],0);}}}}//*******************************************************************************************************************// Transmit MIDI Message//*******************************************************************************************************************void MIDI_TX(byte MESSAGE, byte PITCH, byte VELOCITY){status1 = MESSAGE + midichannel;Serial.write(status1);Serial.write(PITCH);Serial.write(VELOCITY);}Link to original project : https://www.instructables.com/id/Arduino-Xylophone/Can anyone please help with this?Thanks

    View Instructable »
  • diyfreak2001 commented on audreyobscura's instructable Arduino Xylophone8 months ago
    Arduino Xylophone

    HI,I used the exact same code you have provided but only the first 6 pins are responding to being tapped. I checked using 2 different arduino mega 2560s but to no avail. Tried replacing piezos and resistors as well but that isn't doing anything either. I used this code : //Xylophone//Adapted for an ArduinoMega //from Jenna deBoisblanc and Spiekenzie Labs initial code//*******************************************************************************************************************// User settable variables//*******************************************************************************************************************int pinRead;char pinAssignments[16] ={ 'A0','A1','A2','A3','A4','A5','A6','A7','A8','A9','A10','A11','A12','A13','A14','A15'};byte PadNote[16] = { 57,58,59,60,61,62...

    see more »

    HI,I used the exact same code you have provided but only the first 6 pins are responding to being tapped. I checked using 2 different arduino mega 2560s but to no avail. Tried replacing piezos and resistors as well but that isn't doing anything either. I used this code : //Xylophone//Adapted for an ArduinoMega //from Jenna deBoisblanc and Spiekenzie Labs initial code//*******************************************************************************************************************// User settable variables//*******************************************************************************************************************int pinRead;char pinAssignments[16] ={ 'A0','A1','A2','A3','A4','A5','A6','A7','A8','A9','A10','A11','A12','A13','A14','A15'};byte PadNote[16] = { 57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72}; // MIDI notes from 0 to 127 (Mid C = 60)int PadCutOff[16] = { 400,400,200,800,400,400,400,400,400,400,400,400,400,400,400,400}; // Minimum Analog value to cause a drum hitint MaxPlayTime[16] = { 90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90}; // Cycles before a 2nd hit is allowed#define midichannel 1; // MIDI channel from 0 to 15 (+1 in "real world")boolean VelocityFlag = true; // Velocity ON (true) or OFF (false)//*******************************************************************************************************************// Internal Use Variables//*******************************************************************************************************************boolean activePad[16] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; // Array of flags of pad currently playingint PinPlayTime[16] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; // Counter since pad started to playbyte status1;int pin = 0; int hitavg = 0;//*******************************************************************************************************************// Setup//*******************************************************************************************************************void setup() { Serial.begin(57600); // connect to the serial port 115200}//*******************************************************************************************************************// Main Program//*******************************************************************************************************************void loop() { for(int pin=0; pin < 16; pin++) // { //int pin = 3; // for (pinRead=0; pinRead < 16, pin++){ hitavg = analogRead(pinAssignments[pin]); //Serial.println(hitavg); // read the input pin if((hitavg > PadCutOff[pin])) { if((activePad[pin] == false)) { if(VelocityFlag == true) { // hitavg = 127 / ((1023 - PadCutOff[pin]) / (hitavg - PadCutOff[pin])); // With full range (Too sensitive ?) hitavg = (hitavg / 8) -1 ; // Upper range } else { hitavg = 127; } MIDI_TX(144,PadNote[pin],hitavg); //note on PinPlayTime[pin] = 0; activePad[pin] = true; } else { PinPlayTime[pin] = PinPlayTime[pin] + 1; } } else if((activePad[pin] == true)) { PinPlayTime[pin] = PinPlayTime[pin] + 1; if(PinPlayTime[pin] > MaxPlayTime[pin]) { activePad[pin] = false; MIDI_TX(144,PadNote[pin],0); } } } }//*******************************************************************************************************************// Transmit MIDI Message//*******************************************************************************************************************void MIDI_TX(byte MESSAGE, byte PITCH, byte VELOCITY) { status1 = MESSAGE + midichannel; Serial.write(status1); Serial.write(PITCH); Serial.write(VELOCITY);}Can you please help with this?Thanks

    View Instructable »
  • diyfreak2001 commented on Natural Nerd's instructable Music Reactive Desk Lamp2 years ago
    Music Reactive Desk Lamp

    Hi,Does the given code work on an arduino uno as well?Thanks!

    View Instructable »
  • diyfreak2001 followed Natural Nerd2 years ago
      • Music Reactive Desk Lamp
      • Vinyl Record Wall Clock - Iron Man
      • 5 Simple & Nerdy Christmas Tips
  • diyfreak2001 commented on Team Z's instructable Paprika BURGER Buns2 years ago
    Paprika BURGER Buns

    How much salt and sugar do I need to add?

    View Instructable »
  • diyfreak2001 followed Gelstronic and jim_chung2 years ago
      • POV Globe 24bit true color and simple HW
      • Key Holder - Guitar Amp like
      • Wahduino - WahWah by shaking/raise the guitar
      • Jim's Rising Chair
      • Dremel centrifuge
      • Arduino Spectrophotometer
  • diyfreak2001 followed nik.elektro2 years ago
      • Arduino game
      • Vibro BUG
      • Vibro Snail
  • diyfreak2001 followed Makersauce2 years ago
      • Student hacks: Sub zero any drink in 60 seconds with this gadget
      • The Fire-breathing steel Dragon helmet
      • DIY: A Pocket sized Cotton candy machine!
  • Student hacks: Sub zero any drink in 60 seconds with this gadget

    You could try making a case a little bigger than the can and with enough space for the ice to fit in and have a base as in one that sticks to the can and then spins (with an axle) along with the rest of the can to make it more stable - so you have one spray paint can cap on the top with a motor , the same way put one on the bottom but without a motor and an free axle instead this could make it much more stable and less wobbly

    View Instructable »