完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我很新的PSoC和嵌入式编程。我一直在与CopSoSE接近感兴趣的问题。我创建了一个接近小部件并给它分配了一个传感器。我在我的板上还有其他的CasSoIP按钮,这些按钮已经配置好了,正在工作。我还没能找到如何使用接近传感器的调谐器。我读到除了默认小部件之外,所有部件都默认启用。如何手动启用邻近控件,以便在调谐器中使用它?下面是我的代码处理CAPSENSE的部分。谢谢你的帮助。 沃尔特 (这部分代码是我的主要部分) *开始调谐器操作*/ CAPENSESE11TUNESTART(); CAPENSESE1LN EnababelSoor(CAPENSESE1 1SyrRoMyRealSistRoal1O0SY PROX);/ /不确定把它放在哪里?? (;) { CopsSeNe11TuneCube(); } *结束调谐器操作*/ 以上来自于百度翻译 以下为原文 Hello, I am very new with PSOC and embedded programming. I have been having issues with CapSense proximity sensing. I have created a proximity widget and assigned it a sensor. I have other capsense buttons on my board which have been configured as well and are working. I have not been able to figure out how to use the tuner with a proximity sensor. I read that all widgets are enabled by default except proximity widgets. How do you manually enable a proximity widget so you can use it in the tuner? Below is the part of my code that is dealing with CapSense. Thank you for your help. -Walt (This portion of code is in my main) /* start tuner operation */ CapSense_1_TunerStart(); CapSense_1_EnableSensor(CapSense_1_SENSOR_PROXIMITYSENSOR1_0__PROX); //Not sure where to put this?? for(;;) { CapSense_1_TunerComm(); } /* end tuner operation */ |
|
相关推荐
15个回答
|
|
|
|
|
|
当我通过超级终端看端口时,一切看起来都正常。标题“C”和下面的字符一起随接近传感器变化。附件是屏幕截图。
沃尔特 高JPG 22.3 K 以上来自于百度翻译 以下为原文 When I watch the port through hyperterminal everything looks like its working properly. The header 'C' is there along with a following character that changes with the proximity sensor. Attached is a screen shot. -Walt
|
|
|
|
感谢Dana的答复,但链接到您寄给我的帖子没有提供足够的信息,使附近的小部件在主。还有其他想法吗?谢谢
沃尔特 以上来自于百度翻译 以下为原文 Thanks Dana for your reply but the link to the post you sent me does not provide a sufficient amount of info on enabling the proximity widget in the main. Any other ideas out there? Thanks -Walt |
|
|
|
我总是建议把整个项目张贴在这里,这样我们就可以看一看。与一些硬件信息(KIT)一起使用,更容易整理出可能导致错误的事实。
鲍勃 以上来自于百度翻译 以下为原文 I always suggest to post the complete project here so that we can have a look at. Together with some hardware-information (Kit used) it is much easier to sort out the facts which may lead to an error. Bob |
|
|
|
忘记:
在C造饰器中使用:“文件-gt;创建工作区束”,并将生成的存档上传到这里。 鲍勃 以上来自于百度翻译 以下为原文 Forgot: Use in Creator: "File -> Create Workspace Bundle" and upload the resulting archive here. Bob |
|
|
|
你们可能感兴趣的是,在本周内,CyPress将在PSOC4的100个项目-100天计划上传一些接近感测示例项目。这些将是简单的示例来演示该特性,并演示如何在应用程序中使用它(RGB控件,TeleMin)。桥接控制面板将用于交互式地绘制传感器原始计数。
HTTP://www. eltMe1.com /社区/KoDe/DevPielFordsKITs/EntEng14/DevyKITS/PSOC4A创业工具包 需要注意的是,用于邻近检测的传感器的类型影响传感器的范围/灵敏度。例如,如果你将一个大的金属物体连接到被配置为接近检测的PIN,你可能会得到一个更大的范围。 最好的, 安东尼奥 以上来自于百度翻译 以下为原文 You guys may be interested to know that within the week, Cypress will upload a couple of proximity-sensing example projects on the 100-projects-in-100-days initiative for PSoC 4. These are going to be simple examples to demonstrate the feature, and show how to use it in an application (RGB control, Theremin). The Bridge Control Panel will be used to interactively graph the sensor raw counts. http://www.element14.com/community/community/knode/dev_platforms_kits/element14_dev_kits/psoc4_pioneer_kit One thing to note is that the type of sensor used for proximity detection affects the range/sensitivity of the sensor. For example, if you connect a large metal object to the pin which is configured for proximity detection, you are likely to get a much larger range. Best, Antonio |
|
|
|
这是我的计划。我不得不去掉一些代码区域。我使用的是一个带有七个CasSouple按钮的正版PCB,我试图用一个按钮作为接近传感器,或者把它们作为一个接近传感器。谢谢你看一看。
沃尔特 USOB PSOC3.BANDLI01.ZIP 2.5兆字节 以上来自于百度翻译 以下为原文 Here is my project. I had to leave out some areas of code. I am using a propritary PCB with seven capsense buttons and am trying to use one of the buttons as a proximity senor or gange them up as one proximity sensor. Thanks for taking a look at it. -Walt
|
|
|
|
调谐方法设置为“自动”,因为我理解数据表-将不使用调谐器。应设置为“手册”
鲍勃 以上来自于百度翻译 以下为原文 Tuning method is set to "Auto" which -as I understand the datasheet - will not use the tuner. Should be set to "Manual" Bob |
|
|
|
我觉得这不是问题所在。我尝试了手动和自动,结果相同。该图显示零信号AD即使接触也不变化。
沃尔特 以上来自于百度翻译 以下为原文 I am affraid that is not the problem. I have attempted manual and auto with the same results. The graph shows zero signal ad does not vary even with contact. -Walt |
|
|
|
检查您的(陶瓷)电容2.2引脚在引脚60
也检查引脚… 找到它了! 您的接近引脚不在PIN表!尝试删除和重新创建接近传感器在CAPSENSE的属性对话框。在建立之后,关于双连接引脚存在一些错误。专注于那些! 鲍勃 以上来自于百度翻译 以下为原文 Check your (ceramic) capacitor of 2.2 pF on pin 60 also check pin ... FOUND IT! Your proximity pin is not in the pin-list! Try a remove and re-create the proximity sensor in the CapSense's property dialog. After a build there are some errors concerning doubly connected pins. Concentrate on those! Bob |
|
|
|
这个板上的七个CasSouk按钮工作很好,所以我不认为我的CMOD有什么问题。我复查了,是2.2nF。我的印象是,接近小部件不需要专用的引脚,而是可以扫描任何按钮的顶部。为了测试,我已经配置了接近传感器和它自己的按钮传感器。在启用接近传感器方面仍然存在问题。当我探测接近传感器时,没有信号,但是当我探测其中一个按钮时,它也被激活了。附件是我最新的项目文件。谢谢你的帮助!
沃尔特 USOB PSOC3.BANDLY02.ZIP 2.5兆字节 以上来自于百度翻译 以下为原文 The seven capsense buttons on this board work great so I dont think there is anything wrong with my CMOD. I double checked and it is 2.2nF. I was under the impression a proximity widget did not need a dedicated pin but could scan on top of any button. Just to test, I have configured the proximity sensor with its own button sensor. There still seems to be a problem with enabling the proximity sensor. When I probe the proximity sensor there is no signal but when I probe one of the buttons which is also enabled it is functioning with a signal. Attached is my latest project file. Thanks for the help! -Walt
|
|
|
|
尝试以下步骤:解锁所有与CasPople接近、重建和测试无关的PIN
当测试失败时,解锁PROX.SENSE P15(4),并尝试使用FIT在重建后分配的引脚(或者如果硬件不允许相邻的)。 鲍勃 以上来自于百度翻译 以下为原文 Try the following: Unlock all your pins that are not concerned with the CapSense proximity, rebuild and test when test fails, unlock the prox.sense P15(4) and try to use the pin the fitter assigns after a rebuild (or if hardware does not allow an adjacent one) Bob |
|
|
|
我决定搁置尝试使用调谐器与接近感。在发布了100的第十五项目之后,我决定尝试它,因为它使用接近感测,并通过RS232COM端口通过桥控制面板显示所收集的数据。不幸的是,我仍然在努力让GUI工作。桥接控制面板连接到COM端口,但当我按“重复”按钮时,什么也没有发生。我见过短暂的连接发生两次。但是所有重复按钮确实是索引状态窗口一行。我已经正确地配置了协议和变量设置,并且确信我的命令是正确的。请告诉我你的想法。附件是我的项目。谢谢大家的帮助!
沃尔特 以上来自于百度翻译 以下为原文 I have decided to set aside trying to use the tuner with proximity sensing. After the 15th project of the 100 was posted I decided to attemp it since it uses proximity sensing and displays the collected data through the Bridge Control Panel over a RS232 com port. Unfortunately I am still having issuse getting a GUI working. The Bridge Control Panel connects to the com port but when I press the repeat button nothing happens. I have seen a brief connection occur twice . But all the Repeat button does is index the status window one row. I have configured the protocol and the variable settings correctly and am sure my command is correct. Please let me know what you think. Attached is my project. Thanks you all for your help! -Walt |
|
|
|
|
|
|
|
这是桥控制面板的屏幕截图
BCP.JPG 113 K 以上来自于百度翻译 以下为原文 Here is a screenshot of the Bridge Control Panel
|
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2106 浏览 1 评论
1853 浏览 1 评论
3671 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1786 浏览 6 评论
1536 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
571浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
424浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
437浏览 2评论
384浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
916浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 11:00 , Processed in 1.396528 second(s), Total 75, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号