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.54k stars 782 forks source link

[ESP8266 Witty Cloud][ESP-12E] - is it mandatory to use specific pins ? #333

Closed shafr closed 5 years ago

shafr commented 5 years ago

Describe the bug Hello! I'm trying to build my own OpenMqttGateway PCB with bells and whistles. My instance contains sensors on with the voltage:

Actual: When everything is connected on the breadboard with the default pin configuration as in default configuration file - it works great.

As soon as I'm trying to re-wire breadboard and update configuration files to be using different pins - everything falls apart.

I'm getting MQTT online message & version from board, but none of the sensors seems to report any data anymore at once - DHT11 not sending temperature, IR-recv not forwarding received signal to MQTT.

Before uploading every new firmware i'm re-writing my ESP with zeroes, so it's not likely that issue can be in software.

Expected: Should it be possible to set any sensor to any pin ? I'm avoiding no-use pins, (GPIO2, RST, CH_PD) but maybe i'm missing something.

Screenshots Just for info the schematic of sensors connection:

image

Configuration file specify sensors using GPIO pins.

Environment (please complete the following information):

1technophile commented 5 years ago

Hello,

If I sum up the constraint for pins selections here is what we have:

shafr commented 5 years ago

Ok, thank you for the answer! I will continue my investigation.

Can I add this information to a documentation for ESP8266 ? I will do a pull request later with documentation update with pins which were working for me for ESP and a new schematic / PCb.

1technophile commented 5 years ago

Yes of course, did you seen the pinout spreadsheet ? https://docs.google.com/spreadsheets/d/1_5fQjAixzRtepkykmL-3uN3G5bLfQ0zMajM9OBZ1bx0/edit?usp=drivesdk You can give me your feedback and i will update it

shafr commented 5 years ago
NodeMCU pin GPIO PIN RF Recv RF Transmitter IR Recv IR Transmitter DHT11
D0 16 OK OK NOK OK NOK
D1 5 OK OK OK OK OK
D2 4 OK OK OK OK OK
D3 0 NOK NOK NOK NOK NOK
D4 2 OK OK OK OK OK
D55 14 OK OK OK OK OK
D6 12 OK OK OK OK OK
D7 13 OK OK OK OK OK
D8 15 OK OK NOK OK OK
RX 3 OK OK OK OK OK
TX 1 OK OK NOK OK OK
S3 10 NOK NOK NOK NOK NOK
S2 9 NOK NOK NOK NOK NOK
1technophile commented 5 years ago

Wonderfull thanks !