At Banggood, we uses cookies and other similar technologies to provide you with essential functionalities and for aggregated statistics.
We also use optional cookies for a better experience with:
You can choose not to allow some types of cookies via"Cookie Settings".If you want to learn more about it, you can swipe to the bottom of the page to see the Privacy Policy
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience.
Because we respect your right to privacy, you can choose not to allow some types of cookies. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
{{$productInfo.reviewAmount.average}} out of 5
Features:
You will need one for this. I used a UNO, but just about any 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.
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/-IRremote
Extract the file in your libraries directory. e.g. ( C:electronics-1.0.5libraries )
note: I had to rename the library because the name was too long, I just renamed it to IR.
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.
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
Shipping method(s) | Shipping time | Tracking information |
---|