Build your own MIDI circuits
FAQ
Frequently Asked Questions.
Details
 
MIDI & Music
MIDI and Music Information
Details
 
MIDI 16 Switches/LEDs PROGRAM CHANGE

 

MIDI 16 Switches/LEDs PROGRAM CHANGE 

The MIDI Program Change Commands can change the sound/voice in a MIDI sound module/synthesiser. There are 16 momentary action switch inputs which work in parallel with 16 output LEDs to display the MIDI Program Change number 0 to 15. 

 

An advantage of using Program Change data, instead of Note on/off commands,  is that you can interface with a lot of MIDI controlled effects units.

 

 

 

MIDI 16 Switches/LEDs

Program Change

ITEM#: MIDI16SWLEDSPROGCHANGE

PRICE:  €70.00


 

*Click to Enlarge*

 

 

 

 

The MIDI 16 Switches/LEDs Program Change Unit consists of:

 

  • The unit operates on MIDI channels 1, other MIDI Channels can be pre-programmed on request,
  • An assembled Arduino MEGA with pre-programmed microcontroller,
  • A 2.1mm power socket, and associated LED, 
  • USB power or external power choice,
  • Al MIDI 5-pin DIN output socket,
  • The circuit schematic is available,

 

 

The MIDI 16 Switches/LEDs Program Change unit requires:

  • a 9v battery or equivalent DC power source
  • 16 suitable momentary action switches,
  • 16 LEDs and 16 associated suitable series resistors.

 

Circuit Schematic:

A circuit schematic of the MIDI 16 Switches/LEDs Program Change unit shows the switch connections. The circuit schematic for the Arduino MEGA is also available.

   

MIDI Wiring:

The MIDI  OUT connection uses a 5-Pin 180 degree DIN sockets. Note that the MIDI OUT wiring is polarised and the correct pins should be used. 

  

 

 

The MIDI 16 Switches/LEDs Program Change Wiring:

 

The Switch Input Pins:

Switch PIN
Switch0 22
Switch1 24
Switch2 26
Switch3 28
Switch4 30
Switch5 32
Switch6 34
Switch7 36
Switch8 38
Switch9 40
Switch10 42
Switch11 44
Switch12 46
Switch13 48
Switch14 50
Switch15 52

 

The 16 switches are organized in a 16 x 1 matrix with 1 side of all the switches being connected to a common 0 volt ground (GND). The other side of each switch is connected to a separate pin on the Mega board as shown in table above.

 

The LED Output Pins:

LEDs PIN
LED0 23
LED1 25
LED2 27
LED3 29
LED4 31
LED5 33
LED6 35
LED7 37
LED8 39
LED9 41
LED10 43
LED11 45
LED12 47
LED13 49
LED14 51
LED15 53

 

The 16 LEDs are organized in a 16 x 1 matrix with 1 side of all the LEDs being connected to a common 0 volt ground (GND), via their 16 series resistors. The other side of each LED is connected to a separate pin on the Mega board as shown in table above. There are a number of LED series resistor calculators available on the web including:

 

http://www.ohmslawcalculator.com/led-resistor-calculator

 

http://led.linear1.org/1led.wiz

 

http://www.resistorguide.com/resistor-for-led/

 


 

Power Supply:

The  Arduino MEGA can be powered via the USB connection or with an external power supply. The power source is selected automatically. 

 

External (non-USB) power can come either from an AC-to-DC adapter (wall-wart) or battery. The adapter can be connected by plugging a 2.1mm center-positive plug into the board's power jack. Leads from a battery can be inserted in the Gnd and Vin pin headers of the POWER connector. A low dropout regulator provides improved energy efficiency.

 

The board can operate on an external supply of 7 to 20 volts. If supplied with less than 7V, however, the 5V pin may supply less than five volts and the board may be unstable. If using more than 12V, the voltage regulator may overheat and damage the board. The recommended range is 7 to 12 volts.