Call Us Now
0242159130 | 0546096840
Up to 2% reward

For new all Customers

Delevery schedule

We deliver  the same day through VIP bus parcel Service in Ghana

Discount on order gift

Save ¢10.00 when you spend ¢600+! 

IR Remote Controller

IR Remote Controller

In this tutorial, we will learn howto use an IR receiver toreceive signals from a remote controller. 

Hardware required
1 * Arduino UNO
1 * USB Cable 
1 * IR Receiver HX1838 
1 * Remote Controller 
1* Breadboard
Several jumper wires 

Principle of operation
The IR receiver HX1838 can receive signals from an infrared (IR) remote controller. It has only three pins: signal, VCC and GND. So it is simple to connect with an Arduino board.
In this experiment, we program the Arduino board to receive the infrared signals, and then send the received data to Serial Monitor. In the program, we use the Arduino-IRremote-master library (provided).
Before using this library, you have to delete the RobotIRremote directory in your Arduino IDE directory (check in IDE by File->Preferences, and see the path in the Browse dialog box), and delete the RobotIRremote directory in the system Documents folder. For example, if your computer is running on Windows 7, you need to delete the RobotIRremote directory in
C:\ P r o g r a m F il e s ( x 8 6 ) \ A r d ui n o \ li b r a ri e s


C: \ U s e r s \ S J G \ D o c u m e n t s \ A r d ui n o \ li b r a ri e s .
Otherwise, when you compile the program, errors will be prompted 

Experiment code

//File name:   Experiment 17


Description:When you click the button on the remote control,

             you can see the serial montiol data.




//Author: Okudzeto osei prince

//Date: 2019/08/18

#include <IRremote.h>

int RECV_PIN = 7;//The definition of the infrared receiver pin 7

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()


  Serial.begin(9600); //Open serial 

  irrecv.enableIRIn(); // Initialization infrared receiver

void loop() 


  if (irrecv.decode(&results)) {

    Serial.println(results.value, HEX);//Wrap output in hex receive code

    Serial.println();//For ease of viewing the output to add a blank line

    irrecv.resume(); //Receiving the next value



Compile the program and upload to Arduino UNO board Now, press a button on the remote controller, and you will see the button number displayed on Serial Monitor.

Add Comment