Tep, do you mean with the arduino connected, or without the arduino connected?
BTW, do you need to declare the Rx pin as an input, to lower the internal pull up/down resistor?
Could the voltage be to low for the Arduino to notice?
In that case you'd suggest lowering the 3k3? or making it bigger?
Andreas, could you measure the Voltage over the rx pin?
You don't really need the arduino to be connected.
Since it's standart serial communication, nothing to declare concerning the arduino pin.
Let see! You're perhaps having the same problem than me...
Just measure the idle and the busy voltage of the pin!
(Btw, it's perhaps easier if you can send something continuously like MTC, MMC, etc.)
What I did was the following.
Instead of linking the schematic to the RX of my Arduino, I put a LED between the incoming data and the 5V pin.
Here I received the following results:
During the idle midi-signal I received 0V.
Whilst playing only 1 note I got about 0,02V.
Whilst playing 2 notes at the same time I got 0,04V
Playing 3 notes around 0,06V and so on.
Haha, no that was just the first step. I want to make 36 different LED's corresponding to 3 octaves on the piano. Everytime a note is played on the master keyboard, these LED's have to light up, and go out the moment the key is released. I already saw my keyboard works with the "note on" with 0 velocity, when switching off a note..
I only have 13 pins on my Arduino so I have to start working with multi/charlieplexing.
Programming is just completely new for me so it'll take quite a while I think
But thanks anyhow!
Andreas
(pins 2-13 = 12 pins + analog pins = 6 pins. Total 18 pins ! ;))
Ok, those methods are good, but not very adapted if you plan to do other time-consuming things. I can recommend you shift registers. I got mine 5 for 1 us$ from Thailand on eBay. It's of course more assembly, but if you go this way I can give you a function to light LEDs a simple way.
Anoter thing : have a look at registers that handle PWM, you could handle the velocity!
On my MIDI controller with the MIDI IN issue I consolidated some solder and now found out that if I connect the RX pin to the RX pin of an empty Arduino Diecimila my onboard standalone Arduino receives the signal.
Do you have an idea of how to solve this?
[edit]Hm no, doesn't work anymore this way.[/edit]
Haven't seen it mentioned here, but I combined this sketch with teh serial to midi converter and it worked just taking the midi in through USB. Thanks for the sketch! I finally got my ableton clips triggering and flasing a LED at me when launched. Nice!