To connect your solar panels to the home grid, you must link the battery and inverter. The battery stores any excess energy produced by the solar panels, while the inverter converts this energy from DC to AC, making it compatible with your home''s electrical system.