Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WT32-ETH01 IO pins? #56

Closed
Rickerdo opened this issue Sep 15, 2022 · 5 comments
Closed

WT32-ETH01 IO pins? #56

Rickerdo opened this issue Sep 15, 2022 · 5 comments

Comments

@Rickerdo
Copy link

I have a WT32-ETH01 running the new branch. The logs seems fine and HA can connect to the module, but I cannot figure out which pins should be used for the keybus. The DscAlarm.yaml file suggests:

  #ESP32 Pins
  dscClockPin: "22"
  dscReadPin: "21"
  dscWritePin: "18"

But it seems the WT32-ETH01 uses GPIOxx naming which doesn't seem to directly map. Any suggestions? The datasheets I found are not in English.

ESP Home page for the WT32-ETH01 - https://esphome.io/components/ethernet.html?highlight=wt32+eth01#configuration-for-wireless-tag-wt32-eth01

@Dilbert66
Copy link
Owner

Dilbert66 commented Sep 15, 2022

You will need to use a different pin for the dscwritepin instead of 18 as that is taken by the wt32-eth01 for the mdio_pin. You can use gpio5 or gpio19 instead of the default of gpio18.

That's great that you have the wt32-eth01 running. I was going to suggest that but some people might be put off since it doesnt have a usb connection for the initial load. It's a great device.

Edit: I now see the WT32-ETH01 has a limited range of available GPIO's.

@Rickerdo
Copy link
Author

I now have an Ethernet connected WT32-ETH01 connected to my DSC PC1864 through ESP Home. Here's how I "made it work":

  #ESP32 Pins
  # IO39 - input only
  # IO36 - input only
  # IO35 - input only
  dscClockPin: "15"
  dscReadPin: "14"
  dscWritePin: "12"

I translated the datasheet from Chinese to English and found out that pins 35, 36, and 39 are input only. I suppose dscReadPin could have been mapped to one of those pins, but hey, it works as listed above.

Also, it seems the pins within code are as labeled on the PCB. In other words, pin 15 within the YAML file is actually IO15 on the PCB. Go figure.

For posterity's sake:

I suppose a better (cleaner?) write up is in order, but I wanted to do a brain dump before I forgot the details.

@Dilbert66
Copy link
Owner

Dilbert66 commented Sep 15, 2022

Awesome. Thanks for the setup details. I will create a link to this thread in the discussion section for others to benefit
Edit: Here's an english datasheet I found for the WT32-eth01. I have not tried this device yet so intend to when I receive mine in the mail.

https://files.seeedstudio.com/products/102991455/WT32-ETH01_datasheet_V1.1-%20en.pdf

@zsamiatt
Copy link

zsamiatt commented Oct 20, 2022

Hello, Where can I setup esp32 Pins? I can not see in yaml file esp 32 pins.

I would like using this boards.
https://www.olimex.com/Products/IoT/ESP32/ESP32-POE-ISO/resources/ESP32-POE-ISO-GPIO.png

@twistedsanity
Copy link

FYI: using the WT32-ETH01 pcb layout supplied in this repo I needed to use the following pins to work with the pcb:
dscclockpin: "15"
dscreadpin: "14"
dscwritepin: "4"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants