So I got a IR Remote from Amazon. This one to be precise.
https://www.amazon.com/gp/product/B01EE4VXS0/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1And I am using it with an Arduino Uno.
When run this code and then press buttons on my remote I only get a 0 no matter what button I push.
/*
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>
int RECV_PIN = 7;
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
}
delay(100);
}
So then I tried running the Dump code found here.
IRreceiveDumpAnd that doesn't seem to help either.
The first time I ran it I got this in my Serial Monitor:
"Some Timer conflicts, with other libraries, can be easily resolved by configuring a different Timer for your platform"
Then I ran it again and I get this:
C:\Users\name\DocuYoteInt.h
- IRremote.h
- You can save SRAM by disabling the Decode or Send features for any protocol (Near the library
- IRremoteInt.h
- IRremote.h
- You can save SRAM by disabling the Decode or Send features for any protocol (Near th⸮⸮⸮W⸮u!⸮
Any ideas what could be causing this? This is my first attempt at using a IR Remote and I dont know if I am doing something wrong? Or if I got a bum reciever?