Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO IR Remote Control Receiver

View and Edit Project In Cirkit DesignerImage of Arduino UNO IR Remote Control Receiver

Circuit Documentation

Summary

This circuit involves an Arduino UNO microcontroller interfaced with a VS1838B IR Receiver. The Arduino UNO is used to read signals from the IR receiver and print the received IR codes to the serial monitor. The circuit is powered by the 5V supply from the Arduino UNO.

Component List

Arduino UNO

HX1838 Infrared IR Wireless Remote Control

VS1838B IR Receiver

Wiring Details

Arduino UNO

HX1838 Infrared IR Wireless Remote Control

VS1838B IR Receiver

Code Documentation

#include <IRremote.h>

const int RECV_PIN = 2; // Pin connected to the IR receiver OUT pin (D2)
IRrecv irrecv(RECV_PIN);
decode_results results;

void setup() {
  Serial.begin(9600); // Initialize serial communication
  irrecv.enableIRIn(); // Start the IR receiver
}

void loop() {
  if (irrecv.decode()) {
    Serial.print("IR Code: ");
    Serial.println(irrecv.decodedIRData.decodedRawData, HEX); // Print the received IR code in HEX
    irrecv.resume(); // Receive the next value
  }
}

Code Explanation

This documentation provides a comprehensive overview of the circuit, including the components used, their wiring, and the code running on the Arduino UNO.