博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
红外遥控资料
阅读量:5748 次
发布时间:2019-06-18

本文共 4578 字,大约阅读时间需要 15 分钟。

hot3.png

一、相关网址:

二、区分PPM与PWM:

逻辑0,高低之比都是:1;

逻辑1,高低之比是:ppm是0.33或3,pwm是0.5或2。

三、物理连线图:

标-号的连接PIN9号,接地

标S的表示信号,连接GPIO18(PIN12)

中间的是3.3V,连接PIN(1号)

连接后,指示灯不亮或微亮,按下遥控器,闪烁。

四、确定是ppm还是pwm:

采集连续为1或0的个数记入数组,然后用奇数的元素比上偶数的元素,发现大部分数据是0.9和0.33左右,因此判断为PPM。

b=[2069, 1048, 134, 145, 131, 142, 135, 140, 130, 143, 131, 147, 132, 143, 131, 142, 134, 144, 132, 394, 133, 391, 132, 392, 133, 399, 134, 394, 130, 397, 129, 396, 132, 396, 134, 396, 135, 144, 133, 396, 132, 143, 126, 143, 134, 144, 133, 392, 132, 144, 131, 147, 132, 395, 134, 145, 131, 392, 130, 395, 132, 397, 133, 141, 132, 393, 132, 9057, 2086, 520, 132, 364955, 2083, 1030, 133, 140, 131, 144, 130, 145, 133, 144, 132, 144, 131, 147, 132, 138, 132, 141, 133, 393, 131, 397, 132, 395, 132, 391, 135, 397, 129, 392, 129, 399, 124, 394, 133, 139, 132, 395, 129, 397, 132, 144, 132, 144, 134, 144, 131, 391, 129, 147, 132, 397, 132, 141, 135, 144, 132, 391, 134, 397, 123, 398, 129, 145, 134, 399, 134, 9047, 2099, 523, 131, 21994, 2094, 525, 133, 237330, 2097, 1044, 135, 143, 131, 140, 134, 144, 130, 143, 132, 146, 132, 143, 130, 144, 135, 144, 132, 394, 133, 393, 132, 394, 134, 398, 134, 391, 133, 396, 128, 398, 133, 389, 135, 394, 133, 397, 132, 392, 132, 142, 131, 143, 135, 143, 132, 393, 132, 142, 133, 144, 129, 145, 134, 140, 131, 394, 130, 396, 131, 397, 132, 144, 133, 390, 131, 9042, 2094, 527, 132, 228870, 2078, 1036, 133, 143, 131, 147, 128, 141, 131, 143, 135, 144, 131, 145, 127, 146, 132, 143, 132, 395, 135, 393, 135, 393, 133, 398, 132, 394, 132, 398, 135, 390, 128, 396, 132, 142, 132, 144, 134, 399, 135, 144, 132, 138, 132, 146, 132, 397, 132, 145, 131, 395, 132, 393, 134, 143, 131, 391, 131, 399, 135, 396, 132, 147, 131, 398, 132, 9052, 2099, 526, 134, 22017, 2091, 525, 128, 154496, 2085, 1049, 132, 143, 129, 144, 130, 148, 130, 141, 132, 143, 134, 145, 128, 142, 131, 146, 132, 397, 129, 396, 135, 397, 131, 395, 133, 386, 131, 391, 136, 391, 133, 395, 132, 147, 132, 143, 132, 144, 134, 144, 131, 140, 134, 144, 133, 398, 131, 144, 132, 395, 132, 393, 132, 391, 133, 397, 133, 387, 133, 398, 134, 144, 133, 393, 132, 9080, 2095, 520, 135, 21996, 2097, 528, 127, 239219, 2079, 1034, 130, 141, 134, 144, 131, 141, 134, 142, 132, 145, 133, 143, 131, 147, 132, 144, 132, 392, 132, 393, 129, 397, 132, 394, 135, 393, 134, 395, 133, 394, 131, 395, 133, 396, 135, 396, 131, 147, 132, 142, 129, 147, 130, 145, 131, 395, 132, 141, 133, 145, 133, 142, 132, 390, 132, 394, 132, 395, 132, 397, 131, 144, 131, 395, 131, 9027, 2097, 517, 132, 21273, 2100, 524, 135, 206651, 2066, 1051, 140, 137, 131, 139, 131, 146, 132, 143, 132, 143, 134, 145, 131, 141, 133, 140, 140, 390, 139, 384, 139, 392, 135, 397, 130, 397, 133, 391, 135, 392, 142, 389, 134, 396, 138, 391, 139, 386, 135, 143, 131, 145, 132, 146, 132, 143, 132, 146, 132, 142, 132, 144, 143, 136, 139, 385, 138, 392, 138, 389, 141, 391, 139, 383, 133, 9057, 2084, 531, 136, 145742]b1=b[::2]b2=b[1::2]c1=[ round(item[0]/item[1],2) for item in zip(b1,b2)]print(c1)[1.97, 0.92, 0.92, 0.96, 0.91, 0.89, 0.92, 0.92, 0.93, 0.34, 0.34, 0.34, 0.33, 0.34, 0.33, 0.33, 0.33, 0.34, 0.94, 0.34, 0.92, 0.88, 0.93, 0.34, 0.92, 0.89, 0.33, 0.92, 0.33, 0.33, 0.33, 0.94, 0.34, 0.01, 4.01, 0.0, 2.02, 0.95, 0.91, 0.9, 0.92, 0.92, 0.89, 0.96, 0.94, 0.34, 0.33, 0.33, 0.34, 0.34, 0.33, 0.32, 0.31, 0.96, 0.33, 0.32, 0.92, 0.92, 0.93, 0.34, 0.88, 0.33, 0.94, 0.94, 0.34, 0.34, 0.31, 0.89, 0.34, 0.01, 4.01, 0.01, 3.99, 0.0, 2.01, 0.94, 0.94, 0.93, 0.91, 0.9, 0.92, 0.9, 0.94, 0.34, 0.34, 0.34, 0.34, 0.34, 0.34, 0.32, 0.34, 0.34, 0.34, 0.34, 0.93, 0.92, 0.94, 0.34, 0.93, 0.92, 0.89, 0.96, 0.33, 0.33, 0.33, 0.92, 0.34, 0.01, 3.97, 0.0, 2.01, 0.93, 0.89, 0.91, 0.92, 0.94, 0.9, 0.87, 0.92, 0.33, 0.34, 0.34, 0.33, 0.34, 0.33, 0.35, 0.32, 0.93, 0.92, 0.34, 0.94, 0.96, 0.9, 0.33, 0.91, 0.33, 0.34, 0.94, 0.34, 0.33, 0.34, 0.9, 0.33, 0.01, 3.99, 0.01, 3.98, 0.0, 1.99, 0.92, 0.9, 0.88, 0.92, 0.92, 0.92, 0.9, 0.9, 0.33, 0.33, 0.34, 0.33, 0.34, 0.34, 0.35, 0.34, 0.9, 0.92, 0.92, 0.93, 0.94, 0.93, 0.33, 0.91, 0.33, 0.34, 0.34, 0.34, 0.34, 0.33, 0.93, 0.34, 0.01, 4.03, 0.01, 3.97, 0.0, 2.01, 0.92, 0.93, 0.93, 0.94, 0.91, 0.93, 0.89, 0.92, 0.34, 0.34, 0.32, 0.34, 0.34, 0.34, 0.34, 0.33, 0.34, 0.34, 0.89, 0.93, 0.88, 0.9, 0.33, 0.94, 0.92, 0.94, 0.34, 0.34, 0.33, 0.33, 0.91, 0.33, 0.01, 4.06, 0.01, 4.01, 0.0, 1.97, 1.02, 0.94, 0.9, 0.92, 0.92, 0.92, 0.93, 0.95, 0.36, 0.36, 0.35, 0.34, 0.33, 0.34, 0.34, 0.37, 0.34, 0.35, 0.36, 0.94, 0.9, 0.9, 0.92, 0.9, 0.93, 0.92, 1.05, 0.36, 0.35, 0.35, 0.36, 0.36, 0.01, 3.92, 0.0]>

五、记录键值:

 

 

 

 

 

 

 

 

转载于:https://my.oschina.net/mengyoufengyu/blog/2966992

你可能感兴趣的文章
磨刀不误砍柴 - 配置适合工作学习的桌面环境
查看>>
自己动手写docker-3
查看>>
Java笔记-反射机制(一)
查看>>
OpenCV在Android中的集成与简单使用
查看>>
redux v3.7.2源码解读与学习之 applyMiddleware
查看>>
【React】为什么我不再使用setState?
查看>>
Git原理与高级使用(3)
查看>>
从JDK源码看Writer
查看>>
Express 结合 Webpack 实现HMRwi
查看>>
listen源码分析第一篇 address:port分析
查看>>
SQL模糊查询通配符_和%处理
查看>>
ssl免费申请
查看>>
我的友情链接
查看>>
mysql优化的相关知识
查看>>
基于protobuf的RPC实现
查看>>
ehcache 常用参数
查看>>
坚信每个人都能成为品牌
查看>>
Java语言的基础知识3
查看>>
JAVA的对象复制
查看>>
jquery要怎么写才能速度最快?(转)
查看>>