Scruffy initial notes. It DOES work!
https://learn.sparkfun.com/tutorials/ir-control-kit-hookup-guide
https://github.com/z3t0/Arduino-IRremote
From that (copy d/l'd 11 Aug 15, ...
Everything unzipped into a folder called IRRemoteShirriff. (Discarded the wrapper which was part of the zip, i.e. the Arduino-IRremote-master folder.
This with Arduino 1.0.6
That installed into Arduino Development Environment, using Sketch/ Import Library/ Add Library
Before this will run properly, you may have to deal with the "TKD2" error. Try compiling something. If you don't see a TKD2 error, don't worry. If you do, see....
http://sheepdogguides.com/arduino/ar3ne1ir.htm
(The TKD2 error is nothing to do with me, TKB)
C:\Program Files\Arduino\libraries
"Good" number, followed by gibberish, if button on controller held down. "Number": sequence of characters from range 0...9, A...F, e.g. 1CB9C was the "number" (it IS a number, if you understand hex notation) I received from a Sony music system controller, when I pressed the "stop" button
The code....
/* IR_Control_Receive NoviceGuard / NovGrdCore version of IRRecvDemo Derived, with very little changing, from.... * IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv * An IR detector/demodulator must be connected to the input RECV_PIN. * Version 0.1 July, 2009 * Copyright 2009 Ken Shirriff * http://arcfn.com */ #include <IRremote.h> #include <NovGrdCore.h> //this new for NoviceGuard Version int RECV_PIN = inPUL;//"11" changed to inPUL for NoviceGuard version, // which means you need to plug receiver module into the Upper Left //hand daughter board position, aka pin 2 of the Arduino. //If you encounter the "TKD2" error (nothing to do with me, TKB!!), see... //http://sheepdogguides.com/arduino/ar3ne1ir.htm //Nothing else was changed. Compile and upload. //Start the serial monitor... // http://sheepdogguides.com/arduino/aht1serimoni.htm // //Point an ordinary domestic remote control at your receiver, // press a button, and you should see a number appear // on the serial monitor. (What number you see will be // consistent for that make/ model of control, but, say // the "raise volume" command, as a number, varies from // controller to controller. IRrecv irrecv(RECV_PIN); decode_results results; void setup() { Serial.begin(9600); Serial.println("IR_Control_Receive, vers 11 Aug 15"); Serial.println("From http://rugguino.com/Modules.htm"); irrecv.enableIRIn(); // Start the receiver } void loop() { if (irrecv.decode(&results)) { Serial.println(results.value, HEX); irrecv.resume(); // Receive the next value } delay(100); }
That's it for now! Let me know if you want me to tidy this!
Page has been tested for compliance with INDUSTRY (not MS-only) standards, using the free, publicly accessible validator at validator.w3.org. Mostly passes, just a few "No attribute" issues, arising from Google code.
....... P a g e . . . E n d s .....