24.Oct.2022

In this application, we will flash three LEDs with an IR control. We will use the Infrared Sensor VS1838 receiver module as the IR receiver.
Youtube Channel:

First of all, we need to add the “IRremote.h” library in the Arduino IDE code screen. As seen in the codes below, we do this with the "#include <IRremote.h>" line.

We connect the signal pin of the sensor module to pin 2 of our UNO card.

Each of the keys on the IR remote has a 16-digit equivalent. In the codes below, the equivalents of the keys 1, 2 and 3 in the 16-number system are seen.

As the keys are pressed, we detect which key was pressed with the help of the “if” command and turn on the relevant led. Again, we use the "digitalWrite" command to light the LEDs.

Codes:

#include <IRremote.h>
const int RECV_PIN=2;
IRrecv irrecv(RECV_PIN);
decode_results results;
 
//botton KEY codes<--------------------------------*****************
long b1=0xFF6897;    //   1
long b2=0xFF9867;   //   2
long b3=0xFFB04F;   //   3
// long b4=0xFF30CF;   //   4
 
void setup(){
pinMode(RECV_PIN, INPUT);
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
 
  pinMode(13, OUTPUT);
  pinMode(12, OUTPUT);
  pinMode(11, OUTPUT);
 
}
void loop(){
if (irrecv.decode(&results)){
  Serial.println(results.value, HEX);
  irrecv.resume(); // Receive the next value
 
  if (results.value==b1 ) {digitalWrite(13,HIGH); delay(500);digitalWrite(13,LOW);}
  if (results.value==b2 ) {digitalWrite(12,HIGH); delay(500);digitalWrite(12,LOW);}
  if (results.value==b3 ) {digitalWrite(11,HIGH); delay(500);digitalWrite(11,LOW);}
 
}}

 

 

İlgili Haberler

DIY FM Radio Kit - RDA5807 Electronic Module

RDA5807, DIY FM Radio Kit, Electronics Kit, FM Radio Receiver, 87-108MHZ for soldering application

15.10.2023

FG-100 DDS Function Signal Generator: The Ideal Electronic Experiment and Debugging Tool

FG-100: Excellent signal generator for electronic experiments. Sine, square, triangular waves and more. High precision, portability

02.11.2023

ADC0831: Converting Analog Signals to Digital

ADC0831: A critical A/D converter used to convert analog signals to digital. High resolution and application areas  

03.11.2023

Powerful Audio Amplifier for Electronic Labs: TDA7297 DIY Kit

TDA7297 DIY audio amplifier for electronics laboratories: Offers high performance, low noise levels and soldering practice

05.11.2023

6 Steps DIY Clock Kit - Auto Imaging and Soldering Practice Kit

6 Steps DIY Clock Kit - Automatic Display with High Quality Integrated Circuits. DIY Alarm Clock Soldering Practice Kit Ideal for Students and DIYers

17.11.2023

Operational Amplifier (OP AMP) Tester

Operational Amplifier (OP AMP) Tester is the critical tool of electronics laboratories. Quickly and reliably evaluates the accuracy of integrated circuits, diagnoses problems and detects counterfeit chips

17.03.2024

Measurement of Sine, Triangle Wave Signals with DSO-TC3

We examine how to measure different signals with the DSO-TC3 oscilloscope

30.06.2023

Transistor, Diode, Capacitor and Resistor Measurement with DSO-TC3

Measurement operations with DSO-TC3: many measurements can be made with this device. Such as transistor, diode, capacitor, resistor, coil.

30.06.2023

Mixer/Amplifier Circuit with JFET

In the article about JFET and mixer concepts, what JFET is, the function of the mixer and a mixer made with a JFET circuit are discussed in detail.

21.03.2024

Falstad Circuit Simulator: Still the Best Free Circuit Simulator in 2025

Build circuits instantly with Falstad, watch current flow in real time, and use a built-in oscilloscope.

24.11.2025

0-30V 2mA-3A Adjustable DC Power Supply- DIY

DIY power supply product specially designed for electronics enthusiasts! Perform your electronic experiments safely with 0-30V continuously adjustable output voltage and output limiting current that can vary between 2mA-3A. This compact power source for soldering work is ideal for beginners and students

05.08.2023

How to make an audio mixer with LM741?

This article discusses the audio mixer design and operating principle based on the use of the LM741 operational amplifier (op-amp) IC. The features of the LM741 and the step-by-step creation of the audio mixer circuit are examined, while explaining how audio mixers work.

08.08.2023

Using and Applications of 74HC4067 Analog Multiplexer/Demultiplexer Integration with Arduino Nano

