Avatar for pankleks

pankleks

Member since Jul 2018 • Last active Aug 2019
  • 2 conversations
  • 17 comments

Most recent activity

    • 15 comments
    • 291 views
  • in ESP32
    Avatar for pankleks

    @Wilberforce I did all my original tests with BLE disabled, then for later test (based on @AkosLukacs sugestion) I also disabled Wifi - but no significant change in temp.

  • in ESP32
    Avatar for pankleks

    @AkosLukacs

    Yepp, that's a significant difference! I guess python goes to sleep while Espruino on the ESP32 doesn't

    Looks like significant problem for power consumption - how can we raise this issue? sorry still new here :)

  • in ESP32
    Avatar for pankleks

    @AkosLukacs Made test with WiFi disabled, temp is 59 C - but ambient is also lower (few hours later than first test) so not sure if it's due to WiFi or ambient.

  • in ESP32
    Avatar for pankleks

    @AkosLukacs thanks, ambient is around 25 C.

    @Robin all 3 measurements were done during same time / same board - so absolute value is not important, more difference between measurements.

  • in ESP32
    Avatar for pankleks

    Hello,
    My ESP32 (TTGO) is running hot, and I think it causes eventual reset.
    I first noticed it running complex code (sensors, WIFI, web server etc.) - it reached ~65 Celsius.
    So just to test I run simple blink sketch:

    function onInit() {
        let ledOn = false;
        setInterval(() => {
            console.log(`temp = ${(E.getTemperature() - 32) * 0.5556}`);
            digitalWrite(13, ledOn);
            ledOn = !ledOn;
        }, 1000);
    }
    

    Surprisingly even on above it reached 62 C.

    I made same test with Mircopython:

    import esp32
    from machine import Pin
    import time
    
    led = Pin(13, Pin.OUT)
    
    while True:
        led.value(not led.value())  
        print((esp32.raw_temperature() - 32) * 0.5556)
        time.sleep_ms(1000) 
    

    gave me: 51 C

    Arduino:

    void setup() {
      Serial.begin(115200);
      pinMode(13, OUTPUT);
    }
    
    bool state = false;
    
    void loop() {
      state = !state;
      digitalWrite(13, state);
      delay(1000);
      Serial.println((temprature_sens_read() - 32) * 0.5556);
    }
    

    gave: 53 C

    Any ideas?

  • in Espruino Work
    Avatar for pankleks

    I will.

  • in Espruino Work
    Avatar for pankleks

    @maze1980
    With ESP32 the main issue I have is restarting randomly. I believe it might have something to do with chip overheating - just blinking code get ESP32 to 65 C. In comparison blinking sketch on Arduino (or even Mircopython) keeps ESP cool (~45-50 C).

  • in Espruino Work
    Avatar for pankleks

    Thanks @Ollie I will look at it, in meantime - I got finally espruino cli "sort of" working and I quickly did this.

    https://github.com/pankleks/espruino-vscĀ­-templ

    Very, very much WIP but maybe could be already useful for someone.

    I can compile my projects with TSC, send it to the board and REPL, all directly from VSC.

    @Gordon I submited some PR's to espruino cli - to be honest seeing already some more issues.

Actions