Skip to main content

26. DIY IR Remote and IR Remote controlled LEDs

Hello everyone!

Today I will be teaching you how to make a DIY IR Remote and IR Remote controlled LEDs. For this project, you will be needing both Arduino Uno and Arduino Nano. Before starting this project, make sure that you install the IRremote Library by Ken Shirriff from your Arduino IDE software.
Please visit this website, to learn about IR communication in detail. Refer to the 'Coding' section in this page to understand how to start this project.

Supplies



  • Arduino Uno
  • Arduino Nano
  • Type A/B USB cable (for Arduino Uno)
  • Type A to Mini B USB cable (for Arduino Nano)
  • Solderless Breadboard (x2) - Mini and Full-size
  • IR transmitter module (KY-005)
  • IR receiver module (KY-022)
  • Resistors (x5) - 220Ω
  • Push-buttons (x5)
  • LEDs (x4) - Red, Green, Yellow, and Blue
  • Male-to-Male Jumper wires (x21) - 10cm
  • 3 pin Female-to-Female Jumper Wires (x2) - 70cm
  • Jumpers (x5)

Setup



Your setup must look somewhat similar to this. You can also use a PCB breadboard to make your DIY IR remote.

Connections

IR transmitter module
  • (+) - 3.3V
  • (-) - Ground (GND)
  • S - D3
IR receiver module
  • (+) - This pin has no connectivity with the IR LED
  • (-) - Ground (GND)
  • S - D11
Push button
  • Ground (GND)
  • 01 - D4
  • 02 - D5
  • 03 - D6
  • 04 - D7
  • 05 - D8
I have not connected the push buttons to the 10kΩ resistor. You can learn more about this, here.
LEDs
  • Cathode - Ground (GND)
  • Red - D7
  • Green - D6
  • Yellow - D5
  • Blue - D4

Coding

First of all, assemble your components and they must look similar to the setup in the images from the last section. Go to Examples, open IRRemote Library, and select IRrecvDemo to get decode the IR signals sent by an IR remote and to discover its type of IR transmission protocol. Take out an IR remote, place the IR LED right in front of your IR receiver module to avoid IR noises, and press each button on your remote to see the data send by the IR signals.
Decoding the IR signals and discovering the IR transmission protocol can help us to prepare the sketch for our DIY IR remote. To check whether the connections are correct with your IR transmitter module, go to examples, open IRremote library, and select IRsendDemo. Place your phone camera above the IR LED and upload the code to your Arduino Uno. You should see the IR LED blinking if your connections are correct.
My Midea Fan remote uses NEC IR transmission protocol, and I have used the irsend.sendNEC function in my sketch. Refer to this website to learn more about coding for IR transmitter and receiver modules. 
If you need any help with the coding, please feel free to comment below or send an email to arduinoprojectsbyr@gmail.com, and I will guide you.

Final Look

If you have any quesions, or suggestions, about this project please feel free to comment below or send an email to arduinoprojectsbyr@gmail.com.

Comments

Popular posts from this blog

51. Buzz wire game using Arduino

Hello everyone! This is my first Arduino project in 2020 and it is going to be a fun and simple project. You would have heard of the Buzz Wire, a steady hand game, and today you will be learning to make one using Arduino. Hardware components used in this project Arduino Nano USB Type A to mini B cable (for Arduino Nano) Solderless Breadboard - Mini and Full-size LEDs (x2) - Green and Red Resistors (x2) - 220 Ω  Active Buzzer module (KY-012) LCD display module with I2C interface - 16x2 Male-to-Male Jumper wires (x4) - 10cm Female-to-Male Jumper wires (x5) - 20 cm Jumpers (x5) - to reduce the usage of wires Copper wire  Tape (or any form of insulation)  Setup Your hardware setup must look somewhat similar to the ones in the images above. The beginning and end of the copper wire maze must be taped to prevent conductivity between the wire loop and maze. Connections LCD display module with I2C interface GND - Ground VCC - 5V SDA - A4 SCL - A5

71. Buzz Wire Game ( Version 2.0 ) using Arduino

Hey Everyone! I hope that everyone's safe during this pandemic. Today I am going to explain you about the second version of my Buzz wire game. People who are bored of staying indoors can find this game pretty interesting and fun to play.  If you are a beginner, you can start off with my first version of this project :  51. Buzz wire game using Arduino   Hardware components used in this project Arduino Uno Solderless Breadboard (x2) - Full/ Full+ LCD display module with I2C module - 16x2 Potentiometer - B20K Push-buttons (x3) Resistor - 220 Ω Active Buzzer module (KY-012) LED - Red Copper Wire - 19/ 20 gauge thick Male-to-Male Jumper wires - 10cm and 20cm Wire - Long enough to connect the loop of copper wire to ground Other tools required for this project Cutting pliers - To cut the right amount of copper wire Round-nose pliers - To bend the copper wire and make a maze and loop Hardware setup Connections Wire Maze - D2 Wire loop - Ground (GND) B20K Potentiometer S - A0 (+) - 5V (-)

86. RFID Health tag (Arduino and Python)

 Hey everyone, Sorry I have not uploaded in a while. Today, I will be sharing an interesting project with all of you. This RFID Health tag project is useful when it comes to keeping track of vaccinated individuals, their biodata and their health conditions and medications. For this project, you will be needing Arduino and Python. Read on further to see how I did this project. Hardware components used in this project Arduino Uno Solderless Breadboard - Half+ MRFC522 RFID reader RFID key tags (x5) Push-buttons (x2) Male-to-Male Jumper wires (x12) USB Type A/ B cable (for Arduino Uno) Software required Arduino IDE - latest version recommended Python 3.8 Schematic MFRC522 RFID reader SDA/ SS - D10 SCK - D13 MOSI - D11 MISO - D12 IRQ - Not connected GND - Ground RST/ RESET - D9 3.3V - 3.3V Push-buttons Submit button - D4 Retrieve button - D5 Coding Arduino For this project, you will be using the following libraries: MFRC522 by miguelbalboa -  https://github.com/miguelbalboa/rfid SPI - In-bu