Xinyuan-LilyGO / LilyGO-T-ETH-Series

174 stars 67 forks source link

proper pinout documentation! #90

Open maskedfighter opened 3 weeks ago

maskedfighter commented 3 weeks ago

Hi!

Can u please do a proper pinout documentation so we can start programming esphome without having to search for each and every single pin we might need to use? Honestly it´s a pain in the ass... For example, where do i find which power pin for ethernet i have to use on my t poe pro board?

Thx in advance!

lewisxhe commented 3 weeks ago

Thanks for your advice, it's a good suggestion, it will take a little time to do.

The pinhole pointed to in the picture should be the 5V power pin image

maskedfighter commented 3 weeks ago

This is the part of code i used to configure the ethernet port in esphome: ethernet: type: LAN8720 mdc_pin: 23 mdio_pin: 18 clk_mode: GPIO0_OUT phy_addr: 0 power_pin: 5

Now when i try using external power to the board (not poe), the port doesn´t come to life, lights on port stay black and nothing happens... Any ideas?

lewisxhe commented 3 weeks ago

Is the USB power supply normal?

maskedfighter commented 3 weeks ago

I don´t supply power to the usb-c port but to the terminal on the right side of the ethernet port (7-24V terminal)

lewisxhe commented 3 weeks ago

I mean, does it work fine using USB-C for power delivery?

maskedfighter commented 3 weeks ago

Have to try that, one second :)

maskedfighter commented 3 weeks ago

ok i guess that was my fault... i use a poe-powered switch where i plug in the t poe pro board... and when i turned off poe for the port i plugged the switch to my main switch it got no power.. so the whole switch was off.... is it a problem using poe powered cable and external power supply together? does the board get damaged by that? otherwise i need to use another switch which doesn´t passthrough poe...

lewisxhe commented 3 weeks ago

With diodes for isolation, they should be able to supply power at the same time. The end with the highest voltage should be the final power supply. image

maskedfighter commented 3 weeks ago

aah i see... so it will probably powered by poe since its voltage is likely higher than the 12V i supply on the terminal? why i ask is because when reading out my deye inverter on the modbus port i get a lot of spikes on W, A and current when reading it out every 5 seconds. Another user mentioned (over at the esphome for deye git) that he also used a poe powered board and he had spikes too which were all completely gone since he switched to external power supply... i guess i have to try my ubiquiti flex mini switch :)