Avatar for gendor

gendor

Member since Jun 2018 • Last active Oct 2020
  • 2 conversations
  • 15 comments

Most recent activity

  • in Puck.js, Pixl.js and MDBT42
    Avatar for gendor

    Gave it a try, but the Pixl.js pulse train is still 29.7ms.

  • in Puck.js, Pixl.js and MDBT42
    Avatar for gendor

    Using a logic analyser, the Pico pulse trains are 27.4ms long, pretty close to the 25 * 1.1ms = 27.5ms:

    Pico pulse train

    The Pixl.js pulse trains are 29.7ms long:

    Pixl.js pulse train

    I used the remote control example code for both, just changing from A6 on the Pico to D13 on the Pixl.js, and modifying the pulse train sequences for my sockets.

  • in Puck.js, Pixl.js and MDBT42
    Avatar for gendor

    I was on 2v06, so just updated to 2v07 to be sure. No difference.

    I'm using the code from the example, but found that I had a little bit more success on Pixl.js by changing

    digitalPulse(TX,1,0.9);
    digitalPulse(TX,0,0.3);
    

    to

    digitalPulse(TX, 1, [0.9, 0.3]);
    

    I was also able to increase the chances of success by sending 40 times instead of 10 times, and it works better for some pulse trains than others (in my case, using button 2 's pulses instead of button 1).

    All this led me to believe that it may be jitter due to the RTC. I will try to hook up my logic analyser to see if it is indeed the actual waveforms getting messed up.

    • Would the digitalPulse(TX,1,0.001) at the end of the pulse train be affected by the RTC?
    • Also, does it matter whether I use an analog pin vs a digital pin?
  • in Puck.js, Pixl.js and MDBT42
    Avatar for gendor

    I started off using remote control sockets on an Espruino Pico, which worked great. I then switched to a Pixl.js, and suddenly things were not so great. Sometimes it works, and sometimes it doesn't.

    I've traced it to this issue, which explains that the NRF52 does not have the same accurate timing as the STM32.

    Now I'm wondering if there's another way to send the right pulse stream to the 433.92MHz transmitter, or at least get my new remote control sockets working reliably with the Pixl.js?

  • in News
    Avatar for gendor

    Would this BLE adaptor allow me to connect to a Pixl.js over a longer range, or would the device on the other end also need a proper antenna? I'm guessing the latter, but just wanted to double-check.

  • in Puck.js, Pixl.js and MDBT42
    Avatar for gendor

    That would be great, I published it under the MIT license for this purpose! Let me know if there's anything I can help with.

  • in General
    Avatar for gendor

    I managed to get the MAX3421E chip working with the Pixl.js last year and have it talk to a device with a CP2102 chip. When I came across this thread today I was finally motivated enough to write it up and post the source code. Hope it helps!

  • in Puck.js, Pixl.js and MDBT42
    Avatar for gendor

    I managed to get the USB host shield working in July 2018 and then completely forgot about it for a year. Oops! I just did a write-up (with source code) on Hackster.io: https://www.hackster.io/gerrit-niezen/ad­ding-usb-host-support-to-espruino-2c494d­

  • in Puck.js, Pixl.js and MDBT42
    Avatar for gendor

    It is a really tight fit in terms of assembly - I had to use a flat screwdriver to lift the corners in order to get them to close. Would one clip per corner instead of two maybe be sufficient?

    I actually had to print the top part a second time, as it delaminated from the print bed at the corner where the logo is. This is mostly my own fault, as the first layer height wasn't calibrated correctly, but on the second print (with correct first layer height) it still lifted up from the bed a little bit. Maybe this could be resolved by moving the logo to the left by a small amount?

Actions