ybycode

@ybycode

Posts made by ybycode

Changing the power supply didn't change anything. I'll try changing the radio today.

In the meantime, I have a question. Everytime the problem has happened, the last temperature that was sent is always either the limit low, or the limit high temperature defined in my sketch, meaning when the relay is passed from close to open or from open to close, when the fridge compressor is turned on or off.
This makes me think: could my problem be du to an inductive spike, like described in this thread http://electronics.stackexchange.com/questions/128310/arduino-crashes-switching-230v-relay-off ?

I replaced the thermostat of my old fridge by an sensor made of arduino nano + nrf24l01+ DS18B20 temp sensor + relay.
And it works great. Except that after a few hours, and although the temperature control works ok, the sensor stops emitting to the controller.

If I reset the arduino the radio communication is good again, and then a few hours later, same thing, it does't send anything (no messages appear in the log of the controller).

In the meantime I added a 47µF capacitor on the radio, but it didn't help.
The arduino is not on battery..

Today when I saw the radio didn't send data anymore I plugged the serial, and here's what I read (the T:X.XX comp:1 are the temperature and the boolean indicating if the compressor is on or off):