MIDI Controller using accelerometer/gyroscope

Hi there,

this is my first post ever here.

I am completely new to this, so please excuse my lack of knowledge.

For my project I have the following equipment:
Arduino Uno
Sensors: ADXL335, MMA7361, MPU6050

This is what I want to do:
I want to be able to read the information only for the x-axis and export it as serial MIDI data, using the hairless midi bridge (I'm on a mac).

With the MPU6050 I get the right data and scaling, but sometimes there are several fast incoming data that have nothing to do with the movement of the sensor. This happens even when the sensor is completely still.

I've searched the web and tried different starting points for about two months now. Hopefully someone here in this community could help me out, as this is something I need for my honours work.

Thanks in advance.

This is the code I have so far for the ADXL335 sensor.

Hope that it is not a complete mess - it's my first code ever.

Thanks for your hopefully coming help.

ADXL335.ino (540 Bytes)

Hi

i've made this code for ADXL 335 and L3GD2O

if it's help you

midi_accelo_335_gyro_L3GD20.ino (3.48 KB)