. hello!
. i'm trying to build the MIDI in component as described in the 'works:MIDI-IN works+schematics' - but, i just can't seem to get it working
. i'm a complete n00b when it comes to electronics, but have spent the last two weeks trying to get this circuit correct so that the Rx port actually gets MIDI information
. on my bread board, i followed the wiring (and parts) of the MIDI shield schematic on instructables and am stuck.
. i can put an LED parallel to pins 1 and 2 on the 4N28 and see pulses when i'm sending MIDI data in, so i know i have the input coming in properly. (and the diode facing the correct way.. only took me an hour to figure that one out - as i said, n00b. )
. on the right side of the 4N28, i have:
pin 4 - ground
pin 5 -3.3k (orange/orange/red/gold) resistor to +5v
pin 5 - wired to Rx on the arudino
pin 6 - 100k (brown/black/yellow/gold) resistor to ground
. and i've wired an LED to 13
. i'm using the following code, in an attempt to just see the statusLED turn on, but nothing happens. my hunch is that nothing is going to the serial Rx.
//variables setup
byte incomingByte;
int statusLed = 13; // select the pin for the LED
//setup: declaring iputs and outputs and begin serial
void setup() {
pinMode(statusLed,OUTPUT); // declare the LED's pin as output
Serial.begin(31250); //start serial with midi baudrate 31250 or 38400 for debugging
digitalWrite(statusLed,LOW);
}
void loop () {
if (Serial.available() > 0) {
incomingByte = Serial.read();
// wait for as status-byte, channel 1, note on or off
digitalWrite(statusLed, HIGH);
delay(20);
digitalWrite(statusLed, LOW);
delay(1);
}
}
. but, nothing. i noticed that if i move the cable from 4N28 to Rx and it touches pins 4 or 6, the statusLED will flicker a little, but it's usually junk. so, i'm under the impression that the Rx works... just not when i have it wired like the above schematic.
. i think this is the same issue some other users had, but i never saw what the solution was.
. so can anyone help me w/what to do next? something to try or ??? i'm' really pretty lost here and have spent 15+ hours in my spare time trying to make sense of this.
. thank you!
-james