logo elektroda
logo elektroda
X
logo elektroda

ESP8266 NODEmcu V2 not uploading code after connecting DHT11 sensor

Grzecho83 582 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19368127
    Grzecho83
    Level 9  
    Hi there, I got the ESP8266 NODEmcu V2 WIFI module up and running, uploaded the sample programs, connected to the internet, sent POST variables to my site, received the correct data, everything worked great. Until I connected DHT11 module according to this guide . The only thing that didn't match in the tutorial was the order of the pins in the sensor, but I connected according to the description on the board.

    Now, after connecting the module to the computer, the LED lights up faintly (I don't think it lit up much before either) the port is visible, recognised correctly but nothing can be uploaded, an error appears:

    ..........
    C:AppDataLocalArduino15packagesesp8266tools/python3.7.2-post1/python3 C:AppDataLocalArduino15packagesesp8266hardware2.7.4/tools/upload.py --chip esp8266 --port COM3 --baud 115200 --before default_reset --after hard_reset write_flash 0x0 C:■UsersWLASCI~1AppDataLocalTemp_arduino_build_487600/glasshouse.ino.bin
    esptool.py v2.8
    Serial port COM3
    Connecting........_____....._____....._____....._____....._____....._____....._____
    Traceback (most recent call last):

    esptool.main(cmdline)
    File "C:/Users/Owner/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool/esptool.py", line 2890, in main
    esp.connect(args.before)
    File "C:/Users/Owner/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/2.7.4/tools/esptool\tool.py", line 483, in connect
    raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
    esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
    esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header


    Do you have any idea what went wrong and can something be done about it ?
  • ADVERTISEMENT
  • #2 19368149
    khoam
    Level 42  
    Grzecho83 wrote:
    Till I connected the DHT11 module according to this tutorial. The only thing that didn't match in the tutorial was the order of the pins in the sensor, but I connected according to the description on the board.
    .
    Make sure to specifically which pin on the NodeMCU you have connected DATA to. According to me, in this "tutorial", the DHT pins are written out correctly.

    ESP8266 NODEmcu V2 not uploading code after connecting DHT11 sensor
  • ADVERTISEMENT
  • #3 19368196
    Grzecho83
    Level 9  
    I think it is correct but applies to a different version of the sensor, I have one:
    ESP8266 NODEmcu V2 not uploading code after connecting DHT11 sensor .
    there the signal is in the middle and in the guide on the left. I connected to the module board according to the description on the board because it seems more reliable to me, there may be a different version.
  • #4 19377822
    krzbor
    Level 27  
    Grzecho83 wrote:
    Now when you connect the module to the computer, the LED lights up faintly
    Check that you have 3.3V on the module with the ESP Maybe there was some kind of short circuit or power failure when connecting the DHT?
ADVERTISEMENT