摘要:随着人类文明的进步,科学技术的发展,我们的生活仅仅依托五官感知获取外部世界的信息是远远不够。充盈和丰富我们的感官功能的传感器由此诞生。追溯传感器的历史,远比我们想象的久远,早在埃及王朝时代,大家熟知的天平就已为人类所用。我们通过传感器作为媒介来获取信息,然后加以信息加工,便于我们进一步认识自然现象。传感器与信号处理两种形式相互结合的系统是当下发展趋势。本次设计通过将压电传感器检测到的信号,经过模数转换、信号放大传输,最后电子显示屏显示数值。具体实施时,将压电传感器、信号处理电路、I/O端口焊接在一块电路板上组成智能传感器。更进一步将传感器与我们的生活紧密联系在一起,通过传感器检测,数据显示,我们能更客观地感知世界,推动传感器的发展将使我们的生活更数字化、智能化。34308
毕业论文关键词:传感器;检测;模数转换;
A design based on Piezoelectric transducer By Microcontrollers
Abstract:With the development of human being’s civilization and science and technology,our life getting external information just by the five sense organs is no more enough.Transducers which are enriching and replenishing our five sense organs are created. Looking back at history, it is longer than we can image. At times of dynasty of Egypt, scalens which we are familiar with were widely used by human being.We gain information by transducers as medium,then information treated by a special process and it is easier for us to understand natural phenomenon.The system combining transducers with signal processing is the trend of development nowadays.The design aims at that the signal testted by a transducer goes through analog to digital conversion、signal amplification and finally display values in a electronic screen. During the process, a intelligent sensor is composed by a piezoelectric transducer、a signal processing circuit、I/O port in a circuit board.Transducers are linked with our life closely.We can phycially perceive the world by transducers testing and values displayed which will promote the development of transducers and as a result,our life will be more digital and intelligent.
KeyWords: transducer;test;analog to digital conversion;
目 录
1 设计总体1
1.1本课题的基本内容 1
2 单片机1
2.1 单片机简述 1
2.1.1 STC89C52 40CPDIP芯片1
2.1.2 引脚简述2
2.1.3 单片机周期4
3 传感器5
3.1 传感器简述 5
3.2 国内外研究现状与水平 5
3.3 压电加速度传感器 6
3.3.1 压电加速度传感器7
4 A/D转换7
4.1 A/D转换简述 7
4.2 ADC0832简述 8
5 晶振和串口9
5.1 晶振简述 9
5.2 晶振选择 9
5.3 串口简述 10
6 LCD简述10
6.1 LCD简述 10
6.2 LCD160210
7 电位器、上拉电阻、电容、蜂鸣器、自锁开关、排针12
7.1 电位器简述 12
7.2 上拉电阻简述 12
7.3 电容简述 12
7.4 蜂鸣器简述 13
7.5 自锁开关简述 13
7.6 排针简述 13
8 硬件组装针13
8.1 实践操作简述 13
9 软件编译16
9.1 C语言 16
9.2 主程序分析 17
10 设计总结19
10.1 设计总结 19
1 设计总体
1.1本课题的基本内容
本课题主要完成基于单片机的压电加速度传感器信号处理的功能,本系统采用单片机STC89C52为控制核心,实现压电式加速度传感器采集信号的功能。系统的硬件部分包括压电式加速度传感器,放大、信号处理电路、A/D转换电路、STC89C52单片机 、显示屏五大部分。软件部分应用单片机 编程语言实现本设计的全部控制功能,包括基本的数据采集功能功能,由于系统资源丰富,还可以方便的扩展其应用。 STC89C52单片机压电传感器设计:http://www.youerw.com/zidonghua/lunwen_31777.html