<div dir="ltr">I would definitely consider the Teensy unless there are specific reasons for the Arduino. The newest version has MIDI support built into and it is compatible with Arduino sketches. </div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 20, 2015 at 11:11 AM, Martin Peach <span dir="ltr"><<a href="mailto:chakekatzil@gmail.com" target="_blank">chakekatzil@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class="">On Sat, Jun 20, 2015 at 6:06 AM, Ingo <span dir="ltr"><<a href="mailto:ingo@miamiwave.com" target="_blank">ingo@miamiwave.com</a>></span> wrote:<br></span><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi there!<br>
<br>
I'd like to use an Arduino Micro (or Nano) as a MIDI interface connecting<br>
the MIDI ports to the digital pins "0" and "1" (TX/RX) and receiving the<br>
MIDI data via USB in Pd.<br>
It does not matter in which format it comes into Pd (i.e. it doesn't have to<br>
show up as a MIDI port - like MIDI over USB).<br>
<br>
1) Does anybody know if there is an existing arduino software for this?<br>
<br></blockquote></span><div><br>No but all you need to do is<br>  if (Serial.available()) Serial1.write(Serial.read());<br>  if (Serial1.available()) Serial.write(Serial1.read());<br>in your main loop, where Serial1 is the TTL serial and Serial is USB.<br><br> <br></div><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
2) Does anybody know if there are limitations on some or even all arduinos<br>
using the serial (digatal 0/1) ports and USB port at the same time?<br>
<br></blockquote></span><div>Only the micro (or Leonardo or Mega) will work for this as the TTL serial is separate from the USB. The TTL serial port on pins 0 and 1 shoud be set to 31250 baud. Arduinos that use the Atmega168 or 328 use the same serial port for TTL and USB so there will be conflicts if you try to do both at the same time. And software serial is probably too slow to receive at 31250 baud although it can work to send MIDI that way.  <br></div><div>Teensy2.0 (<a href="http://www.pjrc.com/teensy/index.html" target="_blank">http://www.pjrc.com/teensy/index.html</a>) will also work for this and can also (I believe) be set up as a USB MIDI device.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Martin<br></div></font></span></div></div></div>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>