DIY Breath Controller Prototype with Arduino

Components used for the above project:
MPX2010GSX – Breath Sensor
INA114AP – Instrumentation Amplifier
Si7661 – Voltage Converter

Using the Arduino to send midi cc data to my daw

here's the full arduino code:

/*
11th August 2012
Breath controller code by Alvin Yap

Use at your own risk!

*/

#include
int serialDebug = 0;
int breathInput = 0;

void setup() {
// put your setup code here, to run once:

if (serialDebug)
Serial.begin(9600);
else
MIDI.begin();
}

void loop() {

breathInput = map(analogRead(0),0,1023,0,127);

if (serialDebug)
{
Serial.println(breathInput);
delay(50);
}
else
{
if(breathInput >0)
MIDI.sendControlChange(2,breathInput,1);
}

delay(41); // sleep for 41 milliseconds;
// so assuming there is actually some values detected, we only send about 24 messages a second.
}

Read more about the Arduino DIY Breath Controller Prototype

Leave a Reply

Your email address will not be published. Required fields are marked *