check in
Ongoing

ESP32 ESPHome multifunctional ETH

PROESP32 ESPHome multifunctional ETH

tag

1.4k
0
0
5
Mode:Full

License

CC BY-NC-SA 3.0

Creation time:2024-03-06 07:59:42Update time:2025-04-29 01:51:06

Description

Remix of https://oshwlab.com/hcthinh1004/nh-relay-modbus.

 

I have removed 4 of the relays, added 2 PWM channels and 2 RJ11 connectors for DS18B20's with a switch so i can invert wether pin 1 is ground, or pin 4. There is also a switch on the board to enable a hardware pullup on the onewire bus. Different from the first design i had, I moved the DS18B20 pin to GPIO2 and removed the RF433 system. Turns out that GPIO35 is input only. The DS18B20's can ofcourse be split out externally in order to get more then 2. Keep in mind however that they are running on 3V3 from the board, so 5V voltage injection across the power line for long distance sensing would end badly.

Another plan i have is a i2c based 0-10V system.

Note for whoever makes this or the origional board it's based on: IO0 is the boot pin, the EN pin is reset. You connect the headers with jumpers as if they were buttons. Also the pullup resistor on the onewire bus prevents the board from properly going into flash mode over USB. So disable it to flash the first time. (that's why the switch is there)

The image is from the first revision, so it's not containing the improvements yet.

Major update 1:

  • Added box header that has the following pins:
    • I2C
    • RST
    • IO16
    • 3V3
    • 12V
    • 5V
    • GND
    • DS18B20
  • rewired the nINTSEL/LED2 pin on the LAN8720 to properly work with GPIO17 as a clock source
  • properly wired pin 6 on the gate driver to 5V
  • added the magnettics ground
  • wired the magnettics pullups to 3V3_LAN
  • added buttons for BOOT, RST, and IO16 instead of 2 pin headers
  • Added a way to get 5V from the USB connector
  • Made a more recent version of the YAML file that tries to use everything availeble. It's missing the encryption key. It's configured for ethernet, not wifi.
    You will have to change the PHY adrss back to 0, as i have a pullup resistor on my own board untill i order new ones

 

Minor update 1:
Removed the resistors that were injecting power into the diode side of the optocouplers, causing them to never properly switch.

Minor update 2:
Added 2 0-10V ADC inputs that are readout over I2C.
Added 2 pulsecounter inputs directly wired to the ESP. (for things like flowmeters)
Neither of the 4 pins above have associated ground pins, so you need to get that from elsewhere on the board. Yes it'll be an ugly ground busbar, but it's the only way I can put this much stuff on here

Minor update 3:
I hadn't used it yet so i didn't know, but according to the origional maker the modbus was designed wrong. So it wont work as i didn't bother verifying it. It's also how i copied the LAN8720 error in V1.0

Design Drawing

The preview image was not generated, please save it again in the editor.

BOM

Bom empty

Attachments

OrderFile nameDownload times
1
esp32-eth-1.yaml
14
Clone
Add to Album
0
0
Share
Report

Project Members

Comment

All Comments(1)
Sort by time|Sort by popularity
Followers0|Likes0
Related projects
Empty

Bottom Navigation