0

i bought an Arduino Mega2560 and flashed it with usbmidi. So now it comes up as a midi device.

I need more than those 16 analog ins to be able to put all my 24 piezo sensors into it to receive midi signals from it. I still have no idea how i have to put the piezo pieces into the arduino but also no clue as how to get more than those 16 analog slots. Any way to use the digital inputs as well or do i need some extension shield or so? I'm a total beginner with arduino...

  • 1
    When you are a total beginner, can you start with 16 piezo sensors? You could buy two arduino leonardo boards: arduino.cc/en/Main/Arduino_BoardLeonardo or use multiplexers: gammon.com.au/forum/?id=11976 or external ADC (as Michel Keijzers wrote in his answer). A digital pin for a piezo sensor is possible, but then you can not tune the level in software, so I prefer analog inputs. – Jot Apr 26 at 11:27
  • I already have an Arduino Mega flashed with hiduino ( github.com/ddiakopoulos/hiduino) ... :/ Also it's for a setup with a lot of bells. A friend is making music (bells and chimes) which i want to connect the piezos to and then send midi signals to me to visualize the sounds^^ – Kazoooka Apr 26 at 11:29
0

You need one (or more) external ADC (analog digital converters).

For example the ADS1115, the link shows an Adafruit model and how to use it.

In a DIP format (to be used on breadboards/prototype boards) it will be hard to find a 16 channel ADC, but you can add multiple I2C (or other) 4 channel ADCs to one Arduino Mega.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.