DIY breath controller with Arduino

  Рет қаралды 29,059

MrAkpla

6 жыл бұрын

LINKS:
Midi library:
github.com/FortySevenEffects/arduino_midi_library
HIDUINO
github.com/ddiakopoulos/hiduino/blob/master/compiled_firmwares/arduino_midi.hex
Arduino code
github.com/andreykramer/MIDIBreathController/blob/master/MIDIV3.ino
Sensor datasheet
www.nxp.com/docs/en/data-sheet/MPXV4006.pdf
Blogs that helped me during my research:
gordophone.blogspot.com.es/2013/01/breath-sensing-101.html
mitxela.com/projects/breath_controller

Пікірлер: 56
@ignis_32
@ignis_32 4 жыл бұрын
Hah. looks like I was making my own arduino breath controller using MPX5010GP at the some time, more or less. I am too bad with electronics, so I've ended using calculated moving average math to smooth out the readings. (As far as I understand, you have condenser for that instead). Nice to see similar project, found something to learn), thank you. From my side I would suggest trying to add some kind of a pass-through, allowing some air going freely. This air leak helps to mimic actual wind instrument playing in a little bit more natural way, but still will create pressure on the sensor.
@swatforce3309
@swatforce3309 Жыл бұрын
THANKS a lot! Now I can build my own breath controller and don't have to spend 300£ on a product and 100£ on shipping!! Thanks🙏
@jasonhoffman6642
@jasonhoffman6642 6 жыл бұрын
Go figure, I wanted to compliment you on how much I liked this project and your video, and good old @Craig Hisset beat me to it! Great work, great explanation, great product and great video! Thanks for sharing.
@Andrea-ww7kj
@Andrea-ww7kj 4 жыл бұрын
Nice work, your video has helped me a lot, Im going to subscribe :) Greetings and love from Spain !!!
@mvismara
@mvismara 2 жыл бұрын
Hey, I did the controller exactly as you suggested and it works perfectly! Thank you very much!
@MrAkpla
@MrAkpla 2 жыл бұрын
Very glad to hear! Send me the link if you ever upload a video using it, will love to watch it
@hari-hi6bn
@hari-hi6bn 2 жыл бұрын
How to creat?
@mvismara
@mvismara 2 жыл бұрын
@@MrAkpla Here it is: kzfaq.info/get/bejne/qKt6hZyJydWdZoE.html
@reynaldofernandez8266
@reynaldofernandez8266 Жыл бұрын
can you help me im having some issues my midi see when i blow in but nothing happens ? can can you please send me some instruction? thank you in advance
@CraigHissett
@CraigHissett 6 жыл бұрын
I love this! I'm currently working on a Digital Trombone type device using a pressure sensor and ultrasonic sensor to produce the trombone-like control. The plan is to mount it to my trombone, along with an Android tablet running FluidSynth and a small amp and speaker for output. Ive got the arduino/android part working but have struggled to think of a good way of getting sensor data into the arduino. I'd love to take some notes from your video and make a pressure sensor shield for my Pro Micro, with inputs to add the ultrasonic sensor for pitch and also to attach a few buttons for stepping up/down through ranges :-)
@minka866
@minka866 4 жыл бұрын
I would like watching your project.
@ThelleKristensen
@ThelleKristensen 6 жыл бұрын
cool project!
@darrenerickson1288
@darrenerickson1288 4 жыл бұрын
Your first piece in the video.... the sax solo that TunTun played in Mad Max: Beyond Thunderdome? Or on second listen was it Baker Street... thinking Rick and Morty? Either way if so, ten Internets endorsements on your Geek Card, sir. To go with the 50 for doing this and 100 for posting this on YT. Kudos! 🤓👍
@shroomatic
@shroomatic 3 жыл бұрын
Yaas.
@digitaljawa1145
@digitaljawa1145 5 жыл бұрын
Wao
@rodrigofiss7900
@rodrigofiss7900 3 жыл бұрын
Hello is it possible to make a sensor just like the breath controller, with a sound sensor, volume sensor ?? let's say, playing with a real acoustic instrument saxophone, and with the saxophone microphone volume signal, generate the volume signal to control the sample?? is it possible???
@MrAkpla
@MrAkpla 3 жыл бұрын
Sure but you would still need something to control the pitch of the sampled instrument. Maybe you could perform volume + pitch detection from a microphone and use this as input.
@rodrigofiss7900
@rodrigofiss7900 3 жыл бұрын
@@MrAkpla Yes. the idea would be to play in two people one with a real saxophone acoustic instrument and the other with a control keyboard, with saxophone tones to play in pairs or trumpet and trombone the idea of the volume controller would be just to control the sample volume to play in pairs only for more real partners.
@decaystar
@decaystar 6 жыл бұрын
This is for controlling software over USB. Would it be possible to make such breathcontroller which has midi-out, so you could use it to control a hardware synthesizer?
@MrAkpla
@MrAkpla 6 жыл бұрын
Andreas Marco Haven't looked into it but I'm 90% sure you can by hooking some midi module or cable to the arduino. You wouldn't even need to worry about flashing the serial chip if done that way.
@decaystar
@decaystar 6 жыл бұрын
Thank you for the reply. I actually have a Yamaha VL-70-M, which has a breath-controller input and it could be interesting to use a breath-controller with it to get use of its full potential.
@manskarnekull8649
@manskarnekull8649 6 жыл бұрын
MIDI out from an arduino is really easy, you find the circuit in this tutorial, www.arduino.cc/en/Tutorial/Midi it's just two resistors and it works with the same code
@ghigolaylachannel7802
@ghigolaylachannel7802 5 жыл бұрын
hello! very good project :-) do you have list of components for pcb? more details? tks a lot
@MrAkpla
@MrAkpla 5 жыл бұрын
Hi! Thank you very much. The detailed schematics of the decoupling circuit is on page 5 of the sensor datasheet linked in the description (figure 3) but as I state in the video I wouldn't bother assembling it and just hook up the sensor and the pins on the pcb. Midi protocol is only 7 bits, that is a resolution too low for the decoupling circuit to make any difference.
@user-hj9fu5hg7d
@user-hj9fu5hg7d 4 жыл бұрын
Hi everyone ThaT is work good ??? I want to build one
@akinciaydin
@akinciaydin 5 жыл бұрын
Hi thanks for your video,I was wondering is it possible to use MPS20B0040-D0-40kPa instead of the other sensor,i can find only this sensor in my country.
@MrAkpla
@MrAkpla 5 жыл бұрын
Hi, if its range goes from 0 to 40kPa (assuming that from the part name) I'm afraid it's not going to be precise enough for this task. Can't you get the one on the video shipped from RS-online?
@akinciaydin
@akinciaydin 5 жыл бұрын
@@MrAkpla hi thanx for the real quick response i will try it again thank you very much
@ignis_32
@ignis_32 4 жыл бұрын
I had used MPX5010GP with only 10kPa max pressure, and was not able to blow out the whole range. (only about ~800 of 1024 in arduino reading numbers). It is even with all air going directly to sensor, without any leak, and it was hurting my ears. Maybe a pro trumpet player has more mighty lungs, but I do not think blowing so hard into a sealed up pipe worth it, and I believe that 10kPa is an absolute maxium you may need here, and is already an overkill. 6kPa that MrAkpla had used covers all the actually usable range, and probably is even better choice than my sensor. Also if you use only part of the range - you loose resolution, Therefore, I do not think that using 40kPa sensor would be a good idea. (roughly, if you blow only 5kPa from a 40kPa sensor, you will have readings from 1 to 255, getting 4 times worse accuracy, compared to 5kPa sensor that will give you 1-1024 range of readings. In reality it is going to be even worse) Sorry for necroposting)
@yayayavuzseseselim
@yayayavuzseseselim Жыл бұрын
hocam ne yaptın sende vazgecenlerdenmısın :)((
@minka866
@minka866 4 жыл бұрын
And the humidity?
@reynaldofernandez8266
@reynaldofernandez8266 Жыл бұрын
can you help me im having some issues my midi see when i blow in but nothing happens ? can can you please send me some instruction? thank you in advance
@robman80808
@robman80808 6 жыл бұрын
Excellent project! Would it work with an Arduino Nano instead of a Mega/Uno? Thanks
@MrAkpla
@MrAkpla 6 жыл бұрын
Thank you :) Unfortunately it won't work with a Nano as its USB-to-serial chip isn't compatible with Hiduino, Nano never comes with an atmega 8u2/16u2
@robman80808
@robman80808 6 жыл бұрын
Thanks. I've got it working with a Nano and serial->MIDI bridge (Hairless MIDI) for a bit of fun. I've just got a Teensy 3.2 so I might try it on that.
@MrAkpla
@MrAkpla 6 жыл бұрын
robman80808 Well yes, that's an option, I did use hairless midi when prototyping but the degree of usability isn't nearly as high. With hairless midi bridge it's not plug-and-play as it is with hiduino and the multiple software layers add to the latency.
@CraigHissett
@CraigHissett 6 жыл бұрын
robman80808 hey buddy, an Arduino Pro Micro or a Leonardo would work, with a bit of editing of the code. The ATMega32u4 chips used on those boards can be recognised as a HID device natively.
@TheStudio49
@TheStudio49 9 ай бұрын
Hi would you be able to build a Breath controller for me?
@timchan8630
@timchan8630 5 жыл бұрын
Would this sensor work with inhalation? I want to be able to play by both inhaling and exhaling.
@MrAkpla
@MrAkpla 5 жыл бұрын
No, this particular one doesn't work with negative pressure
@wd25a
@wd25a 3 жыл бұрын
@@MrAkpla How are you going to be able to reproduce this then?: kzfaq.info/get/bejne/ea5nfaWYrq67mqc.html
@pgtpt
@pgtpt 2 жыл бұрын
what the specific chip he says the arduino should have?
@MrAkpla
@MrAkpla 2 жыл бұрын
16U2 or 8U2 chip. You can check more details in the project page I have in hackaday hackaday.io/project/161678/components
@minasmash
@minasmash Жыл бұрын
can i use Pressure Sensor MPS-2108-100GC ?
@MrAkpla
@MrAkpla Жыл бұрын
If the PSI more or less matches the human range and the form factor is good for using it with a hose, I don't think there would be any problem.
@FrankGegna
@FrankGegna 4 жыл бұрын
the water into the breath (condensation)will broke the arduino (short circuit )
@user-hj9fu5hg7d
@user-hj9fu5hg7d 4 жыл бұрын
🤣🤣🤣🤣
@user-hj9fu5hg7d
@user-hj9fu5hg7d 4 жыл бұрын
Good question hehehe
@coffeebeatsofficial1349
@coffeebeatsofficial1349 4 жыл бұрын
I had my leonardo kept outside in rain somehow ... and it's still working perfect -_- I got my Uno dirty from mice excreta and washed it with detergent and it works just perfectly
@normietwiceremoved
@normietwiceremoved 4 ай бұрын
How much cheaper is this than buying one?
@TheStudio49
@TheStudio49 6 жыл бұрын
Hi can you make one me and how much ???? GREAT VIDEO
@MrAkpla
@MrAkpla 6 жыл бұрын
Thank you :) Well if I had to make you one I'd have to make some orders to China, and it would take for it to arrive up to two months. I could buy a new melodica hose/mouthpiece for hygienic reasons and send you my breath controller and then build another one for myself, but for it being effort-worthy I'd have to charge you around 100 euros + shipping, if you're up to it we have a deal. But to be honest I'm not trying to make a business on it but to teach everyone how they can make one at their homes for cheap. You can buy a commercial breath controller (tecontroll's) sold for 120€ + shipping and you'll probably be better off with that than with mine.
@d4eh075
@d4eh075 3 жыл бұрын
Hello, I want to make that, so I want to ask you in detail. Do you have a contact information?
@hiroshgilmar
@hiroshgilmar 5 жыл бұрын
Excuse me, Andrey, would you please pass the specs on the three capacitors? Here in Brazil there are capacitors with different voltages. For example, the 470pF exists for 50v, 500v, 2kv or 3kv. The of 0,0uF exists of 630v, 250v, 35v. And the 1.0uF has 400v, 50v and 25v. What is the exact voltage of each capacitor I should try to buy? Thanks for the attention and congratulations for the work !!!
@Pianoman-cb6yz
@Pianoman-cb6yz 5 жыл бұрын
Voltage of a capacitor means the maximum allowed voltage applied to the capacitor. If one doesn't know the basics of electrical components and basics of electronics one shouldn't play around with it. However, go free with the lowest values from your list.
@ruimigueis5997
@ruimigueis5997 3 жыл бұрын
HI, Where do the pins from the sensor connect on the analog inputs of the board? A1, A2,...? Thanks! Awesome project!!
Best father #shorts by Secret Vlog
00:18
Secret Vlog
Рет қаралды 22 МЛН
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 16 МЛН
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 118 МЛН
One moment can change your life ✨🔄
00:32
A4
Рет қаралды 27 МЛН
Sadraddin - Jauap bar ma? | Official Music Video
2:53
SADRADDIN
Рет қаралды 13 МЛН
BABYMONSTER - ‘FOREVER’ M/V
3:54
BABYMONSTER
Рет қаралды 80 МЛН
IL’HAN - Pai-pai (lyric video) 2024
3:24
Ilhan Ihsanov
Рет қаралды 416 М.
LISA - ROCKSTAR (Official Music Video)
2:48
LLOUD Official
Рет қаралды 119 МЛН