打印

单片机波形发生器

[复制链接]
1040|4
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
happy0god|  楼主 | 2020-12-21 13:05 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
开源的51单片机波形发生器,分享的是B站老刘的作品
Function_Generator_STC
使用STC单片机自制波形发生器 / DIY Function Generator with STC MCU
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
MCU: STC15W4K32S4 x 1Display: LCD1602 x 1Row 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 1Inductor 1mH x 1Capacitor:
  • 220nF x 1
  • 10nF x 1
  • 47uF x 1
EC11 Encoder x 1Lithium Polymer Battery x 15V booster x 1Terminal 2-Pin x 2Push Switch x 1Capacitor 1uF(optional) x 1Interface:
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

IMG_6187.jpg (409.11 KB )

IMG_6187.jpg

IMG_6223.jpg (548.02 KB )

IMG_6223.jpg

circuit_V0_3.jpg (466.52 KB )

circuit_V0_3.jpg

Function_Generator_STC-master.zip

1.6 MB

使用特权

评论回复

相关帖子

沙发
happy0god|  楼主 | 2020-12-21 13:09 | 只看该作者
要看视频的在B站搜索“老刘爱捣鼓”,看是怎么操作和讲解的。

使用特权

评论回复
板凳
LcwSwust| | 2020-12-21 13:36 | 只看该作者
不错              

使用特权

评论回复
地板
airwill| | 2020-12-21 16:36 | 只看该作者
换 STM32 做, 应该可以做出非常复杂的波形发生器.

使用特权

评论回复
5
xyz549040622| | 2020-12-21 19:51 | 只看该作者
非常不错支持下。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

2

主题

166

帖子

0

粉丝