ESP-POE using ESPHome not working via POE

Started by moe.szyslak, July 06, 2021, 06:52:20 pm

Previous topic - Next topic

moe.szyslak

Hi,

I am using an ESP-POE controller to read two ultrasonic sensors. The code is generated using ESPHome (so basically platform.io). The two sensors are both connected to 5V and GND and then each to two GPIO pins (GPIO2 & GPIO3 and GPIO4 & GPIO5) for ECHO and TRIGGER. The setup works fine when powered via USB but it only reads one sensor when powered by POE. Do I need to configure something or am I using the wrong GPIOs or something?

Thanks for your help and best regards,

Moe

LubOlimex

GPIO4 and GPIO5 are used by the Ethernet, when you plug something in the Ethernet port they will become unavailable. Use other free pins for it. Make sure to check the schematics and the pinout here:

https://www.olimex.com/Products/IoT/ESP32/ESP32-POE/open-source-hardware
Technical support and documentation manager at Olimex

moe.szyslak

Thanks for your quick reply.

I switched GPIOs from 4 & 5 to 13 & 14, but it's actually the sensor on 2 & 3 that is not working. So I switched that to 15 & 16 and now it works.

So 4 & 5 actually worked when using ethernet + USB power and PoE, while 2 & 3 just didn't work using PoE.

BMOD

Quote from: LubOlimex on July 07, 2021, 09:22:47 amGPIO4 and GPIO5 are used by the Ethernet, when you plug something in the Ethernet port they will become unavailable.

Hi LubOlimex,

I am wondering about GPIO4 and GPIO5. I am also accidentally using this pins and it seems to work with PoE.
I have also checked the schematic (https://raw.githubusercontent.com/OLIMEX/ESP32-POE-ISO/master/HARDWARE/ESP32-PoE-ISO-Rev.D/ESP32-PoE-ISO_Rev_D.pdf) and I cannot see that this GPIOs are connected to the ethernet controller. Or am I missing something?

LubOlimex

You wrote that you have ESP32-POE in the title and the first post of this thread, but you are linking the schematic of ESP32-POE-ISO.These are different designs with different schematics.

Do you have ESP32-POE or ESP32-POE-ISO?
Technical support and documentation manager at Olimex

BMOD

Sorry it was my fault... I am not the thread opener, I am just an interested reader.