[PD] Arduiano (Micro or Nano) as MIDI interface?

Martin Peach chakekatzil at gmail.com
Sat Jun 20 19:25:35 CEST 2015


The teensy2.0 is 5V so it should work fine. (The Teensy3.1s are 3.3V but
can handle 5V so they could work if you use 50ohm resistors on the outputs
instead of 220 to get 5mA, but that's not strictly correct according to the
MIDI spec, which says 5V.)

Martin

On Sat, Jun 20, 2015 at 1:10 PM, Ingo <ingo at miamiwave.com> wrote:

> Thanks, Martin and Paul!
>
> The Teensy is great but seems to need some extra electronics since it is
> operating at 3.3V in order to get a reliable MIDI In/Out with 5V (according
> to a friend who is also working on something like this).
> The Arduinos with 5V should be easier. Of course for more complex stuff the
> Teensy with 3 serial ports has a lot more power.
>
> I kind of suspected the Nano (or the older Arduinos) not to work - good to
> know now!
>
> Ingo
>
> ________________________________________
> Von: Paul Batchelor [mailto:ralphbluecoat at gmail.com]
> Gesendet: Samstag, 20. Juni 2015 17:39
> An: Martin Peach
> Cc: Ingo; pd-list at lists.iem.at
> Betreff: Re: [PD] Arduiano (Micro or Nano) as MIDI interface?
>
> 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.
>
> On Sat, Jun 20, 2015 at 11:11 AM, Martin Peach <chakekatzil at gmail.com>
> wrote:
> On Sat, Jun 20, 2015 at 6:06 AM, Ingo <ingo at miamiwave.com> wrote:
> Hi there!
>
> I'd like to use an Arduino Micro (or Nano) as a MIDI interface connecting
> the MIDI ports to the digital pins "0" and "1" (TX/RX) and receiving the
> MIDI data via USB in Pd.
> It does not matter in which format it comes into Pd (i.e. it doesn't have
> to
> show up as a MIDI port - like MIDI over USB).
>
> 1) Does anybody know if there is an existing arduino software for this?
>
> No but all you need to do is
>   if (Serial.available()) Serial1.write(Serial.read());
>   if (Serial1.available()) Serial.write(Serial1.read());
> in your main loop, where Serial1 is the TTL serial and Serial is USB.
>
>
> 2) Does anybody know if there are limitations on some or even all arduinos
> using the serial (digatal 0/1) ports and USB port at the same time?
>
> 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.
> Teensy2.0 (http://www.pjrc.com/teensy/index.html) will also work for this
> and can also (I believe) be set up as a USB MIDI device.
>
> Martin
>
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20150620/bbc40df2/attachment.html>


More information about the Pd-list mailing list