• Assuming you're using VBat while running off USB (not 3.3v), the receiver will work.

    However:

    The code given there works with a specific kind of socket only - it's expecting the protocol described in the page you linked, a 5 ms sync delay, and the specified lengths for ones and zeros. However, a remote control socket from another vendor could use a totally different protocol - different encoding of ones and zeros, different number of bits, shorter sync, etc - and the code would need to be modified appropriately. So unless you're using compatible sockets, that code won't work.

    Receiving on the Espruino is kinda lousy right now - it will pretty much hang the Espruino (if it doesn't make the Espruino become almost unresponsive, I'd suspect bad wiring - when there's no signal, the receivers just spit out noise, and the Espruino gets bogged down trying to handle it).

    Luckily, Gordon is planning several improvements to Espruino to address these issues, so this should get better in the future.

    See other threads:

    Gordon's thread talking about possible improvements:
    http://forum.espruino.com/conversations/257663/

    Threads I started about this. First one has a lot of information on my making my own protocol, second one led to Issue #452 on github.
    http://forum.espruino.com/conversations/255528/
    http://forum.espruino.com/conversations/258248/newest/

About

Avatar for DrAzzy @DrAzzy started