works: MIDI-IN: code + schematics

I have the circuit done and working, but here is the problem:

With this code, happens two diferent thinks with power via USB or 9V black power jack.

without usb power, never is available, the serie...

int statusLed=13;  //one
int statusLed2=12;  //ten
int statusLed3=11;  //hundred
byte incomingByte;

void setup() {
  pinMode(statusLed,OUTPUT);   // declare the LED's pin as output
  pinMode(statusLed2,OUTPUT);   // declare the LED's pin as output
  pinMode(statusLed3,OUTPUT);   // declare the LED's pin as output

  Serial.begin(31250); //9600 for USB i 31250 for MIDI i 38400 for debugging
}

void loop () {
  if (Serial.available() > 0) {
    // read the incoming byte:
    incomingByte = Serial.read();
    blink(HIGH,statusLed);
    delay(temps);
    blink(LOW,statusLed);
    delay(20);
  }
}

void blink(byte valor, int nled){
  digitalWrite(nled, valor);
}

anyone can help me?

thanks a lot!