完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个应用程序来读取ADC,并将它与一个设置值进行比较。如果发现偏差,则给出增加或减少输出的命令。在给出命令时,我需要动态检查ADC值以避免过冲。当我读ADC时,它会发生,并给功率电路命令改变值。我再次检查ADC,因为延迟了值的过冲,应用是伺服稳定器。有一个伺服电机,两面旋转,给予加法和校正。PL建议我如何读取ADC动态,而伺服电机正在移动,停止在所需的值,没有超调。
以上来自于百度翻译 以下为原文 i have an application to read ADC and comparing it with a set value. if deviation is found give command to increase or decrease the output . while giving the command i need to check dynamically the ADC value to avoid overshoot. it is happening as i read the ADC and give command to power circuit to change value . by the time again i check the ADC , due to delay the overshoot of value happened. the application is servo stabilizer. there is a servo motor which rotate both side to give plus and - correction . pl suggest how i can read ADC dynamically while servo motor is moving , to stop at required value , no overshoot. |
|
相关推荐
6个回答
|
|
目前还不清楚你的实际问题是:ADC输入引脚的电压“超调”?你到底在读什么?它的输出阻抗是多少?(必须小于10K)在ADC输入引脚上是否有低通滤波?很难说您是否正确配置了ADC,或者在没有显示任何代码时正确读取ADC。
以上来自于百度翻译 以下为原文 It is unclear what your actual problem is. Is the voltage at the ADC input pin "overshooting"? What exactly are you reading? What is its output impedance? (Must be less than 10k) Do you have any low pass filtering on the ADC input pin? It is hard to tell if you have configured the ADC correctly, or reading it correctly when you do not show any of your code. |
|
|
|
听起来像执行速度的问题,但没有看到你的实际代码,一切都是猜测。在输出中,模拟输入电平的变化对你的设计有什么响应时间?这种恢复需要多长时间?
以上来自于百度翻译 以下为原文 Sounds like a speed of execution problem but without seeing your ACTUAL code everything is guessing. What response time to a change in the analog INPUT level must your design have at the OUTPUT? How long can this respose take? |
|
|
|
什么样的伺服?一个规则的180弧运动还是连续运动?最佳选择
以上来自于百度翻译 以下为原文 Hi What kind of servo? A regular one with 180º arc motion or a continuos motion one? Best regards Jorge |
|
|
|
我的猜测是问题不是A/D的阅读,而是控制理论。他的系统受到了抑制,或者不稳定。
以上来自于百度翻译 以下为原文 My Guess is the Issue is not the reading of the A/D. It is control Theory. And his system is under damped, or unstable. |
|
|
|
事实上,该应用是一种与伺服电机耦合的自耦变压器(可变交流电源)。我喜欢保持交流输出电压从VALAC固定,并通过微控制器控制电机正向和反向。当输出出现偏差时,我给电机指令。更正。并给出一些延迟,再次做ADC检查,电机移动超过要求,输出值超过。我需要得到ADC正确值,所以我取100个样本和平均值进行比较。更少的样本没有给我ADC.PL建议的正确值。
以上来自于百度翻译 以下为原文 Thanks actually the application is a auto transformer variac ( Variable AC supply) coupled with servo motor. i like to keep AC output voltage from variac fixed and through microchip controller i m controlling servo motor forward and reverse. When deviation arises at output ,i give command to motor for correction . and give some delay and again do ADC to check , the motor moves more than required ,the output value exceeds. i need to get ADC correct value so i take 100 sample and average out and compare . less number of samples does not give me correct value of ADC. pl advice. |
|
|
|
为什么你相信ADC阅读是问题所在?你真的掌握控制理论吗?
以上来自于百度翻译 以下为原文 Quoted for agreement. rushabh09, why are you convinced that the ADC reading is the problem? Do you actually have any knowledge of control theory? |
|
|
|
只有小组成员才能发言,加入小组>>
5178 浏览 9 评论
2003 浏览 8 评论
1931 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3177 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2228 浏览 5 评论
738浏览 1评论
622浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
509浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
636浏览 0评论
533浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-27 09:06 , Processed in 1.446405 second(s), Total 87, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号