Microchip
直播中

庞琳

7年用户 210经验值
私信 关注
[问答]

Tachome的最佳方法是什么?

我开始设计一种用于测试单相交流电动机的DyNO。我知道量化RPM的2种方法:在脉冲之间的1次,以及在某个预定义周期内的2个脉冲数。问题:哪一个将给我最佳的精确度和准确度,还有第三个更好的方法吗?

以上来自于百度翻译


      以下为原文

    I am starting on the design of a dyno for testing some single-phase ac motors. I know of 2 methods for quantifying the rpm: 1 - time between pulses, and 2 - count numberof pulses over some predefined period.

Question: which will give me the best precision and accuracy, and is there a third perhaps better method?

回帖(18)

陈晨

2019-3-6 09:12:30
这将取决于输入信号的频率。如果你有一个非常广泛的范围,你可能需要使用这两种方法。

以上来自于百度翻译


      以下为原文

    That would depend on the frequency of the input signal. If you have a very wide range you may need to use both methods.
举报

陈晨

2019-3-6 09:35:02
不是开关,软件逻辑。在锁定的转子或非常缓慢的速度,你不能计数脉冲,因为不会有任何或它们可能是非常缓慢的。高频脉冲宽度较短。你得到的分辨率将取决于CPU时钟。你需要看看PIC它的外设。和时钟。做一些数学来决定你得到什么,是否适合你的需要。您将需要编写某种类型的自动测距。

以上来自于百度翻译


      以下为原文

    Not a switch, software logic.
At locked rotor or very slow speeds you can not count pulses since ther will not be any or they may be very slow.
Pulse width at high frequency will be short. The resolution you get would depend on the CPU clock.
You need to look at the pic it's peripherials. And clock. Do some math to determine what you get and if it suits your needs.
You will need to code some type of auto ranging.
举报

杜元晓

2019-3-6 09:44:55
MITYELTU,只是在脉冲方法之间使用时间一路。但对于高转速,累加“脉冲之间的时间”求和计数脉冲。在每个更新周期中,通过脉冲计数除以脉冲之间的汇总时间(如果脉冲计数是至少一个)。通过这种方式,你将得到混合值,这将有效地在预定义的(更新速率)周期内为高RPM和低RPM的脉冲之间的脉冲计数。所有的方法都会得到最精确的值。即使在高转速下,分辨率也会很粗糙,计数的数量会产生很好的平均值。不要错过整数累加器变量的大小。在某些情况下,标准的16位整数可能是不够的。此外,使用宽变量知道在处理中断时非原子访问。也使脉冲捕获和求和之间的时间尽可能快地错过在高RPMS尽可能少的脉冲。如果将有规则的脉冲丢失,结果可能包含混叠,一些系统误差。

以上来自于百度翻译


      以下为原文

    MitYeltu, just use time between pulses method all the way. But for high RPM accumulate "time between pulses" sum and count the pulses. On every update period divide summary time between pulses by pulses count (if pulses count is at least one). This way you'll got hybrid value which effective will be pulse count over predefined (update rate) period for high RPM and time between pulses for low RPM. All the way you'll got most precise value. Even if at high RPM the resolution will be coarse, the number of counts will produce fine average.
Do not miss the size of integer accumulator variable. In some cases standard 16-bit integer may be not sufficient. Also using wide variable be aware of non-atomic access while working with interruptions. Also make the time-between-pulse capturing and summing as fast as possible to miss as few pulses as possible at high RPMs. If there will be regular pulse missing the result may contain an aliasing, some systematic error.
举报

陈晨

2019-3-6 09:55:34
脉冲之间的时间将需要一个时间来处理零rpm。一些PIC定时器/IC外围设备将时间为1到4个脉冲。

以上来自于百度翻译


      以下为原文

    Time between pulses would require a time out to deal with zero rpm.
Some PIC timer /IC peripherials will time 1 to 4 pulses.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分