I had a problem timeout and error communication.
I use Arduino duemilanove (ATMEGA 168)
I fixed this issue by changing ADIORSV:PDE on line 40, where there is a cicle for 20 PINS (insetad of 13 of Arduino Duemilanove).
i posted better explanation on my own question about, Here:
I have tried the source code. I use Arduino uno and ACS712 current sensor. how to improve the current measurement data transmission via the Arduino to matlab? i want the data to be transferred 1 second = 100 data (in Matlab).