当前位置:网站首页>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-工具-串口监视器
用红外遥控器测试
边栏推荐
猜你喜欢

神经网络学习笔记3——LSTM长短期记忆网络

Re19:读论文 Paragraph-level Rationale Extraction through Regularization: A case study on European Court
![idea2021+Activiti [the most complete note one (basic use)]](/img/60/55cccf257523bed2c8829361cea97c.png)
idea2021+Activiti [the most complete note one (basic use)]

mysql安装教程【安装版】

Re21: Read the paper MSJudge Legal Judgment Prediction with Multi-Stage Case Representation Learning in the Real

【HMS core】【Analytics Kit】【FAQ】如何解决华为分析付费分析中付款金额显示为0的问题?

【云原生】-Docker安装部署分布式数据库 OceanBase

flyway的快速入门教程

GNOME 新功能:安全启动被禁用时警告用户

Nacos configuration in the project of battle
随机推荐
Alibaba Cloud OSS Object Storage
梅科尔工作室-看鸿蒙设备开发实战笔记四——内核开发
Detailed explanation of JVM memory layout, class loading mechanism and garbage collection mechanism
Drag and drop events, dataTransfer, getBoundingClientRect
Verilog之数码管译码
Linux内核设计与实现(十)| 页高速缓存和页回写
论文阅读:SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
Flink_CDC搭建及简单使用
In 2022, the top will be accepted cca shut the list
Determine whether a tree is a complete binary tree - video explanation!!!
Multi-threading scheme to ensure that a single thread opens a transaction and takes effect
阿里云OSS对象存储
Multithreading--the usage of threads and thread pools
GNOME 新功能:安全启动被禁用时警告用户
STM32CubeMX configuration to generate FreeRTOS project
Re15:读论文 LEVEN: A Large-Scale Chinese Legal Event Detection Dataset
Day113. Shangyitong: WeChat login QR code, login callback interface
MySQL |子查询
[Qualcomm][Network] 网络拨号失败和netmgrd服务分析
[Deep Learning] (Problem Record)
- Linear Regression - Small Batch Stochastic Gradient Descent