Go Down

Topic: IRremote help (Read 1 time) previous topic - next topic

ColeH

Hello,
  I have been trying to use an IR remote i have with my arduino but i have run into a problem.  I am trying to use the IRremote library to figure out what my remote is sending to the arduino.  After putting the IRremote file into my libraries folder, i include the library but then an error comes up when i try to verify.  It says

C:\Program Files (x86)\arduino-1.0.3\libraries\IRremote\IRremote.cpp:271: error: 'volatile struct irparams_t' has no member named 'rawlen'

and basically that over and over but with different file names.  Did i mess up somehow?

Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Quick5pnt0

Did you restart the IDE?

PaulS

User downloaded libraries do NOT go in the core library folder.

ColeH

Here is my code

Code: [Select]
/ example 32.1 - IR receiver code repeater
// http://tronixstuff.com/tutorials > chapter 32
// based on code by Ken Shirriff - http://arcfn.com
#include <IRremote.h> // use the library
int receiver = 11; // pin 1 of IR receiver to Arduino digital pin 11
IRrecv irrecv(receiver); // create instance of 'irrecv'
decode_results results;
void setup()
{
  Serial.begin(9600); // for serial monitor output
  irrecv.enableIRIn(); // Start the receiver
}
void loop()
{
  if (irrecv.decode(&results)) // have we received an IR signal?
  {
    Serial.println(results.value, HEX); // display it on serial monitor in hexadecimal
    irrecv.resume(); // receive the next value
  }  // Your loop can do other things while waiting for an IR command
}



I did restart my IDE but it still does not work.

If user downloaded libraries don't go into the core library folder, then where does it go?

PaulS

Quote
If user downloaded libraries don't go into the core library folder, then where does it go?

In the libraries folder in the folder where sketches are stored.


If user downloaded libraries don't go into the core library folder, then where does it go?


http://arduino.cc/en/Guide/Libraries
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

ColeH

I moved the IRremote library file into Documents\Arduino\libraries and then tried again, but i still get the same error.

PaulS

Quote
I am trying to use the IRremote library

The IRremote library? Which one?

ColeH

I mean the file that I downloaded.

<sigh>

Which file? And don't reply "the one on my computer". What is the link to it?

Did you restart the IDE after moving it?
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

ColeH

I downloaded it from here http://tronixstuff.wordpress.com/2011/03/30/tutorial-arduino-and-infra-red-control/  but almost every other tutorial i found on IRremote control with arduino had a download for the same file.

PaulS

Same code I have. Compiles and links (and works) on Arduino 1.0.3.

ColeH

All i have to do is download the file, unzip it, and put it into documents/arduino/libraries, then open up the IDE right?

The whole folder, yes.

Is this how you have it set up?


Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up