当前位置:网站首页>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-工具-串口监视器
用红外遥控器测试
边栏推荐
- Re21: Read the paper MSJudge Legal Judgment Prediction with Multi-Stage Case Representation Learning in the Real
- Re15: Read the paper LEVEN: A Large-Scale Chinese Legal Event Detection Dataset
- 再有人问你分布式事务,把这篇扔给他
- 【云原生】-Docker安装部署分布式数据库 OceanBase
- Easy gene: human tRNA gene loci showed age-related high DNA methylation | research articles
- Multithreading--the usage of threads and thread pools
- (BUG record) No module named PIL
- JCL 学习
- Security思想项目总结
- 死锁的理解
猜你喜欢

多线程保证单个线程开启事务并生效的方案

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

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

鸿湖万联扬帆富设备开发板正式合入OpenHarmony主干

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

梅科尔工作室-看鸿蒙设备开发实战笔记五——驱动子系统开发

vscode中写markdown格式笔记的配置过程和相关语法

Re21:读论文 MSJudge Legal Judgment Prediction with Multi-Stage Case Representation Learning in the Real

Neural Ordinary Differential Equations

PyQt5 - Drawing different types of straight lines
随机推荐
JVM内存布局、类加载机制及垃圾回收机制详解
梅科尔工作室-看鸿蒙设备开发实战笔记五——驱动子系统开发
在机器人行业的专业人士眼里,机器人行业目前的情况如何?
Neural Network Study Notes 4 - Autoencoder (including sparse, stacked) (updated)
[HarmonyOS] [ARK UI] How to double-click the return key to exit in HarmonyOS ets language
Re15: Read the paper LEVEN: A Large-Scale Chinese Legal Event Detection Dataset
系统设计精选 | 基于FPGA的CAN总线控制器的设计(附代码)
Domino服务器SSL证书安装指南
张量篇-初步
MFCC to audio, the effect should not be too funny >V
线程池方式开启线程--submit()和execute()的区别
【 HMS core 】 【 Analytics Kit] [FAQ] how to solve the payment amount in huawei pay analysis shows zero problem?
安全提示:Qt中的FreeType
MFCC转音频,效果不要太逗>V<!
Flask's routing (app.route) detailed
2022年顶会accepted papers list
梅科尔工作室-看鸿蒙设备开发实战笔记六—无线联网开发
(Text) Frameless button settings
Soft test system architects introductory tutorial | system operation and software maintenance
jmeter接口压力测试-(二)