The design of the AT89C51 used as the core control components, Design of a simple flower. The program to AT89C51 as controlling core, and the keyboard loudspeakers core modules in the main control module on the main control module has 16 keys and speakers. According to users of the parade want to play for free expression in music.
Music is one of many components of different scales, each scale corresponds to different frequencies, This way we can use a different frequency combinations, which may constitute what we want music, Of course microcontroller to generate different frequencies very convenient, We can use SCM timer / counter T0 to create square wave frequency signals, therefore, As long as we put a song of the tune the frequency response relationship can get correct.
Keywords : microcontroller, buttons, speakers, chromatic.
温馨提示:答案为网友推荐,仅供参考