当前位置:网站首页>ESP32CAM 1838接收红外遥控器信号
ESP32CAM 1838接收红外遥控器信号
2022-07-30 10:15:00 【qq179395714】
Arduino 1.8.20
IRremote 3.7.1
1838T红外接收头
安装IRremote
Arduino-工具-管理库-搜索IRremote-安装IRremote
ESP32 CAM引脚与1838T引脚接线
| ESP32 CAM | 1838T |
| 5V | VCC |
| GND | GND |
| IO14 | D0 |
1838T模块

#include <IRremote.hpp>
#define IR_RECEIVE_PIN 14 // IO14
void setup() {
// put your setup code here, to run once:
Serial.begin(115200); //串口初始化
//启动接收器
IrReceiver.begin(IR_RECEIVE_PIN, ENABLE_LED_FEEDBACK);
Serial.print(F("准备接收协议的红外信号: "));
printActiveIRProtocols(&Serial);
Serial.println(F("Enabling IRin..."));
}
void loop() {
// put your main code here, to run repeatedly:
if(IrReceiver.decode())
{
IrReceiver.printIRResultShort(&Serial);
IrReceiver.resume();
}
}上传后打开串口监视器
Arduino-工具-串口监视器
用红外遥控器测试
边栏推荐
- Meikle Studio-Look at the actual combat notes of Hongmeng device development six-wireless networking development
- Re21:读论文 MSJudge Legal Judgment Prediction with Multi-Stage Case Representation Learning in the Real
- Js array operating mobile for encapsulation
- 拖放事件,dataTransfer,getBoundingClientRect
- 【HarmonyOS】【ARK UI】HarmonyOS ets语言怎么实现双击返回键退出
- Redis Desktop Manager 2022.4.2 released
- WARN: Establishing SSL connection without server's identity verification is not recommended when connecting to mysql
- Flask's routing (app.route) detailed
- 第1章 Kali与靶机系统
- 线上靶机prompt.ml
猜你喜欢

Redis Desktop Manager 2022.4.2 发布

The thread pool method opens the thread -- the difference between submit() and execute()

易基因:人类tRNA基因位点表现出与衰老相关的DNA高甲基化|研究文章

(Text) Frameless button settings

SST-Calib:结合语义和VO进行时空同步校准的lidar-visual外参标定方法(ITSC 2022)

Nacos configuration in the project of battle

第1章 Kali与靶机系统

Multi-threading scheme to ensure that a single thread opens a transaction and takes effect

张量篇-初步

Selected System Design | Design of CAN Bus Controller Based on FPGA (with Code)
随机推荐
通过构建一个顺序表——教你计算时间复杂度和空间复杂度(含递归)
Some commands of kubernetes
自适应控制——仿真实验一 用李雅普诺夫稳定性理论设计自适应规律
(Text) Frameless button settings
分页 paging
GNOME 新功能:安全启动被禁用时警告用户
【HMS core】【FAQ】HMS Toolkit典型问题合集1
Understanding of deadlock
关于verilog的时延研究
OC-ARC(Automatic Reference Counting)自动引用计数
易基因:人类tRNA基因位点表现出与衰老相关的DNA高甲基化|研究文章
线上靶机prompt.ml
what is this method called
ospf2 two-point two-way republish (question 2)
Database dirty reads, non-repeatable reads, phantom reads and corresponding isolation levels
这种叫什么手法
Multithreading--the usage of threads and thread pools
安全提示:Qt中的FreeType
paging
Basemap and Seaborn