mark.duyvesteyn
Member
Hi everyone,
I've got a spa pool hooked up to a 30 tube vacuum solar panel. I have a one wire sensor in the panel, and another in the pool for controlling the small 12v circulation pump.
the basis of the code is pretty simple;
If temperature in the pool is less than 37 degrees, and the solar panel is warmer than the pool, then run the pump, if not then go back to the start. I have a serial LCD display showing the temperatures and whether or not the pump is on. If the pool is above 37 degree then energy is stored in the solar panel until the pool temp decreases then the pump starts.
What i'm wanting to do is calculate the energy gained of the system during the day, and energy lost of the system during the night. The calculation for current energy in the system is (pool volume * temperature + solar Volume * temperature) * 4.19 (constant). What I'm struggling with is how to reset minimums and maximums in a clever way at the start or end of each day, just using the temperature gradients from the sensors.
Any ideas?
thanks heaps
I've got a spa pool hooked up to a 30 tube vacuum solar panel. I have a one wire sensor in the panel, and another in the pool for controlling the small 12v circulation pump.
the basis of the code is pretty simple;
If temperature in the pool is less than 37 degrees, and the solar panel is warmer than the pool, then run the pump, if not then go back to the start. I have a serial LCD display showing the temperatures and whether or not the pump is on. If the pool is above 37 degree then energy is stored in the solar panel until the pool temp decreases then the pump starts.
What i'm wanting to do is calculate the energy gained of the system during the day, and energy lost of the system during the night. The calculation for current energy in the system is (pool volume * temperature + solar Volume * temperature) * 4.19 (constant). What I'm struggling with is how to reset minimums and maximums in a clever way at the start or end of each day, just using the temperature gradients from the sensors.
Any ideas?
thanks heaps