📄 2.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0039)http://218.106.165.186/Facture/415.html -->
<HTML><HEAD><TITLE>[转贴]实用电子秤2/5</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK
href="2.files/main.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY leftMargin=0 topMargin=0 onload="javascript:window.status='欢迎访问---华方卓越'">
<CENTER>
<TABLE cellSpacing=0 cellPadding=0 width=800 border=0>
<TBODY>
<TR>
<TD align=middle bgColor=#0066cc height=8>
<SCRIPT src="2.files/mystat.htm"></SCRIPT>
</TD></TR></TBODY></TABLE>
<TABLE borderColor=#c4d5fd width=800 bgColor=#c4d5fd border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=790 align=center bgColor=#ffffff
border=0>
<TBODY>
<TR>
<TD align=middle width=160 bgColor=#ffffff height=80>
<P><IMG src="2.files/glorywork.gif"></P></TD>
<TD align=middle height=74>幸福生活每一天!</TD>
<TD align=middle width=70 height=80>
<TABLE cellSpacing=0 cellPadding=0 width="95%" border=0>
<TBODY>
<TR>
<TD align=middle height=25><A
onclick="javascript:window.external.addFavorite('http://www.glorywork.com','华 方 卓 越')"
href="http://218.106.165.186/Facture/415.html#">加入收藏</A></TD></TR>
<TR>
<TD align=middle height=25><A style="CURSOR: hand"
onclick='this.style.behavior="url(#default#homepage)";this.sethomepage("http://www.glorywork.com")'
href="http://218.106.165.186/Facture/415.html#">设为主页</A></TD></TR>
<TR>
<TD align=middle height=25><A
href="http://218.106.165.186/">返回首页</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=1 cellPadding=3 width=800 bgColor=#c4d5fd border=0>
<TBODY>
<TR vAlign=center bgColor=#0066cc>
<TD onmouseover="javascript:this.bgColor='#ff6600';"
onmouseout="javascript:this.bgColor='#0066CC';" align=middle><A
href="http://218.106.165.186/Sutra/index/index.asp"><FONT
color=white>经典文章</FONT></A></TD>
<TD onmouseover="javascript:this.bgColor='#ff6600';"
onmouseout="javascript:this.bgColor='#0066CC';" align=middle><A
href="http://218.106.165.186/Program/index/index.asp"><FONT
color=white>程序参考</FONT></A></TD>
<TD onmouseover="javascript:this.bgColor='#ff6600';"
onmouseout="javascript:this.bgColor='#0066CC';" align=middle><A
href="http://218.106.165.186/Circuit/index/index.asp"><FONT
color=white>电路收藏</FONT></A></TD>
<TD onmouseover="javascript:this.bgColor='#ff6600';"
onmouseout="javascript:this.bgColor='#0066CC';" align=middle><A
href="http://218.106.165.186/Facture/index/index.asp"><FONT
color=white>应用制作</FONT></A></TD>
<TD onmouseover="javascript:this.bgColor='#ff6600';"
onmouseout="javascript:this.bgColor='#0066CC';" align=middle><FONT
color=white>项目联盟</FONT></A></TD>
<TD onmouseover="javascript:this.bgColor='#ff6600';"
onmouseout="javascript:this.bgColor='#0066CC';" align=middle><A
href="http://218.106.165.186/OutPut/index/index.asp"><FONT
color=white>产品展示</FONT></A></TD>
<TD onmouseover="javascript:this.bgColor='#ff6600';"
onmouseout="javascript:this.bgColor='#0066CC';" align=middle><A
href="http://218.106.165.186/Download/index/index.asp"><FONT
color=white>资料下载</FONT></A></TD>
<TD onmouseover="javascript:this.bgColor='#ff6600';"
onmouseout="javascript:this.bgColor='#0066CC';" align=middle><A
href="http://218.106.165.186/Communion/index/index.asp"><FONT
color=white>技术交流</FONT></A></TD>
<TD onmouseover="javascript:this.bgColor='#ff6600';"
onmouseout="javascript:this.bgColor='#0066CC';" align=middle><A
href="http://218.106.165.186/Eden/index/index.asp"><FONT color=white>半 山
亭</FONT></A></TD>
<TD onmouseover="javascript:this.bgColor='#ff6600';"
onmouseout="javascript:this.bgColor='#0066CC';" align=middle><A
href="http://218.106.165.186/Develop/index/index.asp"><FONT
color=white>站务相关</FONT></A></TD></TR></TBODY></TABLE>
<META content=[转贴]实用电子秤2/5 name=keywords>
<META content=[转贴]实用电子秤2/5 name=description><LINK href="2.files/main.css"
type=text/css rel=stylesheet>
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</SCRIPT>
<SCRIPT>
var aw = screen.availWidth;
var ah = screen.availHeight;
window.moveTo(0,0);
window.resizeTo(aw,ah);
</SCRIPT>
<STYLE type=text/css>BODY {
BACKGROUND-IMAGE: url(../../index/images/background.jpg)
}
</STYLE>
<TABLE cellSpacing=0 cellPadding=0 width=800 bgColor=#c4d5fd border=0>
<TBODY>
<TR>
<TD height=3></TD></TR>
<TR>
<TD>
<TABLE cellSpacing=5 cellPadding=0 width=790 align=center bgColor=#ffffff
border=0>
<TBODY>
<TR>
<TD align=middle
height=3>----------------------------------------------------------------------------------------------------------------------------------</TD></TR>
<TR>
<TD height=5></TD></TR>
<TR>
<TD align=middle width=790><SPAN
style="FONT-SIZE: 15pt; COLOR: black; FONT-FAMILY: 宋体; LETTER-SPACING: 0pt"><B>[转贴]实用电子秤2/5</B></SPAN></TD></TR>
<TR>
<TD height=5></TD></TR>
<TR>
<TD><FONT color=#000000>
<P class=style27 align=center><STRONG>第二部分:具体实现方案 </STRONG></P>
<P class=style27><STRONG>一、硬件组成: </STRONG></P>
<P class=style27><STRONG>(一)、硬件结构框图如下: </STRONG></P>
<P class=style27 align=center><A href="2.files/27314.jpg"
target=_blank><IMG title=点击在新窗口查看原始图片 height=127
src="2.files/27314.jpg" width=300
onload="java_script_:if(this.width>300)this.width=300"
border=0></A></P>
<P class=style27><STRONG>( 二)、各部分硬件电路实现 </STRONG></P>
<P class=style27><STRONG>(1)、基于AT89S52的主控电路图 </STRONG></P>
<P class=style27><STRONG><A href="2.files/27315.jpg"
target=_blank><IMG title=点击在新窗口查看原始图片 height=500
src="2.files/27315.jpg" width=300
onload="java_script_:if(this.width>300)this.width=300"
border=0></A></STRONG></P>
<P class=style27>主控电路以 89C52为核心扩展32K
RAM;单片机使用6M晶振,P0口外接上拉电阻,增大了带负载能力;A12~A15接74LS138译码器,输出作外部片选信号。
扩展了几个接口用于其它部分于单片机的通信 </P>
<P class=style27><STRONG>( 2)前端信号处理 </STRONG></P>
<P class=style27>INA126构成的放大器及滤波电路: </P>
<P class=style27 align=center><A href="2.files/27316.jpg"
target=_blank><IMG title=点击在新窗口查看原始图片 height=243
src="2.files/27316.jpg" width=300
onload="java_script_:if(this.width>300)this.width=300"
border=0></A></P>
<P class=style27>通过调节 <A href="2.files/danzichen_clip_image033.gif"
target=_blank><IMG title=点击在新窗口查看原始图片 height=15
src="2.files/danzichen_clip_image033.gif" width=16
onload="java_script_:if(this.width>300)this.width=300"
border=0></A>的阻值来改变放大倍数。微弱信号Vi1和Vi2被分别放大后从INA126的第6脚输出。A/D转换器ICL7135的输入电压变化范围是-2V~+2V,传感器的输出电压信号在0~20mv左右,因此放大器的放大倍数在200~300左右,可将
<A href="2.files/danzichen_clip_image034.gif" target=_blank><IMG
title=点击在新窗口查看原始图片 height=15
src="2.files/danzichen_clip_image034.gif" width=16
onload="java_script_:if(this.width>300)this.width=300"
border=0></A>接成 <A href="2.files/danzichen_clip_image036.gif"
target=_blank><IMG title=点击在新窗口查看原始图片 height=11
src="2.files/danzichen_clip_image036.gif" width=27
onload="java_script_:if(this.width>300)this.width=300"
border=0></A>的滑动变阻器。 </P>
<P class=style27>由于
ICL7135对高频干扰不敏感,所以滤波电路主要针对工频及其低次谐波引入的干扰。因为压力信号变化十分缓慢,所以滤波电路可以把频率做得很低。
</P>
<P class=style27><STRONG>( 3)A/D转换器 </STRONG></P>
<P class=style27>基于 ICL7135的A/D转换器实现电路: </P>
<P class=style27 align=center><A href="2.files/27320.jpg"
target=_blank><IMG title=点击在新窗口查看原始图片 height=296
src="2.files/27320.jpg" width=300
onload="java_script_:if(this.width>300)this.width=300"
border=0></A></P>
<P class=style27>基准源选用芯片 MC1403 2.5V分压得到: </P>
<P class=style27 align=center><A href="2.files/27321.jpg"
target=_blank><IMG title=点击在新窗口查看原始图片 height=268
src="2.files/27321.jpg" width=300
onload="java_script_:if(this.width>300)this.width=300"
border=0></A></P>
<P class=style27>由于
ICL7135内部没有振荡器,所以需要外接。但A/D转换器精度与时钟频率的漂移无关。正向积分时间T1和反向积分时间T2按相同比例增加并不影响测量的结果。ICL7135的时钟频率典型值为200kHz最高允许为1200kHz,时钟频率越高,转换速度越快。每输出一位BCD码的时间为200个时钟周期,选通脉冲位于数据脉冲的中部,如果时钟频率太高,则数据的接受程序还没有接受完毕,数据就已经消失了。考虑到此系统频率要求不是太高,且单片机的工作频率也不是很高,因此我们取时钟频率的典型值:200kHz。由于频率比较低,对时钟漂移要求不高,我们采用阻容方式实现了基本的振荡电路。如下:
</P>
<P class=style27 align=center><A href="2.files/27322.jpg"
target=_blank><IMG title=点击在新窗口查看原始图片 height=169
src="2.files/27322.jpg" width=300
onload="java_script_:if(this.width>300)this.width=300"
border=0></A></P>
<P class=style27>振荡频率约为 160kHz。 </P>
<P class=style27>此外
ICL7135外部还需要外接积分电阻、积分电容,但A/D转换器精度与外接的积分电阻、积分电容的精度无关,故可以降低对元件质量的要求。不过积分电容和积分电容的介质损耗会影响到A/D转换器的精度,所以应采用介质损耗较小的聚丙乙烯电容
</P>
<P
class=style27>ICL7135还需要外接基准电源,这是因为芯片内部的基准源一般容易受到温度的影响,而基准电源的变化会直接影响转换精度。所以当精度要求较高时,应采用外接基准源。一般接其典型值1V。
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -