Avatar for Chaapu

Chaapu

Member since Jan 2018 • Last active Oct 2022
  • 3 conversations
  • 11 comments

Most recent activity

    • 4 comments
    • 1,848 views
  • in ESP32
    Avatar for Chaapu

    Hello,
    I'm trying to get Bluetooth working on an ESP32 but running into a problem.

    When I run

    ESP32.enableBLE(true);
    

    I see an error like below. Not sure what it means.

    https://imgur.com/yjQ38EY

    In the IDE I tried running the below code

    NRF.setServices({
      "3e440001-f5bb-357d-719d-179272e4d4d9": {
        "3e440002-f5bb-357d-719d-179272e4d4d9": {
          value : [0],
          maxLen : 1,
          writable : true,
          onWrite : function(evt) {
            // When the characteristic is written, raise flag
            print(evt);
          }
        }
      }
    });
    
      NRF.setAdvertising({}, {name:"Flag"});
    

    The code uploads and I'm can connect to the device using NRF Connect app. However, when I try to send a value I get the below error

    https://imgur.com/yjQ38EY

    Please let me know what I'm doing wrong.

  • in General
    Avatar for Chaapu

    Code formatting will be really awesome to have.

  • in Interfacing
    Avatar for Chaapu

    Thanks a lot @Gordon and @Wilberforce. I have tried the new code. Good news is that I no longer get "Guru Meditation error", but I get data like below.

    I understand that DHT11 now works for @Gustav on ESP32. There is as much time that you guys can spend on this, I have read that DHT11 is not the best sensor as well. I am pretty sure this works flawlessly on the official boards. I'll try to get myself one.

    Thanks a lot for all the help. Really appreciate it.

    {"err":true,"checksumError":true,"raw":"­101010100110000000000010111000","temp":-­1,"rh":-1}
    {"err":true,"checksumError":false,"raw":­"","temp":-1,"rh":-1}
    {"err":true,"checksumError":true,"raw":"­1010101001100000000000101110000000001101­0101","temp":-1,"rh":-1}
    {"err":true,"checksumError":false,"raw":­"0","temp":-1,"rh":-1}
    {"err":true,"checksumError":false,"raw":­"0","temp":-1,"rh":-1}
    {"raw":"01010100110000000000010111000000­00011010101","rh":83,"temp":23}
    {"err":true,"checksumError":false,"raw":­"","temp":-1,"rh":-1}
    {"err":true,"checksumError":false,"raw":­"0","temp":-1,"rh":-1}
    {"err":true,"checksumError":true,"raw":"­1010101001000000000000101110000","temp":­-1,"rh":-1}
    {"err":true,"checksumError":false,"raw":­"0","temp":-1,"rh":-1}
    {"err":true,"checksumError":false,"raw":­"","temp":-1,"rh":-1}
    {"err":true,"checksumError":false,"raw":­"","temp":-1,"rh":-1}
    {"raw":"10101010010000000000001011100000­000011010011","rh":169,"temp":11}
    
  • in Interfacing
    Avatar for Chaapu

    Thanks for your reply. I have already tried pin D16 (comment #7) and I get an error "Guru Meditation Error of type IllegalInstruction occurred on core 0".

    I am powering DHT11 with 5 volts.

  • in Interfacing
    Avatar for Chaapu

    I believe I have confused you, sorry. I am using an external DHT11(not integrated with ESP32), but I get the same error as the other person(with integrated DHT11) if I connect DHT11 to Pin 22.

  • in Interfacing
    Avatar for Chaapu

    Hello,
    I originally had a 10k pull-up resistor between the Data and Vcc pins. I have now tried 1K resistor but that has not helped either.

    Interestingly, I have observed that I either get No data or a "Guru Meditation Error of type IllegalInstruction occurred on core 0. Exception was unhandled." based on which pin I choose.

    e.g.

        pin 15 - {"temp":-1,"rh":-1}
        pin 22 - Guru Meditation Error of type IllegalInstruction occurred on core  0
        pin 16 - Guru Meditation Error of type IllegalInstruction occurred on core  0
    

    I think this person is facing the same issue. http://forum.espruino.com/conversations/­316936/

    Thanks a lot.

  • in Interfacing
    Avatar for Chaapu

    Thanks for the reply. Much appreciated.

    I am using 1v95 firmware. I have also downloaded the latest "espruino_1v95_esp32.bin" from http://www.espruino.com/binaries/travis/­master/
    but no success.

Actions