Arduino2Max and max/msp/Jitter

lisamarie's icon

Hello-

I have recently switched from the Basic Stamp micro-controller to the Arduino. I am attempting to use the Arduino2Max (version .4) to send messages from the Arduino to max/msp. I'm having some issues, however.

The max/msp/jitter patch registers a constant stream of numbers from the Arduino even when I am not using certain pins. I'm not sure if the issue is on the max/msp/jitter side or the Arduino side so I am going to post my question on both forums.

If anyone here has experience using the Arduino2Max patch I would be very interested to know what your set up looks like.

Thank you,
lmpatzer

David Beaudry's icon

First, although it doesn't look like you have, please don't cross post between forums. This question, btw, is more suitable for the max forum.

I'm not familiar with the patch you mention, however I'm pretty confident what you are seeing is not a max problem, but an electrical problem. Sounds like you are polling all the inputs on the arduino. If nothing is attached to the pin/input, it will "float" somewhere between your supply voltage and ground, producing seemingly random numbers between 0 and 1023. Couple options: 1. don't poll the pin for data (what you don't know can't upset you); 2. connect unused pins to ground (so they will always read 0).

HTH,
David

amy's icon

I have the same problem as lisamarie. I'm using only one digital pin attaching to a PIR sensor, with the arduino2max patch, but the whole stretch of the pins are blinking (indicating presence of input). I really have no idea what problem it is. I 'm also using a 10k resistor.

sometimes later i tried again, and it works. i'm using Parallax PIR sensor to play audio files, connecting arduino to maxmsp with arduino2max patch. the wires to connect them are some female and male jumper wires I made myself. they are new and i suppose it's not broken inside.