You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Uncaught No 'ready' after AT+RST usually just means that the module isn't responding. It's probably:

    • It's not powered up - there should be a red LED lit on it if all is ok
    • You've got TX and RX round the wrong way - I can't really see from your diagram what goes where
    • You have the wrong baud rate because your board has a different firmware - use the test code from http://www.espruino.com/ESP8266
    • It's booted up in bootloader mode.
    • It's unhappy with the power - as DrAzzy says, a capacitor might help

    It's probably best to start off using this code from the link above:

    var serial = Serial2;
    var pins = { rx: A3, tx : A2 };
    function test(baud) {
      serial.removeAllListeners();
      var l="";
      serial.on('data', function(d) {l+=d;});
      serial.setup(baud, pins);
      serial.write("AT+GMR\r\n");
      setTimeout(function(){console.log(JSON.stringify(l));},800);
    }
    digitalWrite(B9,1); // enable on Pico Shim V2
    setTimeout(function() { test(9600); }, 2000);
    setTimeout(function() { test(115200); }, 3000);
    setTimeout(function() { test(57600); }, 4000);
    setTimeout(function() { console.log("Done!"); }, 5000);
    

    It'll just try and communicate with the board using different baud rates, so might help to narrow it down

    also: to format code in the forum, just add 3 backticks before and 3 after (each on a new line, with a blank line before and after) - just google 'markdown' for some examples.

About

Avatar for Gordon @Gordon started