Avatar for navas

navas

Member since Jan 2017 • Last active Mar 2017
  • 11 conversations
  • 68 comments

Most recent activity

    • 2 comments
    • 50 views
  • in Interfacing
    Avatar for navas

    hi everyone,

    Does any know how to capture multiple IR codes through an IR receiver at the same time? My remote seems to send multiple codes on a single press. How do you capture them on times?

    This example is good to capture events one code at a time. I can print them to console using
    console.log(times.toString());

    but the problem is it is always printing the last one received.

    digitalWrite(B7, 0); // Set B7 to GND
    digitalWrite(A8, 1); // Set A8 to 3.3V
    // Because we're not using the module, we have to manually pull up the data pin
    pinMode(B6,"input_pullup");
    // Keep somewhere to put the signal times
    var times = [];
    // now watch the input
    setWatch(function(e) {
      // work out how long the pulse was, in milliseconds
      var pulseLen = 1000 * (e.time - e.lastTime);
      // then save it, if it was less than 1 second
      if (pulseLen < 1000)
        times.push(pulseLen);
      else
        times = [];
    }, B6, {repeat:true});
    

    Thanks
    Navas

  • in Projects
    Avatar for navas

    Looks Great, And yes, like @Gordon said IR would be nice to have it :)

  • in Interfacing
    Avatar for navas

    Hi @Gordon, I have re-uploaded the attachment from espressif website. This is the one I tested and worked.

    I don't think it is the baud rate, I did a few debugging, it seems like it is problem detecting the "ready"

    Hope it helps.

    • 7 comments
    • 153 views
  • in JavaScript
    Avatar for navas

    ok, thanks @Gordon. I will give it a try.

    • 13 comments
    • 210 views
  • in JavaScript
    Avatar for navas

    Here you go buddy.

    take.ms/3Gd1X

    Thanks for letting me know the patreon page.

    And for RGB, controlling individual pins with each 100Hz works? I tried with one and seems like worked with OK, but haven't tried with all 3 pins.

  • in Interfacing
    Avatar for navas

    seems like latest esp-01 no longer comes with AT 0.25 / 0.50.

    If any stuck then please use the attached firmware and re-flash your esp-01.

    use the following commands

    Change the port if you have different. Oh, also it is for 1MB flash.

    esptool.py -p /dev/tty.SLAB_USBtoUART -b 115200 write_flash 0x00000 eagle.flash.bin 0x10000 eagle.irom0text.bin 0x7E000 blank.bin 0xFE000 blank.bin 0xFC000 esp_init_data_default.bin
    
Actions