EasyManuals Logo

SunFounder ESP32 User Manual

Default Icon
771 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #111 background imageLoading...
Page #111 background image
SunFounder ESP32 Starter Kit
Code
Note:
Open the 5.14_ir_receiver.ino file under the path of esp32-starter-kit-main\c\codes\5.
14_ir_receiver.
After selecting the board (ESP32 Dev Module) and the appropriate port, click the Upload button.
Always displaying “Unknown COMxx”?
The IRremoteESP8266 library is used here, you can install it from the Library Manager.
After the code is uploaded successfully, press the different keys on the remote control and you will see the names of
these keys appear in the serial monitor.
Note:
The IRremoteESP8266 library includes implementations for many different infrared protocols and devices, so
the size of the library is relatively large. When the compiler has to process more code, the compilation time will
also increase accordingly. Please be patient and wait for the compilation to finish.
The new remote control features a plastic tab at the end to insulate the battery inside. To power up the remote
when using it, simply remove this plastic piece.
How it works?
1. This code uses the IRremoteESP8266 library to receive infrared (IR) signals using an IR receiver module.
#include <IRremoteESP8266.h>
#include <IRrecv.h>
// Define the IR receiver pin
const uint16_t IR_RECEIVE_PIN = 14;
// Create an IRrecv object
(continues on next page)
1.30. 5.14 IR Receiver 105

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the SunFounder ESP32 and is the answer not in the manual?

SunFounder ESP32 Specifications

General IconGeneral
BrandSunFounder
ModelESP32
CategoryController
LanguageEnglish