Multi Instrument Flute
Introduction: Multi Instrument Flute
Hi i'm <PERSON> and i made this flute that lights up and plays music when you blow in it. I got inspired by Fauns, these magical creatures are very friendly and play music on their "pan flute". Fauns guide lost people. I wanted to make a flute that lights up the moment you blow in it ‎and plays a music tone.
It started with flute MP3's and then i started to add all other kinds off sounds, like guitars and a bells.
Step 1: Why Did I Choose This Concept?
Personally i like listening to music but i cant necessarily play it. So i thought it would be nice to make a flute that is controlled by blowing and plays music for you. you still have power over the order but you don't need the skills to play the right tones.
The lights in the flute show you in witch tube you blew. 51
when you blow in a tube the color code of the others will change this way you can also make a little light show.
my ultimate goal was making a <PERSON> says game with the flute, but my coding skills got in the way. So that is my next goal.
Step 2: Electronical Components
- DF player
-Arduino Uno
-Speaker
-SD card
-4 WS2812B leds
- Wires
- Network Cable
Step 3: Non Electronical Components
- Big PVC tube
- Tape
- Isolating Tape
-Solder
-aluminum
Step 4: Tools
- Solder machine
-Saw
-Scissors
-File
-Hot glue gun
Step 5: How to Make It?
to make the flute you need to make a switch that functions the same way as a button does.
Take some aluminum and fold it 4 times and glue it shut. Cut a lollipop kind of shape. do the same but make it a strip. repeat this 4 times.
Cut the Tube in 4 pieces and make 1 slit on each side. One for the lolly pop shape and one for the strip. repeat this for every tube.
stick the lollipop shape in the higher slit and the strip in the lower one.
connect the strips to each other with wires and connect them to one of the cat cable wires., then connect the wire too the ground pin.
connect all the lollipop shaped aluminium all separately to a cat cable wire and put them in the pins of the Arduino.
Next solder the female end of the wires tot the cat cable ends, so that its easier to put them in the Arduino.
Solder 4 lights to each other, connect them to the cat cable wires, one for the pin number, one ground and one for voltage.
Drill a long tunnel horizontally through the tubes, and pull the leds through it.
Hot glue and tape the wires to the tubes so that they stay in place.
Step 6: The Code
#include
#include
#include
#ifdef __AVR__
#endif
#define PIN 4 // pin nuber Led
#define NUMPIXELS 4 //how many leds used
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
static const uint8_t PIN_MP3_TX = 11;
static const uint8_t PIN_MP3_RX = 10;
SoftwareSerial softwareSerial(PIN_MP3_RX, PIN_MP3_TX);
DFRobotDFPlayerMini player;
const int BUTTON_PIN1 = 13;
const int BUTTON_PIN2 = 9; //pin nuber lollipop shaped switch
const int BUTTON_PIN3 = 6;
const int BUTTON_PIN4 = 3;
int lastState1 = HIGH;
int lastState2 = HIGH;
int lastState3 = HIGH;
int lastState4 = HIGH;
int currentState1;
int currentState2;
int currentState3;
int currentState4;
int v1; //value 1
int v2; //value 2
int v3; //value 3
int v4; //value 4
void setup() {
Serial.begin(9600);
randomSeed(analogRead(0));
pixels.begin();
pinMode(BUTTON_PIN1, INPUT_PULLUP);
pinMode(BUTTON_PIN2, INPUT_PULLUP);
pinMode(BUTTON_PIN3, INPUT_PULLUP);
pinMode(BUTTON_PIN4, INPUT_PULLUP);
Serial.begin(9600);
softwareSerial. 635