I wrote an ESPHome program to spoof one of my 433 MHz remotes and transmit using a cheap FS1000A TX board.
It works perfectly on a WEMOS D1 Mini esp8266 board.
I then tried the same code on two different esp32 boards (esp32 devkit and tdisplay) boards and it failed.
The code is the exact same except for:
- Appropriately changing:
esp8266/board: d1_mini
toesp32/board: esp32dev
section - Changing tx pin from D2 on the d1 mini to GPIO17 on the esp32 (I also tried a couple of other pins)
With the FS1000A TX board removed and using my oscilloscope, I see the output of the remote_transmitter signal on pin D2 of the d1 mini board BUT nothing on pin GPIO17 of the esp32 board
Looking at the logs and generously adding additional debugging logging comments, I can confirm that the code is otherwise executing exactly as expected on both boards.
I also confirmed that GPIO17 is generally working by manually generating a square wave output using digitalWrite and verifying with my scope.
So what would cause remote_transmitter
to FAIL on an esp32 but SUCCEED on a more lowly esp8266 device?
Is this a known bug?