Serial.read() help

thefatmoop--

The reason that atoi is returning such unexpected numbers for you is that it returns an int, which in Arduino-land is 16-bits and limited to a maximum value of 32767. If you use atol, which uses long instead, that may improve things.

Mikal