Avatar for hungryforcodes

hungryforcodes

Member since Mar 2017 • Last active Oct 2019
  • 6 conversations
  • 108 comments

I love Espruino and bacon! :P

Most recent activity

    • 3 comments
    • 397 views
  • in ESP32
    Avatar for hungryforcodes

    Sounds like heap memory is incredibly low! Not sure what the cause of it could be. Did you try downgrading the firmware to 1v97-1v98? These use an earlier version of the Espressif SDK. Maybe could help -- just guessing.

  • in ESP32
    Avatar for hungryforcodes

    It showed up only recently, but probably is in 1v99 for sure:

    http://www.espruino.com/Reference#ESP32

    ESP32.enableBLE ⇒
    
    Call type:
    ESP32.enableBLE(enable)
    
    Parameters
    enable - switches Bluetooth on or off
    
    Description
    Switches Bluetooth off/on, removes saved code from Flash, resets the board, and on restart creates jsVars depending on available heap (actual additional 1800)
    
    Note: This is only available in devices with Bluetooth LE capability
    
  • in ESP32
    Avatar for hungryforcodes

    Did you turn off bluetooth? It frees up some resources on that version particularly.

    ESP32.enableBLE(false)
    

    -=h

  • in ESP32
    Avatar for hungryforcodes

    Hi -- just curious if support for PSRAM made it in yet. I know there was some discussion of it, but it seemed a bit vague...

  • in ESP32
    Avatar for hungryforcodes

    These guys are a little cowboy with their IDF, huh?

  • in ESP32
    Avatar for hungryforcodes

    Rotary encoders for whatever reason seem to be problematic on the ESP32 and ESP8266. Maybe because "setWatch" uses polling instead of interrupts? I'm not sure. At least your setup is not crashing as it did for me.

    http://forum.espruino.com/conversations/­332965/#comment14722654

    You could try different pins. This could at least improve the situation.

  • in ESP32
    Avatar for hungryforcodes

    Yeah I think the ESP32 SDK has been going a bit weird lately -- and you're right its becoming increasingly hard to build something reliable on top of it. Its a bit strange that at version 3 -- Espressif is still introducing breaking changes to their API etc. I also get lots of memory errors and failures when doing http / https requests.

    Anyways lets hope as the SDK matures things will get sorted out.

  • in ESP32
    Avatar for hungryforcodes

    I tried it out and it worked (rotation with no crashing). However after, I started adding some intervals for other stuff and the quality of the readings degraded significantly -- it couldn't really figure out when a rotation was happening or not. I would spin it, and the value wouldn't change, but sometimes it would -- kind of unreliable. I guess this is because its using software interrupts? For my build the encoder is important, so I'll probably dedicate a small mcu like an ATTINY85 or an ESP-01 with Arduino on it, just to read the rotation. Then feed that into my ESP32.

Actions