• Thanks - that's interesting, they do seem some way off. I know I'd made some changes in 2v09 that should have made timing more accurate, but it definitely looks like the timings are off. I've filed an issue for it at https://github.com/espruino/Espruino/iss­ues/2125 and when I get a chance I will try and investigate.

    Having said that, it looks a lot like alternate parts of the signal are different - when the IR should be ON the signal is ~150ms SHORTER than it's supposed to be, and when it's OFF it's ~150ms LONGER (although there do seem to be some big glitches there for some reason).

    So I don't know whether those differences come because the Puck's transmission is wrong, or because the IR receiver is taking a long time to receive the signal.

    It might be that just modifying the original signal will fix it?

    var original = [9600, 4900, 500, 700, 500, 700, 600, 700, 500, 700, 500, 700, 600, 700, 500, 700, 500, 700, 600, 1900, 500, 1900, 500, 1900, 600, 1900, 500, 1900, 500, 1900, 600, 1900, 500, 1900, 500, 1900, 600, 1900, 500, 1900, 600, 700, 500, 600, 600, 700, 500, 700, 500, 700, 600, 600, 600, 700, 500, 700, 600, 1900, 500, 1900, 500, 1900, 600, 1900, 500, 1900, 500, 43100, 9600, 2500, 500];
    for (var i=0;i<original.length;i++) original[i] += (i&1)?-150:150;
    // now send...
    
About

Avatar for Gordon @Gordon started