You are reading a single comment by @pete and its replies. Click here to read the full conversation.
  • Hey everyone,

    I'm just getting started with espruino here. My first project is to make the lights in my room(which are currently controlled via an IR remote) controllable by the espruino.

    I have all the gear here: an espruino, an IR sensor, and an IR led. I followed the tutorial for decoding the IR signal from the remote, but I don't get a single number long number. The output is something like:

    0
    9
    9
    4
    

    or

    0
    1
    0
    1
    

    depending on the function on the remote.

    Here is what the raw times are:

    0.006740570068359375
    0.006732940673828125
    0.011264801025390625
    0.0067386627197265625
    0.00673198699951171875
    0.011066436767578125
    0.0067157745361328125
    0.0067081451416015625
    0.0112285614013671875
    0.0067043304443359375
    0.0067081451416015625
    0.01103115081787109375
    0.00671100616455078125
    0.00670528411865234375
    0.01123523712158203125
    0.006710052490234375
    0.00670337677001953125
    

    So as per the tutorial saying there are two distinct groups of numbers, it looks like my numbers split off at 0.01, so I changed it to that in the code.

    So I'm unclear if I have the correct numbers or not? Also, I'm unclear on what the next steps are to lighting the IR led programmatically. Specifically, I'm not sure how to connect the IR Led to the espruino as well as how to send the proper code to it programmatically.

    The remote is a Lutron MIR-ITFS 5 function remote. I actually found the datasheet for the remote: http://www.lutron.com/TechnicalDocumentL­ibrary/048158.doc if that helps anyone understand this problem a bit better

    Thanks in advance for any help continuing on here! :)

About

Avatar for pete @pete started