With the advancement of embedded systems, their application across diverse sectors has notably expanded. This paper delineates the fundamental architecture of embedded systems and separately engineers the hardware and software components for an energy-efficient embedded system tailored for electrical engineering automation. The focus is placed on the energy-saving control module of the embedded system, which incorporates fuzzy logic with a PID control algorithm to produce definitive signal outputs. Building upon this foundation, the performance of this enhanced algorithm was evaluated and subsequently implemented in the tunnel lighting electrical engineering project. The findings reveal that the embedded system-controlled lighting setup can adjust the tunnel entrance and mouth lighting based on external luminance levels, maintaining daily energy consumption at approximately 550 kWh with an energy savings rate reaching as high as 51% per day. This study affirms the substantial potential of embedded systems in advancing energy-efficient solutions within electrical engineering automation.