Skip to main content (https://goingbacktoelectronic.blogspot.com/2026/06/rp2040w5500-ethernet-swindle.html#main) https://goingbacktoelectronic.blogspot.com/ Search This Blog Going back to electronic after a 20 years break (https://goingbacktoelectronic.blogspot.com/) https://goingbacktoelectronic.blogspot.com/2026/06/rp2040w5500-ethernet-swindle.html RP2040+W5500 = Ethernet Swindle • Get link • Facebook • X • Pinterest • Email • Other Apps June 27, 2026 (https://goingbacktoelectronic.blogspot.com/2026/06/rp2040w5500-ethernet-swindle.html) I was not really happy with the CH32V307 Ethernet Version. It is a all-included & cheap version. But it's only 10 Mbps and there is not enough flash/sram to comfortably host swindle. The ESP32S3 wifi based version is sort of working, but the performances are not that great and i had to hack a lot to make rust + esp + cmake based project playing nice together. So here comes the new challenger : W5500 + RP2040 The RP2040 is probably the best host for swindle : • Clock accurate SWD/RVSWD IO through PIO • Plenty of RAM/Flash • Top notch datasheet The W5500 is a nice UDP/TCP over SPI adapter. The MAC is completely managed by the chip so there is no latency bottleneck due to SPI. Since i'm in the "playing with agent" phase, i rewrote the w5500 driver with the help of deepseek and gemini to be very event driven and not polling driven. The agents fixed a couple of subtle bugs ( & created some) It works, still need a bit of love. Mega chain : a GD32F303 debugging a R2040/W5500 debugging a blue pill. https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMI4Pz5VEAW-9EmsqiGCSxcmmslBYcs9JWWOK81ex7wbnf7RmFa7aKxhdC3auYUq8ECct5paxyyN2TJ_Bo1j6beLEH0UdDIvuDO2harpVlHc6n0wveBv18G9tcZpDOGZSrKgOxJxebvH4hHgKLxBuLQqW9Yrq6ETU5602UxomXaLBFOMFOaXbsrMcUAxSQ/s4080/w5500.jpg ( you may wonder what is the small block on the bottom right. it 's a a cheap chinese logic analyzer Slogic8 that can go up to 100Mhz. It works well and the vendor is pushing support to grok/pulseview) swindle (https://goingbacktoelectronic.blogspot.com/search/label/swindle) • Get link • Facebook • X • Pinterest • Email • Other Apps https://goingbacktoelectronic.blogspot.com/2026/06/rp2040w5500-ethernet-swindle.html Comments https://goingbacktoelectronic.blogspot.com/2026/06/rp2040w5500-ethernet-swindle.html Post a Comment https://www.blogger.com/comment/frame/575811584761602916?po=6420638327195625885&hl=en&saa=85391&origin=https%3A%2F%2Fgoingbacktoelectronic.blogspot.com&skin=contempo&blogspotRpcToken=9201389 Popular posts from this blog G600 Microscope Battery charging mod (https://goingbacktoelectronic.blogspot.com/2019/08/g600-microscope-battery-charging-mod.html) August 10, 2019 (https://goingbacktoelectronic.blogspot.com/2019/08/g600-microscope-battery-charging-mod.html) https://goingbacktoelectronic.blogspot.com/2019/08/g600-microscope-battery-charging-mod.html While thinking about replacing the mini usb connector to a micro one on my G600 microscope , i've seen that post from Syonyk. Damn ! No real battery charging, straight to 5v. Warning : This is not an accurate analysis, it may contain errors or missing /misunderstood parts. Let's have a look. The partially reverse engineered/ contains error schematic /picture is as follows : The equivalent schematic is ( incomplete/may contain error ) : So indeed, VBUS (5v) is connected directly to VBAT through just a schottky (K14) and R12. On the other hand, the BMS circuit is tuned very low and will stop the charge at exactly 4.2 v. My battery is still healthy and only slightly puffy :) Let's use a real charging circuit and remove component so that VBUS is completely isolated from VBAT. Remove K14, the P-Mosfet (Q1) and R54 so that they are really isolated and there is no resistor between VBUS and ground (R54). I also removed a very small ... https://goingbacktoelectronic.blogspot.com/2019/08/g600-microscope-battery-charging-mod.html Read more (https://goingbacktoelectronic.blogspot.com/2019/08/g600-microscope-battery-charging-mod.html) Component tester with STM32 : Part 1 ADC, Resistor (https://goingbacktoelectronic.blogspot.com/2020/01/component-tester-with-stm32-part-1-adc.html) January 12, 2020 (https://goingbacktoelectronic.blogspot.com/2020/01/component-tester-with-stm32-part-1-adc.html) https://goingbacktoelectronic.blogspot.com/2020/01/component-tester-with-stm32-part-1-adc.html I was always fascinated by the so call "transistor testers" that identify and report pin out, features of pretty much whatever you throw at it. They are based on Atmel 328p chip, the same as arduino nano. So why not do the same thing with a STM32/Bluepill ? The STM32 is faster, has a better ADC accuracy, more memory, can do float etc... and is not more expensive. Warning : I'm doing this for fun & to learn, it might contain error & plain misunderstanding So, i watched a couple of video on the general principle on how they work. This is not a "port" but a rewrite from ~ scratch. When something is weird, i check what the original one does for comparison. Measuring resistance So first thing first : Resistance & Capacitance. These 2 will unlock the other ones. So how do we measure resistance ? What we do is a resistor divider with a know resistance value: Measure = Vcc*(RtoTest/(RtoTest+Rknown)) As far as the ADC goes, it means ADC=... https://goingbacktoelectronic.blogspot.com/2020/01/component-tester-with-stm32-part-1-adc.html Read more (https://goingbacktoelectronic.blogspot.com/2020/01/component-tester-with-stm32-part-1-adc.html) MT3608 with wrong resistor value (https://goingbacktoelectronic.blogspot.com/2019/12/mt3608-with-wrong-resistor-value.html) December 17, 2019 (https://goingbacktoelectronic.blogspot.com/2019/12/mt3608-with-wrong-resistor-value.html) https://goingbacktoelectronic.blogspot.com/2019/12/mt3608-with-wrong-resistor-value.html I bought a few boost converters on ebay, they are based on MT3608, up to 30V, ~ 500 mA max which is fine for a lot of applications. Of course they are cheap. But they dont work, Vout~=Vin whatever the potentiometer says. Let's see why They do look like this : The variable resistor is "102" i.e. 1kOhm, the fixed resistor is 222= 2.2k The circuit works like this Vout 1k variable ==> FB 2.2k Gnd Vout is adjusted so that FB is 0.6V Let's write down the general equation for that circuit FB=0.6=Vout(2.2k+alphaR)/(2.2l+R), with : R the value of the variable resistor (1K) here Alpha the coefficient of the variable resistor between 0 and 1 The module should be able to go up to 30V, with alpha=0 0.6=30(2.2)/(2.2+R) => R=107 kOhm Ooops, the variable resistor is 1k (102) instead of 100k (104), it cannot work with the value Two options : Replace the variable resistor with the proper value i.e. 100kOhm Or hardwire t... https://goingbacktoelectronic.blogspot.com/2019/12/mt3608-with-wrong-resistor-value.html Read more (https://goingbacktoelectronic.blogspot.com/2019/12/mt3608-with-wrong-resistor-value.html) https://www.blogger.com/profile/06014075701578370344 meanX (https://www.blogger.com/profile/06014075701578370344)Visit profile (https://www.blogger.com/profile/06014075701578370344) Archive • June 2026 1 (https://goingbacktoelectronic.blogspot.com/2026/06/) • March 2026 1 (https://goingbacktoelectronic.blogspot.com/2026/03/) • December 2025 2 (https://goingbacktoelectronic.blogspot.com/2025/12/) • September 2025 1 (https://goingbacktoelectronic.blogspot.com/2025/09/) • May 2025 1 (https://goingbacktoelectronic.blogspot.com/2025/05/) • March 2025 1 (https://goingbacktoelectronic.blogspot.com/2025/03/) • February 2025 1 (https://goingbacktoelectronic.blogspot.com/2025/02/) • November 2024 2 (https://goingbacktoelectronic.blogspot.com/2024/11/) • August 2024 1 (https://goingbacktoelectronic.blogspot.com/2024/08/) • June 2024 3 (https://goingbacktoelectronic.blogspot.com/2024/06/) • May 2024 1 (https://goingbacktoelectronic.blogspot.com/2024/05/) • January 2024 2 (https://goingbacktoelectronic.blogspot.com/2024/01/) • December 2023 1 (https://goingbacktoelectronic.blogspot.com/2023/12/) • November 2023 1 (https://goingbacktoelectronic.blogspot.com/2023/11/) • October 2023 1 (https://goingbacktoelectronic.blogspot.com/2023/10/) • June 2023 2 (https://goingbacktoelectronic.blogspot.com/2023/06/) • May 2023 1 (https://goingbacktoelectronic.blogspot.com/2023/05/) • March 2023 1 (https://goingbacktoelectronic.blogspot.com/2023/03/) • February 2023 2 (https://goingbacktoelectronic.blogspot.com/2023/02/) • January 2023 8 (https://goingbacktoelectronic.blogspot.com/2023/01/) • December 2022 3 (https://goingbacktoelectronic.blogspot.com/2022/12/) • November 2022 1 (https://goingbacktoelectronic.blogspot.com/2022/11/) • October 2022 1 (https://goingbacktoelectronic.blogspot.com/2022/10/) • June 2022 1 (https://goingbacktoelectronic.blogspot.com/2022/06/) • May 2022 2 (https://goingbacktoelectronic.blogspot.com/2022/05/) • April 2022 4 (https://goingbacktoelectronic.blogspot.com/2022/04/) • March 2022 1 (https://goingbacktoelectronic.blogspot.com/2022/03/) • February 2022 2 (https://goingbacktoelectronic.blogspot.com/2022/02/) • January 2022 3 (https://goingbacktoelectronic.blogspot.com/2022/01/) • December 2021 5 (https://goingbacktoelectronic.blogspot.com/2021/12/) • November 2021 2 (https://goingbacktoelectronic.blogspot.com/2021/11/) • October 2021 4 (https://goingbacktoelectronic.blogspot.com/2021/10/) • September 2021 4 (https://goingbacktoelectronic.blogspot.com/2021/09/) • August 2021 2 (https://goingbacktoelectronic.blogspot.com/2021/08/) • July 2021 3 (https://goingbacktoelectronic.blogspot.com/2021/07/) • June 2021 3 (https://goingbacktoelectronic.blogspot.com/2021/06/) • May 2021 4 (https://goingbacktoelectronic.blogspot.com/2021/05/) • April 2021 5 (https://goingbacktoelectronic.blogspot.com/2021/04/) • March 2021 4 (https://goingbacktoelectronic.blogspot.com/2021/03/) • February 2021 11 (https://goingbacktoelectronic.blogspot.com/2021/02/) • January 2021 3 (https://goingbacktoelectronic.blogspot.com/2021/01/) • December 2020 1 (https://goingbacktoelectronic.blogspot.com/2020/12/) • August 2020 1 (https://goingbacktoelectronic.blogspot.com/2020/08/) • July 2020 1 (https://goingbacktoelectronic.blogspot.com/2020/07/) • June 2020 1 (https://goingbacktoelectronic.blogspot.com/2020/06/) • May 2020 1 (https://goingbacktoelectronic.blogspot.com/2020/05/) • April 2020 3 (https://goingbacktoelectronic.blogspot.com/2020/04/) • March 2020 1 (https://goingbacktoelectronic.blogspot.com/2020/03/) • February 2020 4 (https://goingbacktoelectronic.blogspot.com/2020/02/) • January 2020 3 (https://goingbacktoelectronic.blogspot.com/2020/01/) • December 2019 6 (https://goingbacktoelectronic.blogspot.com/2019/12/) • November 2019 1 (https://goingbacktoelectronic.blogspot.com/2019/11/) • October 2019 1 (https://goingbacktoelectronic.blogspot.com/2019/10/) • August 2019 9 (https://goingbacktoelectronic.blogspot.com/2019/08/) • July 2019 3 (https://goingbacktoelectronic.blogspot.com/2019/07/) • June 2019 1 (https://goingbacktoelectronic.blogspot.com/2019/06/) • May 2019 2 (https://goingbacktoelectronic.blogspot.com/2019/05/) • April 2019 1 (https://goingbacktoelectronic.blogspot.com/2019/04/) • March 2019 1 (https://goingbacktoelectronic.blogspot.com/2019/03/) • February 2019 4 (https://goingbacktoelectronic.blogspot.com/2019/02/) • January 2019 5 (https://goingbacktoelectronic.blogspot.com/2019/01/) • December 2018 1 (https://goingbacktoelectronic.blogspot.com/2018/12/) • November 2018 1 (https://goingbacktoelectronic.blogspot.com/2018/11/) • October 2018 1 (https://goingbacktoelectronic.blogspot.com/2018/10/) • September 2018 3 (https://goingbacktoelectronic.blogspot.com/2018/09/) • August 2018 4 (https://goingbacktoelectronic.blogspot.com/2018/08/) • June 2018 2 (https://goingbacktoelectronic.blogspot.com/2018/06/) • May 2018 2 (https://goingbacktoelectronic.blogspot.com/2018/05/) • April 2018 1 (https://goingbacktoelectronic.blogspot.com/2018/04/) • January 2018 1 (https://goingbacktoelectronic.blogspot.com/2018/01/) • December 2017 1 (https://goingbacktoelectronic.blogspot.com/2017/12/) • November 2017 5 (https://goingbacktoelectronic.blogspot.com/2017/11/) • October 2017 2 (https://goingbacktoelectronic.blogspot.com/2017/10/) • September 2017 4 (https://goingbacktoelectronic.blogspot.com/2017/09/) • August 2017 3 (https://goingbacktoelectronic.blogspot.com/2017/08/) • June 2017 5 (https://goingbacktoelectronic.blogspot.com/2017/06/) • May 2017 6 (https://goingbacktoelectronic.blogspot.com/2017/05/) • April 2017 1 (https://goingbacktoelectronic.blogspot.com/2017/04/) Show more Show less Labels • c++ (https://goingbacktoelectronic.blogspot.com/search/label/c%2B%2B) • CH32V307 (https://goingbacktoelectronic.blogspot.com/search/label/CH32V307) • CHEAPHANDHELD (https://goingbacktoelectronic.blogspot.com/search/label/CHEAPHANDHELD) • COMPONENTTESTER (https://goingbacktoelectronic.blogspot.com/search/label/COMPONENTTESTER) • DFU (https://goingbacktoelectronic.blogspot.com/search/label/DFU) • DSO150 (https://goingbacktoelectronic.blogspot.com/search/label/DSO150) • embedded (https://goingbacktoelectronic.blogspot.com/search/label/embedded) • font (https://goingbacktoelectronic.blogspot.com/search/label/font) • hw (https://goingbacktoelectronic.blogspot.com/search/label/hw) • IDE C C++ (https://goingbacktoelectronic.blogspot.com/search/label/IDE%20C%20C%2B%2B) • lnbmp (https://goingbacktoelectronic.blogspot.com/search/label/lnbmp) • RISCV (https://goingbacktoelectronic.blogspot.com/search/label/RISCV) • rust (https://goingbacktoelectronic.blogspot.com/search/label/rust) • SPOTWELDER (https://goingbacktoelectronic.blogspot.com/search/label/SPOTWELDER) • swindle (https://goingbacktoelectronic.blogspot.com/search/label/swindle) Show more Show less Report Abuse (https://www.blogger.com/go/report-abuse)