Saturday, 1 July 2023

Build a Midi to Relay Box for Arduino

Download the code HERE

PARTS LIST (with Amazon links)

1 - Relay Board (8 relays)

1 - Arduino Nano

1 - 6N138 Optocoupler

1 - 1N914 Diode

1 - LED

2 - 220 Ohm Resistors (1/4 Watt)

1 - 470 Ohm Resistor (1/4 Watt)

1 - 4.7K Ohm Resistor (1/4 Watt)

1 - Midi Jack

1 - 5V Power Adaptor (1-Amp)



9 comments:

  1. Hey! it's hard to modify the code to use this one with an arduino due, with midi usb? can you help me :D

    ReplyDelete
  2. Hiya, great looking project! Is there a simple way to modify this to work with PC midi changes as well as CC? Many thanks!

    ReplyDelete
    Replies
    1. Hi i had the same request. I got mine to work with the following addition ;
      //MIDI.setHandleControlChange(HandleCC);
      //MIDI.setHandleNoteOn(HandleNoteOn);
      //MIDI.setHandleNoteOff(HandleNoteOff);
      MIDI.setHandleProgramChange(HandleCC);
      Reused (HandleCC) so that less code manipulation . I am using a Zoom 8050 footpedal to toggle relays to trigger sound effects etc. I also added digitalWrite(RELAY1, LOW); //Turn RELAY ON
      delay(1000); // waits for a second
      digitalWrite(RELAY1, HIGH); for all relays so it toggles AKA foot switch that Guitarists like. Full Credit to Dave for this outstanding site.

      Delete
  3. https://gabilessohbet.blogspot.com/ Ücretsiz rastgele görüntülü gabile chat gabile sohbet gabile sohbet odaları yeni kişilerle tanışma imkanı sağlar.

    ReplyDelete
  4. Appreciate the in-depth interview — it gives real context to how the innovation ecosystem works here.
    Vietcetera always produces high-quality content!

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete