1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.56k stars 785 forks source link

Unable to flash ESP32 with default DS1820 pin #625

Closed jmw6773 closed 4 years ago

jmw6773 commented 4 years ago

On the ESP32, GPIO2 must be driven low or floating for the ESP32 to enter the serial bootloader to flash. The DS1820 sensor is set to use GPIO2 as the default pin and requires a 4.7k pull-up resistor on its data pin. This prevents the ESP32 from entering the serial bootloader, so it can't be flashed.

Proposed Fix Change the default GPIO for the ESP32 devices for the DS1820 sensor.

@1technophile, do you have a pinout reference for the ESP32 or a preference on which pin should be used as the default pin for this sensor?

Expected behavior ESP32 shouldn't be prevented to enter the serial bootloader be connecting a sensor.

References

1technophile commented 4 years ago

@1technophile, do you have a pinout reference for the ESP32 or a preference on which pin should be used as the default pin for this sensor?

You can find the default pinout there

You can take the one you prefer while it is free from other module and tested working.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.