This paper proposes the development of a two-axis sun tracking solar energy system using fuzzy logic as intelligent quality policy. To achieve maximum efficiency for solar panels, it is necessary to follow the sun's path in the sky. Therefore, the architecture for the two-axis sun tracking solar energy system uses software to control the hardware. The hardware comprises (i) solar cells; (ii) lead-acid batteries; (iii) a gear box; (iv) a stepping motor; and (v) a light detection circuit, while the software comprises (i) a detection system; (ii) a fuzzy tracking controller; and (iii) a database system. A fuzzy logic controller is designed as the software architecture of the system to decide the timing for tracking the sun. The nearest position that results in receiving direct sunlight is obtained from the database. Our system is fully automatic in a changing environment and takes into account meteorological changes and the effects of the external environment arising from a malfunction. This approach reduces the number of starting motors and results in smaller energy loss in cloudy, cloud mask, or unstable weather conditions.