maybe you're exhausting your memory?
Which Thermostat are you using that you're communicating to the Arduino with??
Thanks for your replys.The compliled sketch size is only about half of the availabe. 14950 bytes to be exact.I only count 3 String variables. Is this what you are refering to? Or are you talking about all the text in the Serial.print's?
It turns out the pin was being pulled low before the serial data finished sending so I had to add a small delay after sending out the serial command.
That's because the function returns when the last character is written to the UART, but at that point it hasn't been transmitted. The delay will get you out of trouble but you really should test the appropriate UART register flag.______Rob
I have had significant problems with the ethernet shield hanging up. When I try to use it for an extended period, it will eventually fail to connect in some fashion or other and there is no easy way to get it working again. Yes, I know all about the reset problem that they fixed with the new board, but that isn't what was happening. The code or board would just fail to connect to whatever web service I was trying to reach. I solved this by working up some code and hardware changes that senses when this happens and resets the ethernet board, if it still fails, I reset the arduino. This requires logic to recover from a reset and storing some critical values in rom, but it works now.I've used several of the boards and this is a consistent problem over all of them so I suspect code problems either in the library or the code on the 5100. Other folk have experienced this same situation when they are trying to use the ethernet to store data over long periods of time. Our advantage in this is that the arduino can reboot and pick up where it left off in a few seconds making such a thing possible. There's the added advantage of my devices can survive a power failure just fine, hardly a hiccup.
How do I go about doing this?
• Bit 6 - TXCn: USART Transmit CompleteThis flag bit is set when the entire frame in the Transmit Shift Register has been shifted out andthere are no new data currently present in the transmit buffer (UDRn). The TXCn Flag bit is automaticallycleared when a transmit complete interrupt is executed, or it can be cleared by writinga one to its bit location. The TXCn Flag can generate a Transmit Complete interrupt (seedescription of the TXCIEn bit).
// we just sent the last bytewhile (UCSR0A & (1 << TXC0) == 0); // do nothing until bit set
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16