Discover the use and applications of the 74HC4067 analog multiplexer/demultiplexer IC with Arduino Nano.

16.08.2023

ZOYI ZT-702S 2-in-1 Digital Oscilloscope and Multimeter

ZOYI ZT-702S: Professional 2-in-1 Oscilloscope and Multimeter. 10MHz band, 48MSa/s sampling. Powerful, compact and precise measurements.

18.08.2023

Lighting a single led with Arduino

Experiment to light a single led with Arduino UNO

23.10.2022

Two Led Application with Arduino

Two led application with Arduino experiment

23.10.2022

Flash LEDs with Arduino

Flash LEDs with Arduino project

23.10.2022

Floating Lights with Arduino

Floating Lights with Arduino experiment

24.10.2022

Buzzer Application with Arduino

Buzzer Application with Arduino, notes experiment

24.10.2022

Analog Signal Input Application

Analog Signal Input Application experiment

24.10.2022

Microphone, Vu meter App

Microphone, Vu meter App experiment

24.10.2022

Ultra Sonic Application

Ultra Sonic Application

24.10.2022

Illuminance Sensor with LDR

Illuminance sensor with LDR project

25.10.2022

Electronic Circuit with NTC- Temperature Sensor

Electronic circuit with NTC- Temperature sensor experiment

26.10.2022

Using NTC with Arduino

Using NTC with Arduino experiment

27.10.2022

220 Volt Lamp Control with Arduino

220 Volt Lamp Control with Arduino project

28.10.2022

Logic Gates with Transistors – NOT Gate, AND Gate, OR Gate

Logic Gates , NOT Gate, AND Gate, OR Gate exprerimet

31.10.2022

Single Transistor FM Transmitter Circuit

Single Transistor FM Transmitter Circuit experiment

02.11.2022

Basic application with 433 MHz Receiver and Transmitter Modules

433 MHz Receiver and Transmitter

03.11.2022

Using as Web Server with ESP 12F WiFi Module

Learn how to create a web server with the ESP 12F WiFi module.

01.09.2023

How to Make a Metal Detector?

Make a Metal Detector

04.11.2022

7 Segment Led Display Application

7 Segment Led Display Application experiment

06.11.2022

4 Digit 7 Segment Led Display Application

4 Digit 7 Segment Led Display Application

09.11.2022

How to make a voltmeter?

How to make a voltmeter

09.11.2022

Measuring Resistance with Microcontrollers

Measuring Resistance with Microcontrollers Details

14.11.2022

Function Signal Generator Operation

Function Signal generator operation Assembly and test application

15.11.2022

ESP12F Wi-Fi Module Soldering for IoT Studies

ESP12F wi-fi module for IoT studies

17.11.2022

AT Commands for Wi-Fi Module

AT Commands for Wi-Fi Module Experiment

18.11.2022

LM2587 4-V - 40-V, 5-A Expansion Wide VIN Flyback Regulator Review

DC-DC Convertor with LM2587

21.11.2022

How to make an electronic metronome?

Metronome Circuit with NE555

22.11.2022

5 Volt 300 mA Power Supply

5 Volt 300 mA Power Supply experiment

23.11.2022

Water Level Indicator Electronic Circuit

Water Level Indicator Electronic Circuit with NPN Transistors

24.11.2022

Making a Signal Generator with LM555

Making a Signal Generator

25.11.2022

Using PCD8544 5110 CMOS 48x84 LCD

Using PCD8544 5110 CMOS 48x84 LCD Review

26.11.2022

How to make a precision Signal Generator?

Making a Signal generator with ICL8038

29.11.2022

DC Motor Speed ​​control with Signal Generator

DC Motor Speed ​​control experiment

30.11.2022

Counter Application with 74HC393(Application video)

Counter Application with 74HC393 - Video tutorial

01.12.2022

Handheld Digital Oscilloscope 2.4-inch TFT LCD Display

Handheld DSO138mini Oscilloscope: Compact, high resolution DIY kit for electronic learning.

07.09.2023

8 Bit Serial to Parallel Converter Test Circuit - 74HC595

8 Bit Serial to Parallel Converter Test Circuit experiment

02.12.2022

How is the Frequency Divided?

Frequency divider experiment

03.12.2022

Parallel to Serial Converter with 74HC165 - Shift Register Application

Shift Register Application

06.12.2022

Analog Digital Converter ADC00808

Analog Digital Converter ADC00808 Experiment

07.12.2022

Thermal Imaging with Arduino Uno: Measuring Temperature Distribution with AMG8833 Sensor

Measure temperature distribution using AMG8833 sensor with Arduino Uno. AMG8833 whitepaper

16.09.2023