当前位置:网站首页>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-工具-串口监视器
用红外遥控器测试
边栏推荐
- Security tip: FreeType in Qt
- Basemap和Seaborn
- 这种叫什么手法
- 【HMS core】【Analytics Kit】【FAQ】如何解决华为分析付费分析中付款金额显示为0的问题?
- [AGC] Growth Service 2 - In-App Message Example
- 从数据流中快速查找中位数
- (C语言)文件操作
- New in GNOME: Warn users when Secure Boot is disabled
- Always remember: one day you will emerge from the chrysalis
- 易基因:人类tRNA基因位点表现出与衰老相关的DNA高甲基化|研究文章
猜你喜欢

死锁的理解

【C和指针第七章】可变参数列表

阿里云OSS对象存储

PyQt5 - draw sine curve with pixels

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

Quick Start Tutorial for flyway
![[Qualcomm][Network] 网络拨号失败和netmgrd服务分析](/img/76/49054ff8c7215eca98cc479ab1d986.png)
[Qualcomm][Network] 网络拨号失败和netmgrd服务分析

神经网络学习笔记4——自动编码器(含稀疏,堆叠)(更新中)

Paper reading: SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers

Verilog之数码管译码
随机推荐
The method of parameter passing
360发布面向未来的EDR,全方位守护政企用户终端安全
(C语言)文件操作
BERT pre-training model series summary
Quick Start Tutorial for flyway
SST-Calib:结合语义和VO进行时空同步校准的lidar-visual外参标定方法(ITSC 2022)
Online target drone prompt.ml
OC-ARC (Automatic Reference Counting) automatic reference counting
The configuration process and related syntax of writing markdown format notes in vscode
Adaptive Control - Simulation Experiment 1 Designing Adaptive Laws Using Lyapunov's Stability Theory
唯物辩证法-条件论
【HMS core】【FAQ】HMS Toolkit典型问题合集1
Soft Exam System Architect Concise Tutorial | Case Analysis | Requirement Analysis
flowable工作流所有业务概念
Meikle Studio-Look at the actual combat notes of Hongmeng device development six-wireless networking development
idea2021+Activiti [the most complete note one (basic use)]
spark udf 接受并处理 null值.
【HMS core】【FAQ】HMS Toolkit Typical Questions Collection 1
jmeter接口压力测试-(二)
2022年顶会accepted papers list