搜索
bottom↓
回复: 15

再发个日本人做的串口的示波器(带宽太低只能当玩具,免为其难参考下吧)

[复制链接]

出0入0汤圆

发表于 2009-10-29 19:35:14 | 显示全部楼层 |阅读模式
This is a portable oscilloscope adapter that it can be held in breast pocket. Its operation is only sampling and sending to host PC. The most of functions of the oscilloscope are processed by host PC. Therefore, oscilloscope adapter can be simplified.


Specifications Acquisition 8bit, 10ksa/sec (fixed)
Input Voltage Ranges 1mV/lsb (256mVp-p/fs) Zi=1Mohm
3.3mV/lsb (853mVp-p/fs) Zi=1Mohm
10mV/lsb (2.56Vp-p/fs) Zi=10Mohm
30mV/lsb (8.53Vp-p/fs) Zi=10Mohm
100mV/lsb (25.6Vp-p/fs) Zi=10Mohm
300mV/lsb (85.3Vp-p/fs) Zi=10Mohm
Host Interface RS-232C (9pin)
Transmit: 115kbps, Receive: 9600bps
Between Internal circuit and Interface circuit
are isolated with optical-isolaters.
Storage and Display Host PC takes charge of all of them.
Power Requirement Battery: a 9V alkaline battery
Operating current: 15mA(10:1), 25mA(1:1)
No power switch. It is controlled by host PC via RS-232C.
Cost 3,000 Yens (parts)

Key Techniques
I saied that this is a simple A/D converter at top of this document. This means software quality affects to convenience to use.

But I think it has every advantage that most of processes are taken charge of by host PC. Sampling rate of 10ksa/sec is also slow for software processing, so that latest processors will be able to processes in real time with ease.

The sampling rate of 10ksa/sec is dissatisfied as a digital oscilloscple. This restriction on sampling rate is by be linked between acquisition unit and host PC with the RS-232C. However, it will be useful on the lower frequency signal.

Negative and positive powers for the analog circuit is generated with charge pump of the MAX232AC. The MAX232AC is useful when using OPAMP with single +5V power supply.

For range changing, this is controlled by host PC with atteneter and amplification value control commands. For others there is no especialy technique, only amplitude input signal, sampling with microcontroller with integrated ADC, and sending wave form data to host.
Control Program

This image of the wave form is displayed with sampling control program. It is a current waveform that acquired at the switch board with a current sensor.

Peaks that stand out from sine wave are input current of the PC that it has switching power supply. Sine wave is currernt of fluorescent lamps, refregerator and others. They are inductive load so that phase of their current is lagged. The functions of the control program are as follows.



•Vertical Scale: Input votage renge. When this item is changed, stops acquisition temporary and sends a command of range-change to the WCS and restart acquisition.
•Horizontal Scale: Sampling rate is fixed to 10ksa/sec so that changes the horizontal scale with compressing or expanding. 2.5ms is one horizontal dot par sample. For 50 and 250ms, they are displayed with untriggered roll.
•Trigger Mode: This is same function as other general oscilloscopes.
•Trigger Edge: This is same function as other general oscilloscopes.
•Trigger Level: This is same funciotn as other general oscilloscopes.
•Run/Stop: Acquisition Starts/Stops with space key.
•Working Envilonment: Control program runs on the real DOS or DOS window on the Windows9X. Serial port must be 16550A compatible (requires the FIFO).
When build it
This oscilloscope adapter using a TMP47P242VN 4bit microcontroller for acquisition control. But it is difficult to obtain and to programm personaly, so that I recommend to replace the microcontroller with any other microcontroller, such as PIC and AVR, when you want to follow this project. The details of the acquisition controller is as follows.

Communication format between host PC and oscilloscope adapter is N81 (no parity, 8 data bits, one stop bit). Data transfer rate between oscilloscope adapter and host PC is 115.2kbps. This is the minimun required transfer rate for real-time transmission of sampled data of 10ksa/sec. And command transfer speed of from host PC to oscilloscope adapter is 9.6kbps.

The acquisition controller will enter state of command waiting after power-up. One byte of command value range is from 0x50 to 0x5F, any other value will be ignored. The controller outputs lower four bits to P01-P03, wait for one milisecond, and enter to sampling state (sampling loop). In sampling state, anything data is raceived from host PC, acquisition controller will return to command waiting state. Host PC must send a 0x00 before sending any command.

When above protocol is satisfied, control program will be able to use without any patches. But remaking the controll program as windows based application will better than DOS based application.


(原文件名:wcs_inner.jpg)


(原文件名:wcs_scope.png)



(原文件名:wcs_sch.png)

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

月入3000的是反美的。收入3万是亲美的。收入30万是移民美国的。收入300万是取得绿卡后回国,教唆那些3000来反美的!

出0入0汤圆

发表于 2009-10-29 19:41:56 | 显示全部楼层
good

出0入0汤圆

发表于 2009-10-29 19:47:44 | 显示全部楼层
mark

出0入0汤圆

发表于 2009-10-30 10:19:47 | 显示全部楼层
用MAX232做双电源?不错。有创意。

出0入0汤圆

发表于 2009-10-30 10:51:53 | 显示全部楼层
jh

出0入0汤圆

发表于 2009-10-30 12:17:35 | 显示全部楼层
请教楼主,此作品原链接在哪?知道的话还请贴上,先行谢过.

出0入0汤圆

发表于 2009-10-30 12:24:13 | 显示全部楼层
goog

出0入0汤圆

发表于 2009-10-30 12:32:22 | 显示全部楼层
喜欢 日本人做的小东西  简单而且实用

出0入0汤圆

发表于 2010-1-6 08:15:18 | 显示全部楼层
万用板做的很漂亮

出0入0汤圆

发表于 2010-1-6 12:43:44 | 显示全部楼层
mark

出0入0汤圆

发表于 2010-1-30 23:12:42 | 显示全部楼层
网址找到了http://elm-chan.org/works/wcs/report_e.html

出0入0汤圆

发表于 2010-1-31 14:31:47 | 显示全部楼层
不知道那个电路原理图用什么画的呀,看着舒服漂亮。呵呵

出0入0汤圆

发表于 2010-3-16 20:05:00 | 显示全部楼层
TMP47P242VN是什么mcu,虽然下面说可以推荐用pic和avr代替

出0入0汤圆

发表于 2010-3-17 00:07:36 | 显示全部楼层
谢谢10楼网友指路,只是那个主页的源程序打不开。也Down不下来。

出65入0汤圆

发表于 2010-3-17 00:43:30 | 显示全部楼层
mark

出0入0汤圆

发表于 2010-3-20 21:13:10 | 显示全部楼层
很精致
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-4-28 23:55

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

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