The main function of signal generator based on AD9834 is to output sinusoidal wave, square wave and triangle wave of different frequencies. The system uses STM32F103 as the main control chip. The output waveform can be switched by pressing the key, and the real-time output frequency can also be changed to meet the design requirements. It also has an OLED display to display the current waveform type and frequency in real time. The overall design of small volume, low power consumption, all functions and parameters meet the design requirements, has a strong practical value.