lfanele

hi everybody,i just got my arduino board. i'm really happy with it because it works really well and is easy to use for someone who has no clue about phys. comp. (like me).but one thing that really scares me is that my computer gets really bad freezes when using my board with max/msp.i have simple test setup where i measure the light intensity with a photo-resistor. in max i use the serial object to get the data inside the computer and then use this data to drive a sine-oscillator. in the beginning it seems to work fine but sometimes, like when editing the patch or using some max-ui elements the computer doesn't react anymore: i can't use the mouse or the keyboard, but no error message or 'reboot screen' appear and for example iTunes keeps on playing...really strange stuff and all i can do is shut down my computer by holding down the powerbutton. i'm on powerbook g4 ppc 1.67 Ghz, 1.5 gb ram, mac os 10.4.7, arduino 04 and max/msp 4.5.7.

maybe someone has an idea what could be wrong?thanks a lot,stephen

p.s: while using max/msp i always close the arduino-app so there should be no interference

designisinfo

I think I'm having the exact same problem. I am on OS X 10.4.7 running MAX/MSP 4.5. Sometimes everything works fine, but often Max crashes and i can not force quit. Then i have to reboot.

Some things I've noticed:

If I connect my USB to the board before starting MAX and disconnect after quitting MAX, sometimes things work out. However, the last few times i've tried to quit max or close the patch that i have open, max has crashed.

If i disconnect while max is running, or try to upload firmware using the arduino app then max always crashes.

Once max crashes i can find nothing to bring it back. I was hoping to do a performance using my ardiuno board next weekend, but am now very concerned that the performance will have to go on without it.

Hope someone can figure this one out. Thanks,

-peter

p.s. my ardiuno code looks like this:

/* Inputs to PD * ------------------- * * This program sends data from a bunch of inputs to PD * over the serial port (works on PC: Windows and Linux, and MAC) * The code reads 3 potentiometers and 6 buttons plugged to Arduino * input and sends the data back to the computer. * * On the other side there will be a PureData sketch running * comport2000 and will use the data to change a sound or video * file properties. * * The buttons will be characterized with '1' or '0' depending on * their state, while potentiometers will be characterized with a * 10 bits integer in the range 0..1024 * * The first sensor will be marked with 'A' (ascii 65), the second * with 'B', and so on. The end of sensor reading is marked with * the characters EOLN (ascii 10). * * (cleft) 2005 DojoDave for K3 * * @author: David Cuartielles * @context: ID3 - K3 - MAH - Sweden */