
music shoes
thingiverse
this is a pair of shoes that plays music when you start running. ==================================================== ■ Arduino Uno: https://store-usa.arduino.cc/products/arduino-uno-rev3 mp3 player module used: https://www.jaycar.com.au/mp3-audio-player-module-with-6-push-button-switches-for-arduino/p/XC3748 ■ other mp3 player module: https://www.ebay.com.au/itm/134151290079?chn=ps&_ul=AU&mkevt=1&mkcid=28 ■ felt: https://www.amazon.com.au/flic-flac-Assorted-Squares-Nonwoven-Patchwork/dp/B01GCLS32M/ref=asc_df_B01GCLS32M/?tag=googleshopdsk-22&linkCode=df0&hvadid=341791927856&hvpos=&hvnetw=g&hvrand=10408661705274738468&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9071364&hvtargid=pla-314779399608&psc=1 ■ a needle and thread to sow with ■ strap to attach the electronics to body: https://www.amazon.com.au/Luggage-Release-Utility-Packing-Outdoorsports/dp/B07CLM6V9B/ref=asc_df_B07CLM6V9B/?tag=googleshopdsk-22&linkCode=df0&hvadid=463522665741&hvpos=&hvnetw=g&hvrand=3593514761193281829&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9071364&hvtargid=pla-643544129232&psc=1 ■ wire (roughly 3x your height) ■ pretty much any speaker that isn't too big or a pair of headphones ■ a 3d printer ■ crimping or soldering kit ■ a pair of shoes ================================================ Here is the code: #include MD_YX5300.h #include SoftwareSerial.h #define ARDUINO_RX #define ARDUINO_TX 6 SoftwareSerial mySerial(ARDUINO_RX, ARDUINO_TX); static int8_t Send_buf[8] = {0} ; #define CMD_SEL_DEV 0X09 #define DEV_TF 0X02 #define CMD_PLAY_W_VOL 0X22 #define CMD_PLAY 0X0D #define CMD_PAUSE 0X0E #define CMD_PREVIOUS 0X02 #define CMD_NEXT 0X01 int but=12; int red; int lit=2; int num=0; void setup(){ mySerial.begin(9600); Serial.begin(9600); delay(500);//Wait chip initialization is complete sendCommand(CMD_SEL_DEV, DEV_TF);//select the TF card delay(200);//wait for 200ms sendCommand(CMD_PLAY_W_VOL, 0X1E01);//play the first song with volume 30 class pinMode(but, INPUT); pinMode(lit, OUTPUT); } String str; void loop() { red=digitalRead(but); //Serial.println(red); if(Serial.available()) { str = Serial.readStringUntil('\n'); if(str == "2"){ sendCommand(CMD_PLAY_W_VOL, 0X1E02);//play the second track with volume 30 class Serial.println("Second sound track."); } if(str == "3"){ sendCommand(CMD_PLAY_W_VOL, 0X1E03);//play the third track with volume 30 class Serial.println("Third sound track."); } if(str == "4"){ sendCommand(CMD_PLAY_W_VOL, 0X1E04);//play the forth track with volume 30 class Serial.println("Forth sound track."); } if(str == "pr"){ sendCommand(CMD_PREVIOUS, 0X02);//play previous track Serial.println("Playing previous track."); } if(str == "nx"){ sendCommand(CMD_NEXT, 0X01);//play next track Serial.println("Playing next track."); } } if(red == 1){ sendCommand(CMD_PLAY, 0X0D);// num = 0; delay(100); } if(red == 0){ delay(200); if(red == 0){ delay(130); if(red == 0){ delay(100); if(red == 0){ delay(200); if(red == 0){ delay(170); if(red == 0){ delay(200); if(red == 0){ delay(130); if(red == 0){ delay(120); if(red == 0){ num = num + 1; if(num == 3){ sendCommand(CMD_PAUSE, 0X0E);// } } } } } } } } } } } void sendCommand(int8_t command, int16_t dat) { delay(20); Send_buf[0] = 0x7e; //starting byte Send_buf[1] = 0xff; //version Send_buf[2] = 0x06; //the number of bytes of the command without starting byte and ending byte Send_buf[3] = command; // Send_buf[4] = 0x00;//0x00 = no feedback, 0x01 = feedback Send_buf[5] = (int8_t)(dat >> 8);//datah Send_buf[6] = (int8_t)(dat); //datal Send_buf[7] = 0xef; //ending byte for(uint8_t i=0; i<8; i++)// { mySerial.write(Send_buf[i]) ; } }
With this file you will be able to print music shoes with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on music shoes.