Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

使用STC单片机自制波形发生器 / DIY Function Generator with STC MCU

License

Notifications You must be signed in to change notification settings

Nareld/Function_Generator_STC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

11 Commits

Repository files navigation

Function_Generator_STC

使用STC单片机自制波形发生器 / DIY Function Generator with STC MCU image

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

  • 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

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

About

使用STC单片机自制波形发生器 / DIY Function Generator with STC MCU

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 79.6%
  • Assembly 10.1%
  • Objective-C 9.2%
  • C++ 1.1%

AltStyle によって変換されたページ (->オリジナル) /