Avatar for Disane87


Member since Dec 2017 • Last active Dec 2017
  • 1 conversations

Most recent activity

  • in ESP32
    Avatar for Disane87

    wow, thank you! :)

  • in ESP32
    Avatar for Disane87

    I had the same. The only PIN it works was G0. But as I learned today, there are issues with the DHT22 and the setWatch which causes some weird crashes of my ES32.

    See here: http://forum.espruino.com/conversations/­314164/#comment13992691

  • in ESP32
    Avatar for Disane87

    Ah okay :) Sorry! I guess I have to switch to another solution in the meanwhile. But that projects is very promising!

  • in ESP32
    Avatar for Disane87

    You mean this issue on github? https://github.com/espruino/Espruino/iss­ues/643

    Is there any ETA to fix this?

  • in ESP32
    Avatar for Disane87

    Hey guys,

    thank you for this great project! Currentyl I'm just playing around with some sensors with my ESP32. I'm pretty new to microcontrollers.

    I just got a SSD1306 working with espruino on my ESP32, it works flawless. Yesterday I had to connect a DHT22 and my ESP32 keeps crashing after a few measurements of the temp. This code isn't that spectacular, but I really don't know why its crashing. I always get that message:

    WARNING: jshI2CSetup: driver installed, sda: 21 sdl: 22 freq: 50000,
    Booting up...
    Temp: 22.1°C | RH: 40%
    Temp: 22.1°C | RH: 39.7%
    abort() was called at PC 0x4008280b on core 0
    Backtrace: 0x40087818:0x3ffb04a0 0x40087917:0x3ffb04c0 0x4008280b:0x3ffb04e0 0x400828f9:0x3ffb0510 0x400d3256:0x3ffb0530 0x400829d4:0x3ffb0550 0x40116595:0x3ffb0570 0x40082c9e:0x3ffb0590 0x40082b78:0x3ffb05c0 0x40082c73:0x3ffb05e0 0x40081711:0x3ffb0600
    ================= CORE DUMP START =================

    After the core dump I see:

    E (29281) esp_core_dump: Skipped 1 tasks with bad TCB!
    E (29326) esp_core_dump: Crashed task has been skipped!
    ets Jun 8 2016 00:22:57
    rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0x00
    mode:DIO, clock div:1
    ho 0 tail 12 room 4
    entry 0x40080034

    It doesn't matter how often I read the DHT. It crashes after two measurements and after none.
    The DHT is connected to GPIO15 with a pullup resistor (10k). It keeps crashing even without WiFi and a webserver. You can see my wiring (without the oled) attached.

    My code:

    var g = require("SSD1306").connect(I2C1, start,{
      contrast: 255 
    function start(){
      log("Booting up...");
      var ssid = "SSID";
      var pw = "PW";
      if(connectWifi(ssid, pw)){
          log("Let's get started!"); 
    function connectWifi(ssid, password){
      var wifi = require('Wifi');
      var ip = wifi.getIP().ip;
      if(ip != "" && ip){
        log("IP: "+ip);
        return true;
        wifi.connect(ssid, {password: password}, function(err) {
          if (err) {
            log("Connection error: "+err);
            return false;
          log('Connected to Wifi: '+ ip);
          //wifi.save(); // Next reboot will auto-connect
          return true;
    function startWebserver(port){
      log("Starting Webserver...");
      var http = require("http");
      http.createServer(function (req, res) {
        res.end("Hello World");
      return true;
    function readTemp(pin){
      //log("Reading temp and RH");
      //pinMode(D15, input_pullup);
      var dht = require("DHT22").connect(pin);
        dht.read(function (a) {
            log("Error | checksumError: "+a.checksumError);
            log("Temp: "+a.temp.toFixed(2).toString()+"°C | RH: "+a.rh.toFixed(2).toString()+"%", 8);
    function log(text, fs = 5){
      console.log("["+Date.now() +"]: " +text);
      // write to the screen

    Does anybody of you have a clue?