Pages: 1 ... 3 4 [5] 6 7 ... 11   Go Down
Author Topic: works: MIDI-IN: code + schematics  (Read 45633 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

this code:
Code:
SOMETHING ABOUT MIDI MESSAGES
 midi messages start with one status byte followed by 1 _or_ 2 data bytes, depending on the command

 example midi message: 144-36-100
   the status byte "144" tells us what to do. "144" means "note on".
   in this case the second bytes tells us which note to play (36=middle C)
   the third byte is the velocity for that note (that is how powerful the note was struck= 100)

Well, that was what I wanted to hear!!!!!!!
"http://highlyliquid.com/midi-accessories/midi-connector-inline/midi-jack-inline.jpg is the same, and the other is MIRRORED"

So we will try that smiley-grin

Good luck debugging your things. If i can help(new to midi, but debugged quite a lot of other things. Robotics....
http://www.youtube.com/user/teamvossius

EDIT:
You saw the 36.
Strange that NO ONE mentioned it :O
it is a darn error, I think it is THE error why people weren't getting their stuff to work!
« Last Edit: August 19, 2009, 09:23:56 am by Titus » Logged

Nowhere
Offline Offline
God Member
*****
Karma: 3
Posts: 852
|-\ |\|\
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How would this be wired with a 4 pin optocoupler?
Logged

Soundcloud page: http://soundcloud.com/beefinator-2
Youtube channel: http://www.youtube.com/user/beefinator14
Old soundcloud page (ran out o

0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi every one,

Today I debugging Andreas his schematics etc.
We made good progress, but got stuck later on.
As mattgilbernet said:

'm also having trouble with this. I've confirmed that midi is coming through the jack by removing the opto-isolator and putting an LED between pins 4 and 5 of the jack. I've confirmed that something is coming through the opto-isolator disconnecting RX and instead putting an LED between +5 and pin 5 of the opto-isolator. It flashes when I hit keys. Ive tried 38400 baud as well. The Arduino is just not receiving the Serial in RX. I've at least narrowed it down, can anyone provide any tips or things to try?

 the LED tests show that everything is working, or at least signals are being passed, all the way up to Arduino's RX pin. At that point the Arduino seems not to recognize the signal.


We tried sending serial data from the pc to the arduino, and that worked. Arduino was able to receive that.

So the big question is:

WHY is arduino not receiving the serial data from my midi signal?
(p.s. the code never gets past the "if (Serial.available() > 0)" part)

THANKS

Titus

EDIT:
@sciguy
http://www.datasheetcatalog.org/datasheet/QT/4N27.pdf
take a look at the schematic of the optocouper's inside on page 1
Your optocoupler has no pin 3 and no pin 6 is my guess
so you'd  only need to skip the 100K Ohm resistor to ground.
The rest is the same
GL Titus
« Last Edit: August 21, 2009, 08:19:41 am by Titus » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone,

As Titus stated in the last post; we still have some problems with the RX of my Arduino.
I have an Arduino Duemilanove.
I use this with a M-Audio Uno Usb to midi device.
Also I downloaded MIDI OX to check whether my outputdevice works.
This works.

Everything works accept the incoming signal through the RX.
What are we missing? Are we using the RX pin correctly?
Can we use the usb-port as the poweradapter at the same time of the RX use? The usb is not connected to the PC, only to a AC adapter.

Thanks in advance,


Andreas
Logged

Nowhere
Offline Offline
God Member
*****
Karma: 3
Posts: 852
|-\ |\|\
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

(to titus)

Okay, thanks.

I hope to sometime make an animusic-ish thing.
Logged

Soundcloud page: http://soundcloud.com/beefinator-2
Youtube channel: http://www.youtube.com/user/beefinator14
Old soundcloud page (ran out o

France
Offline Offline
Sr. Member
****
Karma: 0
Posts: 262
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

AndreasViruly, Titus, what's the voltage coming on pin RX?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

France
Offline Offline
Sr. Member
****
Karma: 0
Posts: 262
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.)
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

are you experiencing the same as this guy?
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1187962258/53#53
In that case, we've got the same problem.

Did you ever got it working?
I personally think it;s the arduino.
Logged

France
Offline Offline
Sr. Member
****
Karma: 0
Posts: 262
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I already got it working a few times smiley-wink
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

so what did you do?
what did you replace? what other programs did you upload :O?
Logged

France
Offline Offline
Sr. Member
****
Karma: 0
Posts: 262
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I used this schematic (the same than everyone I guess) with a 4N28 and a 1N4148.

I began with the simple code I posted again in the last pages.

...As you can see, nothing very special...
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 8
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello Everyone,

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.

Is there an error?
What can we do  :-/

Thanks in advance,.

Andreas




Logged

France
Offline Offline
Sr. Member
****
Karma: 0
Posts: 262
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The voltages you're talking about are measured on the RX pin, right?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can you please try it without the led?
I don't know where you measured, but my guess is after the voltage drop of the led  ;D
Logged

Pages: 1 ... 3 4 [5] 6 7 ... 11   Go Up
Jump to: