ESPWebDAV icon indicating copy to clipboard operation
ESPWebDAV copied to clipboard

No access to the SD card in the printer with the NodeMCU module active (ESP8266 12E)

Open Adinfo78 opened this issue 5 years ago • 1 comments

I have programmed the module NodeMCU v2 (ESP8266 12E + CP2102) and connect according to the diagram. Unfortunately, I encountered a problem.

Basic information:

  • Anycubic Linear Plus printer (Trigorilla 1.4)
  • Marlin 2.0 (in 1.1.9 the same situation)
  • NodeMCU v2 (ESP8266 12E + CP2102)
  • all soldered in accordance with diagram (3 resistors 1k, capacitor 100uF 16V)

In short, what the situation looks like:

  1. With the SD adapter and SD card adapter connected (extension cable without NodeMCU module) - with mounted 1k resistors, the SD card is correctly detected by the printer.

  2. When the NodeMCU v2 module connected to the extension cable is access via WiFi to the SD card - I can write / read files from it - but the printer writes "No SD card". After copying the file from Windows through the explorator I close the window - the LED in the ESP module flashes several times - as I open again I see "Marlin is reading from SD card" - but the printer still has "No SD card".

  3. In Marlin 2.0 I set the test in pins_RAMPS.h at the end #define SD_DETECT_PIN -1 (then after turning on the printer I can manually initialize the SD card) - unfortunately with the active NodeMCU module the printer still does not detect the SD card, despite the inclusion of Init. SD card (the LED flashes for several seconds).

  4. If I disconnect the MISO line from the NodeMCU module (GPIO12) and enable Init. SD card I get access to the SD card in the printer, then in WebDav I have the message "Marlin is reading from SD card" - that is OK, then I connect again the MISO line (GPIO12) to NodeMCU - after a dozen or so seconds I get again access via WiFi to the card - but I lose access to the card again from the printer.

A slightly different situation:

  1. I put the card together with the ESP module with the SCK signal disconnected (GPIO14) this card is detected automatically (initialized) by the printer.
  2. I connect SCK (GPIO14) - the printer can not see the content of the card, after a while I have access to the card through WebDav - I upload files - the printer can not see them yet.
  3. After copying the files, I disconnect MISO (GPIO12) - after a while the printer sees the uploaded files, and in the folder WebDav I have empty. This does not happen every time, sometimes the printer can not see anything, and the MISO (GPIO12) reconnection also blocks the DavWWWRoot folder.

The problem seems to be the takeover of control over the bus by NodeMCU, then the printer can not get to the access card. I checked connections several times. scheme, I did not find a problem.

Adinfo78 avatar Mar 13 '19 08:03 Adinfo78

Can you try it with another ESP8266 module like ESP-12E. NodeMCU board might be different and using the pins for other purposes.

ardyesp avatar Sep 15 '19 13:09 ardyesp