WHere can i get the library to download for my IR receiver to use my remote.
Ken Shirriff's IRremote is here.
Ok, i finished downloading the library and its in my sketch. But it gives me the error below when i try to run it.
In file included from C:\Users\Thomas\Documents\Arduino\libraries\IRremote\IRremote.cpp:13:
C:\Users\Thomas\Documents\Arduino\libraries\IRremote/IRremoteInt.h:87: error: 'uint8_t' does not name a type
Depending on where a library is installed you need a or "libraryname" for the Arduino install folder or your sketchbook. I can never remember which is which but you might have the wrong syntax and it's not seeing your library?
I have everything downloaded in my arduino library which is located when you go to, file-Sketchbook-libraries-then i have my IRremote.
Are you talking about that?
Yeah... so check the line in your sketch where the library is called: change the <> to "" or vice versa and see if that works.
(I can't remember which of <> or "" is for which location, so try the one you don't have 8) )
It shows me the same errors..
See if this compiles: I just double-checked and it compiles for me right now. (But I'm at work so can't actually test on Arduino.... it worked a couple of years back though
)
It's one of Ken's sketches with a mod by me to adjust an LED with tv remote.
/*
* 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
*/
/* well now it controls the brightness of an LED
LED is PWM'd on pin5
******* PWM on pin3 seems disabled when using IR?
uses the volume key... up to brighten, down to dim
under rc5, the keys have two toggled values
down: 411 or c11 hex; 1041 or 3089 dec
up: 410 or c10 hex; 1040 or 3088 dec
*/
#include <IRremote.h>
int RECV_PIN = 11;
int led_pin = 5; // seems PWM not work on 3 with IR library
int led_bright = 130; //half way to start
int led_step = 10; // and change in pwm steps of 10
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
pinMode(led_pin, OUTPUT);
analogWrite(led_pin, led_bright);
}
void loop() {
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
//now check if it's correct key and act...
//down
if (results.value == 1041 || results.value == 3089) {
led_bright = led_bright - led_step;
if (led_bright < 10) {
led_bright = 10;
}
Serial.print("Going down to ");
Serial.println(led_bright);
analogWrite(led_pin, led_bright);
}
//up
if (results.value == 1040 || results.value == 3088) {
led_bright = led_bright + led_step;
if (led_bright > 255) {
led_bright = 255;
}
Serial.print("Going up to ");
Serial.println(led_bright);
analogWrite(led_pin, led_bright);
}
}
}
EDIT.... ps, my library is here: C:\Users\user\Documents\Arduino\libraries
Still not compiling...![]()
Check if i have all the files i need in the library.
I have attached every file i had in my IRremot.
IRremote.cpp (31 KB)
IRremote.h (4.11 KB)
keywords.txt (1000 Bytes)
LICENSE.txt (23.8 KB)
Mine has IRremoteInt as well, which would explain your problem I guess.

Nope that didn't solve it also. So i suppose to load my library with the IRremote.h file. Then open new sketch and copy paste what you sent me and run it, right?
What didn't solve it? I don't know what you mean....
adding the IRremotInt.h file
What does "IRrecv" does not name a type mean?