Function signal generator based on single chip microcomputer

1. Design requirements and goals

Specific functions:
(1) LCD1602 displays the waveform type and frequency value (frequency range 10-100HZ);
(2) You can set the waveform type and set the frequency step value by pressing the button;
(3) The potentiometer can change the amplitude ( 0V-3.5V stable);
(4) Sine wave, sawtooth wave, triangle wave, rectangular wave can be generated;
(5) Four indicator lights can respectively indicate the emitted waveform.

2. Design plan and ideas

The low-frequency signal generator system is mainly composed of CPU, D/A conversion circuit, current/voltage conversion circuit, button and waveform indicator circuit, power supply and other circuits. Its working principle is that when the switch button is pressed respectively, a square wave, a sawtooth wave, a triangle wave, and a sine wave will appear, and there are four light-emitting diodes as different waveform indicators. The liquid crystal displays the current output frequency and waveform indication in real time, and the output waveform amplitude can be fine-tuned by the potentiometer. The key can also adjust the step value of the output frequency.

3. Hardware circuit

 

All materials include programs (notes), AD schematic diagrams, protues simulation, reference papers, program explanations, simulation explanations, simulation videos, schematic explanations, introductions to the use of materials, etc., the most comprehensive network! ! https://www.cirmall.com/circuit/18405

For more MCU design and information, please pay attention to the WeChat public account "Electronic Engineer Growth Diary"! !

Guess you like

Origin blog.csdn.net/weixin_41017942/article/details/105453866