搜索
bottom↓
回复: 9

有没有那位兄弟做成功过下面这个电容表?

[复制链接]

出0入0汤圆

发表于 2009-2-20 12:06:48 | 显示全部楼层 |阅读模式
One of the smallest atmegas, the atmega8, was selected to do the job, as the IO and resource requirements are only limited. The power supply consists of a 9V battery linearly regulated to 5V using a 7805, to get a stable and quiet supply. The rather large 47 uF tantalum decoupling cap might be overkill, but was selected to further stabilize the power supply.


(原文件名:capmeter_schematic.png)


(原文件名:inside.jpg)


(原文件名:lcd_connector.png)




The measurement circuit needs a little explanation. The meter can be in three modes: low range measuring, high range measuring or discharging. These modes are defined by the states of PD5 and PD6. When discharging PD6 pulls low and the capacitor is discharged through R7 (220). At high range measuring PD5 pulls high, charging the capacitor through R8 (1.8K) and PD6 is high impedance to allow the analog comperator to watch the voltage. At low range measuring PD5 is also high impedance and only R6 (1.8Meg) charges the capacitor.

The LCD must be a standard HD44780 compatible 16x2 character display. The connector shown above is a 10 pin flat cable, with a pinout selected for ease of routing on a stripboard. The cable must connect to the LCD as follows:


The circuit was implemented on stripboard and built into a simple plastic case. The top of the case was cut to hold the button, the LED and the LCD, which was all hot-melt glued:


Software
Beside the capacitance measurement logic and configuring the mcu's timer and analog comperator, the following more general tasks are solved by the software:

Assembler optimized fixed point math multiplication
EEPROM read and write functions
Delay milliseconds function
Conversion of numbers to ascii with decimal and decade control (pF, nF, uF, mF)
Hold-down-single-button menu implementation
HD44780 compatible LCD char and string routines
The software can run on atmega8 and on atmega48/88/168 family mcu's. A single line of code dealing with timer setup must be changed according to what family of mcu is used.

阿莫论坛20周年了!感谢大家的支持与爱护!!

曾经有一段真挚的爱情摆在我的面前,我没有珍惜,现在想起来,还好我没有珍惜……

出0入0汤圆

 楼主| 发表于 2009-2-20 12:12:49 | 显示全部楼层
程序来了.
Capmeter源文件ourdev_420979.zip(文件大小:7K) (原文件名:Capmeter.zip)

出0入0汤圆

发表于 2009-2-20 14:28:06 | 显示全部楼层
LZ怎么不先尝试着做一下,然后分享一下经验呢?

出0入0汤圆

 楼主| 发表于 2009-2-20 17:03:12 | 显示全部楼层
已经做了一个,初始化显示没问题,测量时死活没显示.应该还有问题..

所以看看有没有人做过?

出0入0汤圆

发表于 2009-2-20 17:10:27 | 显示全部楼层
http://www.ouravr.com/bbs/bbs_content.jsp?bbs_sn=436997&bbs_page_no=1&search_mode=3&search_text=fsclub&bbs_id=9999

出0入0汤圆

发表于 2009-2-20 21:30:49 | 显示全部楼层
LZ对它的工作原理和程序的算法理解么?如果理解的话,自己都应该可以写一个出来的.

出0入0汤圆

发表于 2009-2-20 21:56:06 | 显示全部楼层
本人网站上有一电容表套件,可以测道引线的电容,应该比楼主说的那个成本低,看图片。 (网址:www.jyetech.com)


(原文件名:CapMeter_6.jpg)

出0入0汤圆

 楼主| 发表于 2009-2-23 14:39:27 | 显示全部楼层
To: ywl0409 老黄牛


之前是按照图和程序做的.没有去深入理解.现在再看.

(原文件名:IMG_4490.jpg)




(原文件名:IMG_4492.jpg)


(原文件名:IMG_4493.jpg)


(原文件名:IMG_4494.jpg)


(原文件名:IMG_4495.jpg)


(原文件名:IMG_4496.jpg)


(原文件名:IMG_4497.jpg)


(原文件名:IMG_4498.jpg)

出0入0汤圆

发表于 2011-6-27 21:14:25 | 显示全部楼层
00000

出0入0汤圆

发表于 2011-7-13 19:03:54 | 显示全部楼层
做了个电容箱,用43B测量输出电容值(10nF以下值和个别几十nF)显示不稳,跳变比较大,用LCR电桥测也是读数不稳!把电容拆下来直接测量是没问题的,但是接到电路里就不稳了。电容箱是数字的,用交流电源供电,通过控制继电器通断输出不同的电容值。
哪位大侠帮我分析一下?是电路布线分布电容的影响?还是单片机工作的电磁干扰影响?
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-8-26 07:18

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表