PRD-001733
New product
Available
Warning: Last items in stock!
Availability date:
Step 1: Gather the Required Equipment:
Step 2: Understand the IR Receiver Module:
Step 3: Connect the IR Receiver Module to the Breadboard:
Step 4: Record IR Remote Control Signals:
#include <IRremote.h>
int receiverPin = 2; // Pin number to which the OUT pin of the IR receiver module is connected
IRrecv irrecv(receiverPin); // Create an IRrecv object
decode_results results; // Create a decode_results object to store the decoded IR signals
void setup() {
Serial.begin(9600); // Start serial communication
irrecv.enableIRIn(); // Enable IR reception
}
void loop() {
if (irrecv.decode(&results)) { // If an IR signal is received
Serial.println(results.value, HEX); // Print the HEX value of the received IR signal to the serial monitor
irrecv.resume(); // Resume IR reception
}
}
That's it! You have successfully connected an infrared remote control with an IR receiver to an Arduino and recorded the IR signals. You can now use the decoded IR signals to trigger actions in your Arduino project based on the buttons pressed on the remote control.
Push Tact Switch Measures: 6x6x4mm Quantity: 1...
0,10 €
Product: Bridge Rectifiers Mounting...
0,30 €
DHT22 - AM2302 Accuracy resolution:0.1 Humidity...
6,80 €
DIP switch with 8 individual switch positions....
0,35 €
Solid Cable 4 meters lenght Black Suitable for...
1,50 €
Soldering iron tip C1-1 (ZD-30C, ZD-99,...
1,60 €