No video

ESP32-DEV, W5500 Wired Ethernet Module, and BME-280 Web Server with Favicon!

  Рет қаралды 1,172

Reiley McKerracher

Reiley McKerracher

Күн бұрын

I have had a number of ENC28J60 and W5100/W5500ethernet modules on my Arduino Nano clones fail over the years. The Nano has a 5V microprocessor, and the ethernet modules are listed as 3.3V IO but are 5V tolerant. I think they are only tolerant for a few years before they die.
With my latest component failure, I wanted to mix it up a bit more. Moving over to a 3.3v microcontroller might help, as the 5v-tolerant components are running at the limit of their tolerance with a Nano. A 3.3V microprocessor might give the components more longevity.
I chose the ESP32 module as it is cheap, plentiful, has many examples and tutorials online, and meets my requirement for a 3.3V microcontroller. I picked a wiz w5500 ethernet module, which I am familiar with from using Nanos. The LAN8720 module seems more commonly supported for the esp32 through the ETH library that comes with the board manager, but it also requires significantly more wires to function. I chose a standard 3.3v version of the BME280 sensor for an environmental sensor, which does temperature, humidity and pressure.
The W5500 requires some modification to work with the ESP32; otherwise, you will get a compile error, specifically: Compilation error: cannot declare variable ‘server’ to be of abstract type EthernetServer. Use your favourite text editor to modify the Ethernet.h file, as shown in the video and change the EthernetServer class from public Server to public Print. You will also need an extra step to set the chip select (CS) pin in your server code.
As a bonus, the W5500’s Serial Peripheral Interface (SPI) requires fewer wires/connections to work than the LAN8720 module. While I review the wiring in the video, here is the TLDR:
W5500 - ESP32
5V - No Connection (NC)
GND - GND PSU (not the ESP32)
RST - NC
INT - NC
GND - NC
3.3V - 3.3V PSU (not the ESP32)
MISO - GPIO 19
MOSI - GPIO 23
SCS - GPIO 5
SCLK - GPIO 19
Why am I using a 3.3V PSU? Well, the ESP32 provides 300ma of current at 3.3V. It will need some of that for itself and some for the BME280. The W5500 needs a minimum of 200ma at 3.3V; I’m assuming there is some sort of spike on start-up or that 200ma is the idle rating, hence why the supplier indicated it was a minimum. Either way, it is safe to assume that it will consume more, which puts the entire setup close to or over the 300ma available from the ESP32, which is why I opted to provide a 3.3v buck converter to supply the W5500 ethernet module.
You can find the code I used in this project here:
pastebin.com/F...
If you find my video useful or entertaining, feel free to buy me a coffee!
www.buymeacoff...

Пікірлер: 7
@reileymckerracher9181
@reileymckerracher9181 21 күн бұрын
I was revisiting this project and noticed that after the Arduino IDE finished all its updates, it was no longer necessary to modify the Ethernet.h file for the ESP32. I am currently using Arduino IDE v2.3.2, esp32 board manager v3.0.3 and Ethernet library v2.0.2. This makes the project a little bit easier! Is anyone else using a W5500 board with an ESP? How did you get it working?
@diandralaudia2410
@diandralaudia2410 Ай бұрын
thank you
@reileymckerracher9181
@reileymckerracher9181 Ай бұрын
No problem!
@zhepty12
@zhepty12 2 ай бұрын
thanks a lot for this video
@reileymckerracher9181
@reileymckerracher9181 2 ай бұрын
glad you found it useful, thanks for the kind words!
@gablopezuk
@gablopezuk 2 ай бұрын
Thank you for this, the url for the code is down just in case
@reileymckerracher9181
@reileymckerracher9181 2 ай бұрын
Seems to be working now; if it still doesn't work for you and you would like a copy, feel free to message me!
Arduino vs Pico - Which is the Best Microcontroller For You?
20:38
Gary Explains
Рет қаралды 291 М.
Get 10 Mega Boxes OR 60 Starr Drops!!
01:39
Brawl Stars
Рет қаралды 18 МЛН
Please Help Barry Choose His Real Son
00:23
Garri Creative
Рет қаралды 23 МЛН
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 33 МЛН
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 15 МЛН
WiFi Pentesting In Your Pocket / ESP32 Marauder
10:34
sn0ren
Рет қаралды 41 М.
Ethernet for the microchips W5500 and ENC28J60. MQTT
21:34
Электроника в объективе
Рет қаралды 88 М.
It's time for change, it's time for Linux.
10:53
DankPods
Рет қаралды 176 М.
6 Horribly Common PCB Design Mistakes
10:40
Predictable Designs
Рет қаралды 191 М.
ESP8266 with W5500 Ethernet Shield for Modbus TCP Communication
6:36
Yaser Ali Husen
Рет қаралды 10 М.
Home Assistant Control Panel For My Wall
11:19
BorisDigital
Рет қаралды 243 М.
109. Ethernet W5500 web server with STM32 F103C8T6 STM32CubeIDE
13:36
MicroPeta by Nizar Mohideen
Рет қаралды 3,1 М.
ESP32 CAM - 10 Dollar Camera for IoT Projects
29:39
DroneBot Workshop
Рет қаралды 768 М.
Get 10 Mega Boxes OR 60 Starr Drops!!
01:39
Brawl Stars
Рет қаралды 18 МЛН