In this paper, we propose a new algorithm for dynamic voltage scaling (DVS) based on feedback control mechanism. Besides handling a periodic tasks, our algorithm significantly reduces the energy consumption of periodic tasks and consequently the energy consumption of the whole task set. The results show that, comparing to on-line dynamic voltage scaling (the best algorithm to our knowledge), our approach improves the energy savings by 10% on most task sets tested and by 5% on average.