Modifying Teensy/arduino code to recieved MIDI din in

From circuitbending to homebrew stompboxes & synths, keep the DIY spirit alive!

Moderators: Kent, Joe., luketeaford, lisa

Post Reply
User avatar
Padrat
Learning to Wiggle
Posts: 41
Joined: Thu Nov 13, 2014 10:45 am
Location: The Rocket Ranch

Modifying Teensy/arduino code to recieved MIDI din in

Post by Padrat » Mon Dec 02, 2019 12:53 am

Hi folks,

There are a multitude of arduino and Teensy based projects out on the web that require MIDI input and outputs. Most of them utilize the onboard USB port to implement in/out functions. My question is this... how do I go about modifying any given such code to do the MIDI communication via a MIDI din port? I'm already assuming it's through the serial communication pins.

User avatar
cackland
Super Deluxe Wiggler
Posts: 2232
Joined: Thu Dec 28, 2017 5:42 pm
Location: Los Angeles, California

Post by cackland » Mon Dec 02, 2019 1:36 am

Here is a great starting example of how to utilize a standard midi din port with a microcontroller.

https://www.arduino.cc/en/tutorial/midi

User avatar
EATyourGUITAR
has no life
Posts: 5798
Joined: Tue Aug 31, 2010 12:24 am
Location: Providence, RI, USA

Post by EATyourGUITAR » Mon Dec 02, 2019 1:50 am

it really depends on if you just want to get it working or if you want to have something that conforms %100 to midi specs. that link, I did not read the entire page but it looks like they skipped the opto-isolator.
WWW.EATYOURGUITAR.COM <---- MY DIY STUFF

User avatar
cackland
Super Deluxe Wiggler
Posts: 2232
Joined: Thu Dec 28, 2017 5:42 pm
Location: Los Angeles, California

Post by cackland » Mon Dec 02, 2019 3:24 am

Correct, as stated: MIDI input requires an optically isolated input.

This is more to to midi spec standard:

https://www.pjrc.com/teensy/td_libs_MIDI.html

Post Reply

Return to “Music Tech DIY”