0% found this document useful (0 votes)
75 views

Help Troubleshooting MIDI Receive Circuit. - Audio - Arduino Forum Optoacoplador

The document discusses troubleshooting a MIDI receive circuit connected to an Arduino. It notes that the MIDI socket is connected to the Arduino's RX pin through an opto-isolator to invert the MIDI signal and isolate circuits. The code sample then declares variables to receive MIDI data on a specific channel and send note on/off messages, lighting an LED when a note is received.

Uploaded by

segurah
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views

Help Troubleshooting MIDI Receive Circuit. - Audio - Arduino Forum Optoacoplador

The document discusses troubleshooting a MIDI receive circuit connected to an Arduino. It notes that the MIDI socket is connected to the Arduino's RX pin through an opto-isolator to invert the MIDI signal and isolate circuits. The code sample then declares variables to receive MIDI data on a specific channel and send note on/off messages, lighting an LED when a note is received.

Uploaded by

segurah
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Help troubleshooting MIDI receive circuit. - Audio - Arduino Forum https://forum.arduino.cc/t/help-troubleshooting-midi-receive-circuit/264...

/* Midi Shield - Mike Cook May 2009


* -----------------
* listen for MIDI serial data,
* sends MIDI note on with push button on Pin 2

#############################################################################################

HARDWARE NOTE:
The MIDI Socket is connected to arduino RX through an opto-isolator to invert the MIDI signal
and separate the circuits of individual instruments.

#############################################################################################
*/

//variables setup

byte incomingByte;
byte note;
byte button;
int noteDown = LOW;
int state=0; // state machine variable 0 = command waiting : 1 = note waitin : 2 = v
byte channel = 1; // MIDI channel to respond to (in this case channel 2) change this to ch
// MIDI channel = the value in 'channel' + 1

//setup: declaring inputs and outputs and begin serial

1 of 6 6/8/2021, 9:22 PM
Help troubleshooting MIDI receive circuit. - Audio - Arduino Forum https://forum.arduino.cc/t/help-troubleshooting-midi-receive-circuit/264...

pinMode(13,OUTPUT); // LED to light up

2 of 6 6/8/2021, 9:22 PM
Help troubleshooting MIDI receive circuit. - Audio - Arduino Forum https://forum.arduino.cc/t/help-troubleshooting-midi-receive-circuit/264...

3 of 6 6/8/2021, 9:22 PM
Help troubleshooting MIDI receive circuit. - Audio - Arduino Forum https://forum.arduino.cc/t/help-troubleshooting-midi-receive-circuit/264...

4 of 6 6/8/2021, 9:22 PM
Help troubleshooting MIDI receive circuit. - Audio - Arduino Forum https://forum.arduino.cc/t/help-troubleshooting-midi-receive-circuit/264...

5 of 6 6/8/2021, 9:22 PM
Help troubleshooting MIDI receive circuit. - Audio - Arduino Forum https://forum.arduino.cc/t/help-troubleshooting-midi-receive-circuit/264...

6 of 6 6/8/2021, 9:22 PM

You might also like