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

Aug 30, 2013 at 7:22am

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

Hello,

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.

#263744
Aug 30, 2013 at 7:52am

edit

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 . . .

#263746
Aug 30, 2013 at 8:33am

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).

#263751
Aug 30, 2013 at 2:42pm

+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 !

#263776
Aug 31, 2013 at 3:27am

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

#263804

You must be logged in to reply to this topic.