Arduino mini strange behaviour

Hello

I have a strange behaviour with an Arduino Mini. My project monitor the temp with a DS18B20 sonde and transmit it by Xbee S2 (API router firmware) to the base (SeeeStudio Stalker, xbee s2 API Coordinator firmware).

When i upload the sketch in the Arduino Mini all work fine, i’ve the temp on the base. But if i unplug it from power source for a night and reconnect it, nothing appear… The xbee doesn’t pairing and the arduino does nothing.

So if i upload the sketch all work fine again ? I don’t found the problem ? Is the arduino losting the sketch without power supply ?

I join pictures of my both Arduino, and the Sketch

Thanks

(Sorry fo my bad english…)

ArduinoMini_DS18B20.ino (3.6 KB)

But if i unplug it from power source for a night and reconnect it, nothing appear...

What power source?

You may need to give the XBee time to sort its self out Try a 30 second delay in setup()

Mark

Hello Mark

Thank for your advice. I tried a 30s delay, but i still have de same problem. After some days without power the arduino mini with xbee doesn't send temperature...