Is there any (dis)advantage to connect an Arduino to Max trough the hi object ?

    Aug 30 2013 | 2:22 pm
    Recent Arduino boards like Leonardo and Micro can natively be seen as HID devices.
    However is there any advantage (or disadvantage) to use this kind of connection instead of the regular serial-over-USB connection ?
    Thank you in advance.

    • Aug 30 2013 | 2:52 pm
      I guess it depends on what and how much hardware input you require? I've never stress-tested the [hi] object, so I don't know what it's tolerance level is . . .
    • Aug 30 2013 | 3:33 pm
      Probably best to go into USB MIDI class compliant mode, so you just come in as MIDI straight up.
      I just bought a Teensy for that very reason.
      (The teensy, as it turns out, has very robust usb mode implementation, so you can still reprogram it while in USB MIDI mode, unlike an Arduino, which you have to reflash the USB chip every time you want to reprogram the actual Arduino board).
    • Aug 30 2013 | 9:42 pm
      +1 for the teensy, I use it both as a midi device and as a serial device with max and the speed is really impressive !
    • Aug 31 2013 | 10:27 am
      Since I had problems with the serial object (may be due to misuse on my part), I use nodejs to retrieve information from Arduino, and route it to max via udp. There are modules for Aduino through nodejs, programming the Arduino can be achieved through js script, relatively simple for beginners. Nodejs indeed allows me to send data simultaneously to a website, convenient for me. Now is that this configuration is the most efficient, I do not know, however, it meets my needs effectively