Ethernet drops after switching relay module

Hello, guys. I`ve been doing my project and found a problem.

The problem:
Im using W5500 ethernet module which is connected in the same line with relay switch. When the relay pin is set to LOW after it was HIGH Ethernet loses it connection. Im using Ethernet2 library and Ethernet.begin(mac) helps but it is slow, so it isn`t very effective.

The problem is updateLock function there relay pin changes its state

This is the project of lock so there is a wiegand card reader which takes data and sends it to local backend

I use esp32 devkit v1, PoE splitter to power all sheme, W5500 and 5 pin 5v 10A relay.
Also there are all the schemes and code on my google drive cause i`m a new account here
https://drive.google.com/drive/folders/1zDbOK8Ft14vFGTmcW4Wd36-x3PK_65xt?usp=share_link

To post images etc. you need trust level 1, you can get there by:

  • Entering at least 5 topics
  • Reading at least 30 posts
  • Spend a total of 10 minutes reading posts

Users at trust level 1 can...

  • Use all core Discourse functions; all new user restrictions are removed
  • Send PMs
  • Upload images and attachments

I would think your problem is related to the power supply or a wiring problem. Please post a schematic and some photos clearly showing the wiring, along with code in code tags

Thanks

How much voltage & current can your PoE router supply?

How much current is required by each component?

Can the PoE router supply enough current for the Arduino, card reader, ethernet adapter, relay and solenoid lock?

Where is the flyback diode for the solenoid physically connected?

Current voltage is 12V which goes through 360 mini to 7.5 V for ESP32.
From ESP32 3.3V goes to Ethernet and Relay

I think power is enough

About solenoid diod it is connected before the transistor and after the ethernet module

Thanks I will do it as fast as i can because this limits aren`t pleasent and edit my topic

7.5volt for the ESP sounds high. The regulator/cooling is designed for 5volt-in.
It's 3.3volt regulator could already be overheating.

You can't draw an extra 75mA for the relay and 140mA for the W5500 from the 3.3volt pin of the ESP32. The 3.3volt regulator will certainly protest and periodically shut down (if you're lucky).

Why a 5volt zener diode across the relay coil.

Why a WiFi board and Ethernet.
Leo..

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.