I am a beginner with Arduino but have experience programming for the PC. I am trying to build a simple data logger over Ethernet.
I am using the Arduino Ethernet shield with Arduino Uno SMD Edition.
The program setups a server waiting for a client to connect. The client is Hyperterminal on Windows XP machine. I am using Hyperterminal TCP/IP connection.
The program sends a NTP request to get synchronized to our network clock. Then every minute it sends data to Hyperterminal.
It works fine for about 20 minutes and then it freezes. The connection from Hyperterminal to the Ethernet shield is not lost but program stops sending data. I have to reset the Arduino to start again.
I plan to use this to log data from various sensors and I want to leave it running at least 24 hours. If the Arduino is freezing for no reason, I would not be able to use it.
The sketch file is attached to this message.
Could any one more experienced with Arduino provide advise?
datalogger3.ino (5.56 KB)