Pages: [1] 2   Go Down
Author Topic: YAAMI-DRUM, a 52 analog inputs trigger-to-midi drummachine  (Read 5958 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
it's not really new... A project to build another midi drumset, with some special features. New is that it is open source.

    * Optical hihat -> infrared sensor: Can produce up to 10 different HiHat Sounds.
    * save hihat calibration values to eeprom.
    * 48 analog inputs to connect piezos or other analog sensors to the arduino.
    * midi in
    * midi out
    * cymbal choke

You can find explanations and some vids here -> http://blog.georgmill.de/2011/03/22/e-drumset-selbst-gebaut/ .
Get the source code on sourceforge -> http://sourceforge.net/projects/yaamidrum/
If you are interested in building this project yourself I'll post some instructions on how to do that.
« Last Edit: August 12, 2011, 01:52:38 pm by chloris » Logged

Netherlands
Offline Offline
God Member
*****
Karma: 7
Posts: 642
A naughty mind is a joy forever.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Great drum !!!

I dislike shields (love to build stuff my self), but it certainly gave me more info on building a "silent" drum one day !
Which day ? I unfortunately don't know yet, too busy with other projects.

I'd love to play more though and... tease my neighbours as little as possible, so this is one for the bookmarks !
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks,
I know that most of the arduino developers don't like shields.
Here's a link for building one on a breadboard or soldering it together yourself -> http://miulinglam.wordpress.com/2010/04/19/arduino-multiplexing-example-1/

This is only one of many examples you'll find if you'll ask your favorite search engine.

For people who have problems with the midi-to-serial things: Please have a look at this -> http://arduino.cc/blog/2011/04/01/hiduino-arduino-talking-midi/
It could improve performance, but I didn't try it out.
« Last Edit: April 03, 2011, 12:45:08 pm by chloris » Logged

Port Elizabeth, South Africa
Offline Offline
Full Member
***
Karma: 3
Posts: 168
Life's to short to be an adult!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

AHAHAHAHAHAHAHHAHAHAHAH! That is soooooooOOOOOO cooool!
Logged

"The really amazing thing is how many people are successful with their Arduino projects considering the fact that so many of them do not have a technical background.  A lot of them seem to try, and succeed with, projects that no sane engineer would even attempt." - floresta commenting on the proper use of LCD displays

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This is what i was working on lately.  But i was trying to integrate few assignment button (up/down/left/right).

I am new to the arduino world and my son and I are learning everydays.  I found several drum recipe but never that close to what i was looking for.

Is there an efficient schematic available somewhere, and a part list?  If not, i'll start working on it and maybe a PDF with the PCB.

Let me know!!!

ThanX

Eric
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

there's a new version which is  compatible to Arduino IDE 1.0 and the recent Pololu lib -> http://www.pololu.com/docs/0J19 . You can download it here->

http://sourceforge.net/projects/yaamidrum/files/

Have fun!
« Last Edit: March 11, 2012, 09:26:24 am by chloris » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

This looks very fun but for the life of me I can't get any midi output over the TX pin into my pc nor with TTYMIDI in ubuntu or windows.

I have an Arduino Uno rev3 and the Mayhew MUX shield using Arduino IDE 1.0 and your latest YAAMI 1.2.

Serial monitor shows some random characters and nothing registers when I smash on a piezo.

Any help would be lovely!

Thanks smiley-grin



« Last Edit: March 11, 2012, 03:10:49 pm by johnnypig » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi johnnypig.

Using TTYMIDI requires to change the baudrate from 31250 to 115200. Then start TTYMIDI with a line like this ->

Code:
ttymidi -s /dev/ttyACM0 -b 115200 -n yaamidrum -v

Change the tty device to what your os uses in /dev (maybe /dev/ttyUSB0).

For debugging you have to alter some lines of the .ino code like this

Change
Code:
//Serial.begin(9600);                                   // connect to the serial port 9600 (for debug)
//Serial.begin(57600);                                  // connect to the serial port 57600
Serial.begin(31250);                                 // connect to the serial port (31250) //midi standard
//Serial.begin(115200);                                   // connect to the serial port 115200
to
Code:
Serial.begin(9600);                                   // connect to the serial port 9600 (for debug)
//Serial.begin(57600);                                  // connect to the serial port 57600
//Serial.begin(31250);                                 // connect to the serial port (31250) //midi standard
//Serial.begin(115200);                                   // connect to the serial port 115200

and

Code:
void MIDI_TX(unsigned char MESSAGE, unsigned char PITCH, unsigned char VELOCITY)
{
  status = MESSAGE + midichannel;
  Serial.write(status);
  Serial.write(PITCH);
  Serial.write(VELOCITY);
}

to
Code:
void MIDI_TX(unsigned char MESSAGE, unsigned char PITCH, unsigned char VELOCITY)
{
  status = MESSAGE + midichannel;
  Serial.write(" Status=");
  Serial.print(status,DEC);
  Serial.write(" Pitch=");
  Serial.print(PITCH,DEC);
  Serial.write(" Velocity=");
  Serial.print(VELOCITY,DEC);
}
Make shure that the baud rate in the serial monitor window of the arduino ide is set to 9600.

How did you connect your piezos to the shield? It is important that you have to connect ALL inputs of the shield to piezos or you have to bridge the free inputs. You can simply use a small wire to connect the inner and outer inputs (not the middle) of the shield if there is no piezo connected to it. Otherwise it won't work.

Now it should work and hitting a piezo should result in various numbers in the serial monitor window. Please let  me know the result cause I don't actually have the possibility to test the code on an Arduino Uno rev3.

Feel free to insert a switch in the code that decides if u debug or write the midi notes to serial out.



Thanks.
« Last Edit: March 17, 2012, 02:18:58 pm by chloris » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for your reply. I do have all the pins grounded and my piezo is on pin0 of the shield. I tried other inputs at random but there's no output except occasionally it will say something like this: "Status=144 Pitch=42 Velocity=70 Status=128 Pitch=42 Velocity=127" but not in response to hitting the piezo. That's using your debug MIDI message code at 9600 baud.

It's strange and maybe Uno Rev3 doesn't like the Mayhew MUX shield, although it does work with the analog in test code from their site.

I'll order a Duemilanove to play with next week and try it out again.
« Last Edit: March 23, 2012, 12:17:55 am by johnnypig » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi johnnypig,
Quote
I'll order a Duemilanove to play with next week and try it out again.

I wouldn't do that. There must be something wrong with your hardware setup.
How is the piezo connected to your shield exactly? Can you give some information about your Setup, Arduino Ide, OS, Midi  etc.?

Thanks.

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm connecting the piezo with a 1meg resistor between output and ground to pin0 on the shield.

My pc is an i7 running win7 (my laptop runs ubuntu), Arduino IDE 1.0 but I've also tried IDE 0.0022 to test YAAMI 1.1.

For MIDI I've tested using TTYmidi on my laptop with YAAMI at 115200 baud, and Hairless serial to midi on win7. I've also tried my RME 9652 midi input with a cable from the Arduino TX output at 32500 baud.

Testing other projects like the Sparkfun midi drum without the MUX shield went fine and I also tested some homemade pressure sensors using Processing without any problems.

I can run the Mayhew MUX analog input example code with the shield and get some response from the piezos as well.

Not quite sure what I'm doing wrong but I am an Arduino noob though I'm still having fun smiley-grin

Thanks for your help!

-robo
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 124
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Guys, sorry to butt in.

I've got two piezos hooked up directly to an arduino, with no mux shield, and no other sensors.  Could someone advise how to just take the code necessary to process the hits from these and send the midi out?  There's alot of other things going on in that sketch and it's confusing me!


Thanks
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 18
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

you are the 2 first one's who posted about problems with the sketch.

To start learning something about the early beginnings of that sketch take a look at ->
http://arduino.cc/en/Tutorial/Knock

For further understanding please read EVERYTHING of that sketch (especially hints about other sources mentioned inside the sketch).
Please try to find out which pins belong to piezos and which pin belongs to e.g. the pololu infrared sensor (pin0). You can do so by reading the source carefully.
The sketch is not a "plug'nplay" solution. You should know what you are doing.

If you have any problems related to the code PLEASE DON'T POST here but here->
http://sourceforge.net/tracker/?group_id=512895&atid=2084828

Have fun.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 62
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi there, did anyone actually get a working schematic at all, as the mix shield has a lot of inputs, i can't tell just from the code which pins to connect everything too.

any help would be great.

many thanks

marc
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

please. help us by posting your schematics and other details. thank you so much.  smiley
Logged

Pages: [1] 2   Go Up
Jump to: