Comments: IR Control Kit Hookup Guide

Pages

Comments 4 comments

  • I can get the sketches to compile on my Uno, but I cant get them to compile on my Leonardo. Does anybody know why?

  • Hello

    I saw your good site Can you help me to decode an remote IR signal ?

    Here is what i did :

    1. Increase the Rawbuf to 250 because my signal seems to be more longer than 100.

    2. Load the IRremote: IRrecvDump sketch

    3. Capture the signal (below)

    50A4250F Unknown encoding: 50A4250F (32 bits) Raw (250): -23928 3400 -1700 500 -1200 450 -1250 450 -400 450 -400 550 -350 500 -1200 500 -350 450 -400 450 -1250 450 -1300 400 -450 500 -1200 450 -400 450 -400 550 -1200 500 -1200 450 -400 450 -1250 450 -1250 450 -400 450 -450 400 -1300 450 -400 450 -400 450 -1250 500 -350 450 -450 500 -350 450 -400 450 -400 500 -350 500 -400 450 -400 400 -450 500 -350 500 -350 500 -350 500 -400 450 -400 500 -350 500 -350 500 -350 500 -350 500 -400 500 -350 500 -1200 450 -400 450 -400 450 -450 400 -450 500 -350 500 -1200 500 -350 450 -400 550 -350 500 -350 500 -350 500 -1200 500 -350 500 -400 450 -400 500 -350 500 -350 500 -350 500 -400 450 -400 450 -400 500 -350 500 -1200 500 -1200 450 -400 450 -400 500 -1250 450 -400 450 -1250 500 -350 550 -350 400 -450 500 -1200 450 -400 500 -1200 450 -1250 450 -1250 550 -350 400 -1300 450 -1250 450 -1250 500 -350 450 -400 450 -450 450 -400 500 -350 500 -350 500 -350 500 -350 450 -450 500 -350 450 -400 500 -350 500 -350 550 -300 550 -350 450 -400 500 -350 500 -350 500 -350 500 -400 450 -400 500 -350 500 -350 500 -350 500 -350 500 -350 500 -400 450 -400 450 -400 500 -350 500 -350 500 -350 500 -400 400 -450 500 -350 500 -350 450

    1. Remove the first -23928 and all the -

    2. Build and load this code

    include <IRremote.h>

    IRsend irsend;

    // setup my arrays for each signal I want to send unsigned int powerOn[250] = { 3400,1700,450,1250,450,1250,450,400,450,400,450,450,500,1200,500,350,450,400,500,1200,450,1250,550,350,500,1200,500,350,450,400,500,1200,450,1250,450,450,500,1200,450,1250,450,400,500,350,450,1300,400,450,500,350,500,1200,450,400,500,350,500,400,450,400,500,350,500,350,500,350,500,350,500,400,500,350,500,350,500,350,500,350,500,350,550,350,450,400,500,350,500,350,500,400,450,400,500,1200,500,350,500,350,500,350,550,350,450,400,500,1200,450,400,500,350,500,350,500,400,500,350,500,1200,500,350,500,350,500,350,500,350,500,400,500,350,500,350,500,350,500,350,500,350,500,1250,500,1200,400,450,500,350,500,1200,450,400,500,1200,550,350,450,400,500,350,500,1200,500,350,500,350,500,1250,450,1250,400,450,500,1200,450,1250,450,1250,450,450,450,400,450,400,500,350,500,350,500,350,550,350,450,400,450,400,500,350,500,350,500,350,500,400,500,350,500,350,500,350,500,350,500,400,450,400,500,350,500,350,450,400,500,350,550,350,450,400,500,350,450,400,450,400,500,350,550,350,500,350,450,400,500,350,500,350,500,350,500,350,500};

    void setup() { }

    void loop() { irsend.sendRaw(powerOn,250,38); delay(4000); }

    Nothing work , can you advise ? Thanks

  • So I had a few errors with the code. What should I do?

    IR_Control_Kit:51: error: ‘IRrecv’ does not name a type IR_Control_Kit:52: error: ‘decode_results’ does not name a type IR_Control_Kit.ino: In function ‘void setup()’: IR_Control_Kit:70: error: ‘irrecv’ was not declared in this scope IR_Control_Kit.ino: In function ‘void loop()’: IR_Control_Kit:84: error: ‘irrecv’ was not declared in this scope IR_Control_Kit:84: error: ‘results’ was not declared in this scope


If you've found a bug or have other constructive feedback for our tutorial authors, please send us your feedback!

Want more information about SparkFun's classes? Interested in getting involved with teaching electronics? Just want to talk? Sign up for our newsletter, or contact our education department.

SparkFun is a company built around one core idea – sharing ingenuity. We think everyone should have the hardware and resources to learn and play with cool electronic gadgetry.

Share, give, learn, SparkFun.

Do you regularly instruct classes and workshops in a formal or informal learning environment? SparkFun offers Educator Discounts to people teaching and sharing electronics.

Find out more.