完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好!
我在PSoC3上做了一个暗探测器。我对PSoC编程很新,所以我需要一点帮助。 如果你看我的TopDead(附加文件),我使用TrimSimes放大器(转换从我的光电二极管(SFH213)的电流),我还用一个比较器来比较两个电压。我想使它,当它是黑暗的(没有或很少的电流),比较器输出应该是高的,然后我想运行一个中断,应该设置一个引脚高。当它是低的,我想运行一个中断,设置相同的引脚低。 信息: 当有光时,比较器的正端在2V左右。 比较器的负端为1V。 先谢谢你。 触觉感受器 16.3 K 以上来自于百度翻译 以下为原文 Hi I am making a dark detector sensor on PSoC3. I am new to PSoC programing, so I need a little bit of help. If you look at my Topdesign (The attached file), I am using a transimpedans amplifier ( To convert current flow from my photo diode ( SFH213) ) and further more I am using a comparator to compare two voltages. I want to make it so that, when it is dark (no or little current flow), the comparator output should be high, then I want to run an interrupts which should sets a pin high. And when it is low, I want to run an interrupts which sets the same pin low. Info: When there is light the positive terminal end of comparator is around 2V. Negative terminal end of the comparator is 1V. Thank you in advance.
|
|
相关推荐
6个回答
|
|
嗨,我又创造了一捆。我仍然有相同的问题与中断不工作,也在添加一个while循环。
设计01.CyWrk.Access 016.Zip 1.4兆字节 以上来自于百度翻译 以下为原文 Hi again I created a bundle. I do still have the same problem with the interrupt not working, also after adding a while-loop. |
|
|
|
我建议你在TIA的输出端加一个模拟管脚,测量电压。TIA正在倒转,我不太确定极性是否正确。
鲍勃 以上来自于百度翻译 以下为原文 I would suggest you to add an analog pin to the output of the TIA and measure the voltage. The TIA is inverting, I'm not quite sure if the polarity is right. Bob |
|
|
|
TIA的转换g是反馈http://en.wikipedia.org/wiki/transimpedance_amplifier R.
你要衡量abvsolute光水平,或者只是简单地打开/关闭 基于一个简单的传感器,如反向偏置二极管?如果前者校准 传感器可从Avago,Rohm,VISHY等。如果后者只是一个比较器 TIA一般来说绰绰有余。事实上,你可以通过使用简单的方法来消除短暂性脑缺血发作。 一种基于R的光电池,如镉型细胞控制输入电平在分频器 比较器。在这个配置中设置比较器与歇斯底里。 HTTP://E.WiKiTo.Org/Wik/光敏电阻 问候,Dana。 代表性的例子(照片可能是镉或二极管或光电晶体管,显示W / O回)— 以上来自于百度翻译 以下为原文 The conversion G of the TIA is its fdbk R. http://en.wikipedia.org/wiki/Transimpedance_amplifier Are you trying to measure abvsolute light level, or just simply turn something on/off based on a simple sensor like a reverse biased diode ? If the former calibrated sensors are available from Avago, Rohm, Vishay, and others. If latter just a comparator and TIA is generally more than enough. In fact you could eliminate TIA easily by using a R based photocell, like a cadmium type cell controling input level in a divider to comparator. Set the comparator up with hysterisis in this configuration. http://en.wikipedia.org/wiki/Photoresistor Regards, Dana. Representative example (photo could be cadmium or diode or photo tranistor, shown w/o hysterisis) - |
|
|
|
我想在PSoC3上实现整个事情。它应该相当精确,但基本上它的目的是打开/关闭灯。
ADC采样如何? 以上来自于百度翻译 以下为原文 I want to implement the whole thing on the PSoC3. It should be pretty precise, but basically the purpose it turn light on/off. What about sampling with an ADC? |
|
|
|
如果精确的话,你需要一个已知的光水平,它会在下面移动
可以使用- 1)假设,使用未校准的廉价传感器,如二极管或CDS光电池或 光电晶体管。这意味着你必须校准你想要的产品的行程水平。 装运。在生产测试过程中进行简单测试。 2)感知你所需要的只是比较器。但要做CAL两种方法—— 使用A/D和TIA开发A/D信号,在生产测试过程中按A按钮。 并使用A/D读取校准光源,并将该值存储在EEPROM中。 然后用A/D读数将当前读数与CAL读数进行比较。 测定。如果你用简单的R分频器使用CD,你可能不需要TIA。 输入到A/D中。 使用传感器+比较器+VDAC8。VDAC8用于向比较器提供偏移量。 在生产测试过程中,校准光源将VDAC8值转换为行程, 将它存储在EE中,并且每次产品通电时,它读取EE值和 并将此写入VDAC8一次,以抵消比较器跳闸点。 问候,Dana。 以上来自于百度翻译 以下为原文 If by precise is you need a known light level at which it trips, the following could be used - 1) Assumptions, you use an uncalibrated cheap sensor, like diode or CDS photocell or photo transistor. This means you have to calibrate to the trip level you want the product to ship. A simple test during production test. 2) To sense all you need is a Comparator. But to do cal two approaches - a. Use A/D and TIA to develop signal for A/D. Press a button during production test and using A/D read a calibrated light source, and store that value in EEPROM. Then future readings with A/D will compare current reading to cal reading to make determination. You might not need TIA if you use CDS in a simple R divider to input into A/D. b. Use sensor + comparator + VDAC8. VDAC8 used to provide offset to comparator. During production test with calibrated light source slew VDAC8 value until it trips, store that in EE, and everytime product is powered on it reads the EE value and and writes this to VDAC8 once to offset the comparator trip point. Regards, Dana. |
|
|
|
这可能也是有用的。
HTTP://www. JangLoMIS.OR/ECE445/TopICS/EggCn/TP4.HTML HTTP://www. ROHM.COM/DICONTS/11308/12928/CNA09016Y.WP.PDF 问候,Dana。 以上来自于百度翻译 以下为原文 This might be useful as well - http://www.johnloomis.org/ece445/topics/egginc/tp4.html http://www.rohm.com/documents/11308/12928/CNA09016_wp.pdf Regards, Dana. |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2105 浏览 1 评论
1851 浏览 1 评论
3669 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1786 浏览 6 评论
1536 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
569浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
423浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
437浏览 2评论
383浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
915浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 16:46 , Processed in 1.093618 second(s), Total 89, Slave 72 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号