An aduino controller for solar production, battery charging, buying energy and using energy