
franziski - 2009-01-24 08:24:42
I'm reading a temperature with Arduino.
A PHP page, through phpserial, reads the current temp value sampled by Arduino, by mean of USB port (FT232 chip).
The first issue is that I have, every time I connect Arduino, to set up again /dev/ttyUSB0 permission to 777 (otherwhise phpserial doesn't work).
The second issue is that on the first loading of PHP page print "0" instead the current temperature...the next loading, instead, was ok also if sometime and randomly the "0" happens again.
Then I tried to make an array of 30...40 reading (by mean of a for loop) and I noticed that the first 3-4 reading are lost (print "0").
I traced serial stream and noticed that the data was correctly sent from Arduino to PC...
My OS is Ubuntu 8.04.
Was wondering If I have to make some mod to phpclasses to workaround above issues.
Thanks in advance.