完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我在纽瓦克的PSOC4项目中看到了100个项目,这是一个允许传输RC-5 IR代码的项目。
这和我想做的很接近,只是相反。我想设置PSoC从远程接收IR代码。(实际上,我对索尼IR代码感兴趣,但感觉RC-5很接近,并且可以修改为索尼格式。) 这样做有多困难?我已经搜查了档案,我想到的是使用设计师。我想用创造者这样做。 谢谢, 詹姆斯 以上来自于百度翻译 以下为原文 I see in the Newark's collection of 100 projects for the PSoC4, a project that allows the transmission of RC-5 IR Codes. This is close to what I want to do, only in reverse. I want to set up the PSoC to receive IR codes from a remote. (Actually, I am interested in the Sony IR codes, but feel that the RC-5 is close, and can be modified to the Sony format.) How difficult is it to do this? I have already searched the archives, and all I come up with is using Designer. I want to do this using Creator. Thanks, James |
|
相关推荐
32个回答
|
|
你好,
您可以使用PSoC 4中的数字资源轻松地构建RC5解码器。 谢谢, 拉胡尔 以上来自于百度翻译 以下为原文 Hi, You can easily build a RC5 decoder using the digital resouces in PSoC 4. Thanks, Rahul |
|
|
|
大家好,我需要帮助建立IR接收器TSOP(远程控制设备)使用PSoC创建者4。
但我不知道怎么做PSOC。请帮帮我。 谢谢 以上来自于百度翻译 以下为原文 hello all dear guys, i need help to build ir reciver tsop(remote controlled device) using Psoc Creator 4. but i don't know how to do in psoc.please please help me thanks |
|
|
|
由于RC-5是一个曼彻斯特编码协议,您可以查看这个关于曼彻斯特编码/解码的PSoC内幕博客条目。还有一个更详细的HTTP://wwwyCysP.com/?APP =论坛和ID ID = 2232和RID = 544 14www. CyPress。
以上来自于百度翻译 以下为原文 Since RC-5 is a manchester-encoded protocol, you can look at this PSoC Insider blog entry about manchester encoding / decoding. There is also a more detailed http://www.cypress.com/?app=forum&id=2232&rID=54414www.cypress.com/ in the forum. |
|
|
|
谢谢Hli。我遵循链接,阅读文章,下载代码,并打开它。
看着代码,我把解码器部分拉出来放到我的程序中。我把红外接收器连接到NOR门的输入端。 我能够检测IR -和AM能够切换基于IR检测的输出,但我不能真正解码脉冲序列。我现在得到的一切看起来像一个10101010点钟。(AA显示在LCD上)。 所以。有什么想法吗? Ir.CordDel.JPG 286.9 K 以上来自于百度翻译 以下为原文 Thanks Hli. I followed the links, read the articles, downloaded the code, and opened it. Looking at the code, I pulled the Decoder section out of it and put it into my program. I hooked the IR receiver in to the input of the NOR gate. I am able to detect the IR - and am able to switch the output based upon the IR detection, but I am not able to actually decode the pulse train. All I am getting right now looks like a clock of 10101010. (AA is displayed on the LCD.) So. Any ideas?
|
|
|
|
你能附加一个逻辑分析仪并显示IR输入、时钟和数据输出的样子吗?
PWM需要被配置为大约3 /第四的比特周期,这一个在RC-5中是1.778毫秒。因此PWM应该具有大约1.33毫秒的脉冲宽度。 以上来自于百度翻译 以下为原文 Can you attach a logic analyzer and show what the IR input, the clock and the data output look like? The PWM needs to be configured to a period about 3/4th of a bit period, and this one is 1.778 ms in RC-5. So the PWM should have a pulse width of about 1.33 ms. |
|
|
|
哦,并且RC-5发送14比特字,每个发送:http://e.维基百科。org/wiki/rc5
以上来自于百度翻译 以下为原文 Oh, and RC-5 sends 14 bit words with each transmit: http://en.wikipedia.org/wiki/RC-5#System_and_Command_Codes |
|
|
|
Hli
谢谢你的回复。 RE:你能附加一个逻辑分析仪并显示IR输入、时钟和数据输出的样子吗? 事实上,没有。我没有一个逻辑分析器来使用这个。我希望能逃出这一步,尤其是因为我不需要写一个类似的邮票。我也许可以在一些引脚上安装一个示波器来验证我得到了信号,但就是这样。R:哦,RC-5发送14比特字,每个发送-真,但我正在解码索尼IR -这是12位。我附上了描述索尼格式的PDF格式。再次感谢。 索尼西克 62.3 K 以上来自于百度翻译 以下为原文 Hli, Thanks for your response. RE: Can you attach a logic analyzer and show what the IR input, the clock and the data output look like? Actually, no. I do not have a logic analyzer to use with this. I was hoping to escape having to invest in one for this - especially since I didn't need one when writing something similar for the BASIC Stamp. I might be able to put an oscilloscope on some of the pins to verify that I am getting a signal, but that's about it. RE: Oh, and RC-5 sends 14 bit words with each transmit - True, but I am decoding SONY IR - which is 12-bits. I have attached a PDF that describes the SONY format. Thanks again.
|
|
|
|
从你打印的结果(0xAA)我知道你只阅读8位…
对于索尼协议,你需要不同的定时(PWM上的900秒),而且,你读了关于可能需要反转输入的注释,这取决于传感器吗? 它似乎明智地添加另一个计时器来检测启动条件(单连续脉冲2.4毫秒),然后开始接收。 我这里有一个索尼遥控器,但是需要一段时间来设置接收器: 也许你可以上传你的项目(文件/创建工作区包),所以我们可以看看吗? 以上来自于百度翻译 以下为原文 From the result you printed (0xAA) I figured you are reading only 8 bits... For the Sony protocol, you need different timing (900µs on the PWM), also, did you read the note about possibly needing to invert the input, depending on the sensor? It also seems sensible to add another timer to detect the start condition (single continuous pulse for 2.4 ms) and then start receiving. I have a Sony remote here, but it would take a while to set up the receiver :( Maybe you can upload your project here (file / create workspace bundle) so we can have a look? |
|
|
|
有一个低成本的板被用于逻辑分析仪的免费软件。
EZ-USB FX2LP www. EBay.COM/ITM/CY7C68013A-56EZ-UB-FX2LP-USP2-0开发板模块逻辑分析仪EEPROME/201910097 福建 鲍伯,你也知道一些低成本的东西吗? 问候,Dana。 以上来自于百度翻译 以下为原文 There is a low cost board being used with Freeware for logic analyzer - EZ-USB FX2LP www.ebay.com/itm/CY7C68013A-56-EZ-USB-FX2LP-USB2-0-Develope-Board-Module-Logic-Analyzer-EEPROM-/200910097384 forum.arduino.cc/index.php @Bob, you also know of something low cost as well ? Regards, Dana. |
|
|
|
你不能真的比这些易趣网克隆便宜。一个可以使用一个Bur海盗,但它会花费那么多(而且只有1兆赫)。由自己构建的最简单的逻辑分析仪可能是LogiBooST,达到20兆赫,但其基于MSP430:
或者,如果你能拿到一个- 050(或可能的Y - 030)板,你可以用我的模拟数字范围作为分析器。但它去,未修改,也只有高达1兆赫… 以上来自于百度翻译 以下为原文 You cannot really go cheaper than these ebay clones. One can use a BusPirate, but it will cost as much (and goes only to 1 MHz). The simplest logic analyzer to build by yourself is probably the LogicBoost, going up to 20 MHz, but its based on a MSP430 :( Or if you can get your hands on a -050 (or possible y -030) board, you can use my analog-digital Scope as analyzer. But it goes, unmodified, also only up to 1 MHz... |
|
|
|
可以。我已经为这个项目的IR部分压缩了代码,我正在上传它。
我基本上使用代码的曼彻斯特解码部分(从上面链接中提供的代码中获取),但看起来我错过了一个关键部分,使它能够正确地使用索尼协议。 谢谢! Irl接收器 487.4 K 以上来自于百度翻译 以下为原文 Okay. I have zipped up the code for the IR portion of this project and am uploading it. I am basically using the Manchester Decode portion of the code (taken from code provided in the links above), but it appears that I am missing a crucial part to get it to work correctly with the Sony protocol. Thanks!
|
|
|
|
Dana要求廉价的逻辑分析仪,没有广告。
IkLogICStur.COM/ 鲍勃 以上来自于百度翻译 以下为原文 Dana asked for cheap logic analyzers, no ad ikalogicstore.com/ Bob |
|
|
|
好的,我又看了一遍电路和索尼协议。
重述: 一个点从一个上升的侧翼开始(你的接收器是活动的高的,你应该检查),然后在900个s之后启动一个900秒的计时器,你看输入值,并把它作为输出(用DFF),所以这不是真正的曼彻斯特协议(这将是不同的)。租金侧向取决于输入值)。我想你可以移除DFF,用SPI奴隶替换SHIFTFRG。SPI从机可以使用PWM输出信号作为时钟,并在900秒之后直接读取输入信号。 也许将PWM的周期增加到大约100,并使用一个比较值,它在周期结束时创建一个适当的侧翼(从900秒开始)。我认为使用输入信号作为输入时钟将及时读取错误的PIOJNT的输入值。 以上来自于百度翻译 以下为原文 OK, I looked at the circuit, and the Sony IR protocol again. To recap:
Maybe increase the period of the PWM to about 100, and use a compare value which creates a proper flank at the end of the period (starting at 900µs). I think using the input signal as input clock will read the input value just at the wrong piojnt in time. |
|
|
|
只有小组成员才能发言,加入小组>>
740个成员聚集在这个小组
加入小组1981 浏览 1 评论
1744 浏览 1 评论
3521 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1674 浏览 6 评论
1451 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
232浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
137浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
328浏览 2评论
276浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
459浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-27 15:32 , Processed in 1.787173 second(s), Total 99, Slave 83 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号