当前位置:网站首页>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-工具-串口监视器
用红外遥控器测试
边栏推荐
- Adaptive Control - Simulation Experiment 1 Designing Adaptive Laws Using Lyapunov's Stability Theory
- Neural Network Study Notes 3 - LSTM Long Short-Term Memory Network
- 【HMS core】【FAQ】HMS Toolkit Typical Questions Collection 1
- New in GNOME: Warn users when Secure Boot is disabled
- 【 HMS core 】 【 Analytics Kit] [FAQ] how to solve the payment amount in huawei pay analysis shows zero problem?
- Re21: Read the paper MSJudge Legal Judgment Prediction with Multi-Stage Case Representation Learning in the Real
- Re19: Read the paper Paragraph-level Rationale Extraction through Regularization: A case study on European Court
- Meikle Studio-Look at the actual combat notes of Hongmeng device development six-wireless networking development
- Scrapy crawler website image crawling
- spark udf 接受并处理 null值.
猜你喜欢
![[Qualcomm][Network] 网络拨号失败和netmgrd服务分析](/img/76/49054ff8c7215eca98cc479ab1d986.png)
[Qualcomm][Network] 网络拨号失败和netmgrd服务分析

Re16:读论文 ILDC for CJPE: Indian Legal Documents Corpus for Court Judgment Prediction and Explanation

线程池方式开启线程--submit()和execute()的区别

Re19:读论文 Paragraph-level Rationale Extraction through Regularization: A case study on European Court

BERT预训练模型系列总结

4. yolov5-6.0 ERROR: AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor' solution

Practical Walkthrough | Calculate Daily Average Date or Time Interval in MySQL

第2章 常用安全工具

唯物辩证法-条件论

ospf2 two-point two-way republish (question 2)
随机推荐
The method of parameter passing
kubernetes的一些命令
多线程--线程和线程池的用法
In the robot industry professionals, Mr Robot industry current situation?
vscode中写markdown格式笔记的配置过程和相关语法
idea2021+Activiti [the most complete note one (basic use)]
Redis Desktop Manager 2022.4.2 发布
WARN: Establishing SSL connection without server's identity verification is not recommended when connecting to mysql
Flink_CDC搭建及简单使用
JCL 学习
Scrapy爬虫之网站图片爬取
flowable工作流所有业务概念
梅科尔工作室-看鸿蒙设备开发实战笔记六—无线联网开发
Alibaba Cloud OSS Object Storage
Flask之路由(app.route)详解
New in GNOME: Warn users when Secure Boot is disabled
2022年顶会accepted papers list
Flask's routing (app.route) detailed
[Deep Learning] (Problem Record)
- Linear Regression - Small Batch Stochastic Gradient Descent 类和对象—6个默认成员函数