I am "plagued" by a strange behaviour of my arduino:
the problem consist of the arduino resetting itself after exectuing the if serial availible ==1 (see code). I alredy removed the reset trace so i guess it is software. Maybay firmware, My code orked on an arduino uno r1. But for some reason it wont on my new r3.http://pastebin.com/rqTAf33Z
--> the code
any help/suggestions ?