当前位置:网站首页>Raspberry Pi IR Controlled Air Conditioner
Raspberry Pi IR Controlled Air Conditioner
2022-08-05 22:05:00 【a flaming flower】
Foreword
A few days ago, the sky lantern and feeding lamp were connected to the Internet of Things, and now the air conditioner is ready to be connected, so I bought this IR infrared control expansion board for Raspberry Pi, but the seller did not provide technical support. After a few days of tossing, I found sj1It turned out to be disconnected, which caused the infrared emission to be unable to connect. Just give it a soldering iron.
Tutorial
- Raspberry Pi system installation lirc
sudo apt install lirc- Edit the lirc configuration file
vim /etc/lirc/lirc_options.conf
willdriver = devinputdevice = autochange into:driver = defaultdevice = /dev/lirc0- Edit the boot configuration file
vi /boot/config.txt
dtoverlay=gpio-ir,gpio_pin=18dtoverlay=gpio-ir-tx,gpio_pin=17Restart the viewing device, corresponding to the launch tube and the receiver tube: ls /dev|grep lirc
lirc0lirc1- Test
mode2 -d /dev/lirc1
Using driver default on device /dev/lirc1Trying device: /dev/lirc1Using device: /dev/lirc1Warning: Running as root.At this time, find a remote control, press the button, and the output will be no problem- Edit air conditioner configuration file
[email protected]:/etc/lirc/lircd.conf.d vim midea.conf#
begin remotename mideaflags RAW_CODESeps 30aeps 100gap 19991begin raw_codesname open4442 4435 530 1663 530 552530 1664 530 1663 527 555529 553 530 1663 529 553529 553 529 1666 529 559521 554 529 1663 531 1663528 553 530 1669 525 1663530 1662 531 1663 530 1666...name close4442 4435 530 1663 530 552530 1664 530 1663 527 555529 553 530 1663 529 553529 553 529 1666 529 559521 554 529 1663 531 1663528 553 530 1669 525 1663530 1662 531 1663 530 1666...end raw_codesend remoteUse mode2 -d /dev/lirc1 to copy the content of the middle number and press the corresponding key, not a very large number, or use irrecord -d /dev/lirc1 .lircd.confCopy and record automatically, but I have been unsuccessful for a long time
- Restart lirc and use
service lircd restartto testirsend SEND_ONCE midea openThe air conditioner feedback is correct, then copy more buttons
边栏推荐
- 中国石油大学(北京)-《 油气田开发方案设计》第二阶段在线作业
- 【Flask】使用gevent部署flask
- Qt uses wget to download file case
- 60:第五章:开发admin管理服务:13:开发【新增/修改友情链接,接口】的新增功能;(向MongoDB中,新增数据)(操作MongoDB的Dao层接口,得继承MongoRepository接口;)
- 家具行业APS解决方案
- 重新定义分析 - EventBridge 实时事件分析平台发布
- [Flask] Deploy flask using gevent
- ROS2机器人笔记220805-重要备忘录-
- NOIP2012 improvement group congruence equation problem solution
- Shell编程之循环语句与函数
猜你喜欢
随机推荐
Application Prospect and Application Benefit of APS in Printing Industry
【LeetCode】39、组合总和
七夕时如何拯救躁动不安的心
Bucket Sort
Where can I get a secure low-commission account channel
Day11: binary tree -- - > full ~, ~, heap completely
易方达基金上买基金安全吗。可以做短线吗
软件测试概念扫盲
【frp】树莓派使用Frp内网穿透访问
Jelurida参会KBW2022,瑞士公链登陆韩国峰会
Smart Warehouse Manager - WMS
APS Solutions for Furniture Industry
元宇宙互操作性解决虚拟消费的顾虑
docker install postgresql database
box-shadow实现一个按钮
端到端图像编码和VVC的结合
【数据集转换】VOC数据集转COCO数据集·代码实现+操作步骤
JS日期工具类
中国石油大学(北京)-《 油气田开发方案设计》第一阶段在线作业
XSS | 青训营笔记









