Instruction manuals

Arduino Infrared Remote Tutorial

Description
Arduino Infrared Remote Tutorial
Published
of 7
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Related Documents
Share
Transcript
  http://www.instructables.com/id/Arduino-Infrared-Remote-tutorial/  Food   Living   Outside   Play   Technology   Workshop Arduino Infrared Remote tutorial by astrodan3  on November 4, 2013 Table of Contents Arduino Infrared Remote tutorial ..................................................................................................1 Intro: Arduino Infrared Remote tutorial ...........................................................................................2 Step 1: Assemble Circuit .....................................................................................................2 Step 2: Download IR Library ..................................................................................................3 Step 3: Add Library to sketch ..................................................................................................4 Step 4: Paste Code and compile ...............................................................................................4 Step 5: Open the serial monitor ................................................................................................4 Step 6: Record button codes ..................................................................................................5 Step 7: Works on any remote! .................................................................................................6 Related Instructables ........................................................................................................7 Advertisements ...............................................................................................................7 Comments ................................................................................................................7  http://www.instructables.com/id/Arduino-Infrared-Remote-tutorial/  Author: astrodan3  astrodanI am a full time software engineer and enjoy working on various projects in my spare time, especially Arduino, electronics, 3D printing and woodworking. Intro: Arduino Infrared Remote tutorial It is really easy to control an Arduino using an infrared remote. There is one particular remote that is available from multiple sources and is really quite cheap, they lookand operate in a very similar way.NEOMART Raspberry Pi HX1838 Infrared Remote Control Ir Receiver Module DIY Kit. AmazonKootek Raspberry Pi Infrared Remote Control Ir Receiver Module DIY Kit. AmazonKIT,IR REMOTE,IR RECIVER,ARDUI,COMPATIBLE JamecoThe problem is that documentation seems to be scarce for these particular remotes. Here is how I figured out how to use them. Step 1: Assemble Circuit You will need one Arduino for this. I used a UNO, but just about any Arduino should work. First wire up the infrared receiver that came with your kit. There are 3 wires,PWR, GND, and SIG, I used port 11 for SIG. Note! some readers have reported that their sensor has different wiring, double check it yourself.  http://www.instructables.com/id/Arduino-Infrared-Remote-tutorial/  Step 2: Download IR Library In order to reverse engineer the remote and obtain the codes for each button we are going to need to download and install the following library.https://github.com/shirriff/Arduino-IRremote Extract the file in your libraries directory. e.g. ( C:\electronics\arduino-1.0.5\libraries )note: I had to rename the library because the name was too long, I just renamed it to IR.  http://www.instructables.com/id/Arduino-Infrared-Remote-tutorial/  Step 3: Add Library to sketch With the IR folder ( or whatever you named it) now in your libraries directory, we can import it into a new sketch.Start a new sketch and the Click Sketch->Import Library->IR  . Step 4: Paste Code and compile Paste the following code into the new sketch. Then verify it compiles.#include <IRemote.h> int RECV_PIN = 11;IRrecv irrecv(RECV_PIN);decode_results results;void setup (){  Serial .begin(9600); irrecv.enableIRIn(); // Start the receiver}void loop (){ if (irrecv.decode(&results)) {  Serial .println(results.value, HEX); irrecv.resume(); // Receive the next value }} Step 5: Open the serial monitor Connect the Arduino to your computer using the usb port, then upload the sketch. Open up the Serial Monitor, get the remote and press the buttons. Some hex codesshould appear on the Serial Monitor.
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks