# Function_Generator_STC老刘信号发生器修改版 **Repository Path**: msy520/Function_Generator_STC ## Basic Information - **Project Name**: Function_Generator_STC老刘信号发生器修改版 - **Description**: Function_Generator_STC老刘信号发生器修改版,加入波形通道切换功能 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2024-01-31 - **Last Updated**: 2024-01-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 修改版程序仅适用于本工程 [修改版信号发生器](https://oshwhub.com/xiaowuzxc/xin-hao-fa-sheng-qi-stc15) # Function_Generator_STC 使用STC单片机自制波形发生器 / DIY Function Generator with STC MCU ![image](img/IMG_6223.JPG) # Specification * Output: Single Channel * Square Waveform Frequency: 1Hz~2MHz * Sine Waveform Frequency: 1Hz~10kHz * Amplitude: VCC, about 5V * Load ability: Not available * MCU: STC15W4K32S4 @24MHz * Display: LCD1602 * Controller: EC11 Encoder # Parts List ![image](img/IMG_6187.JPG) * MCU: STC15W4K32S4 x 1 * Display: LCD1602 x 1 * Row Pin Female: * 16-Pin x 1 * 2-Pin x 1 * Potentiometer: * 10kΩ x 1 * 200kΩ x 1 * 500Ω x 1 * IC Socket 40-Pin x 1 * Inductor 1mH x 1 * Capacitor: * 220nF x 1 * 10nF x 1 * 47uF x 1 * EC11 Encoder x 1 * Lithium Polymer Battery x 1 * 5V booster x 1 * Terminal 2-Pin x 2 * Push Switch x 1 * Capacitor 1uF(optional) x 1 # Circuit ![image](img/circuit_V0.3.jpg) # Interface: Bottom left shows the type of waveform(Square/Sine) and output status(ON/OFF) * F: Frequency * D: Duty of Square Waveform * CD: Clock Division Coefficient (For information only) * P: PWM frequency for generating Sine Waveform (For information only) * Pt: Number of points for generating Sine Waveform (For information only) # Operations: * Single Click Encoder: Switch Frequency and Duty in Square Waveform Interface * Double Click Encoder: Start/Stop Signal Output * Long Press Encoder: Switch between Square Waveform/Sine Waveform/Voltage Information * Rotate Encoder: Adjust Parameters