This is my first post, but this forum has helped me a lot on my arduino journey.
Yesterday i burned my first Wemos & fan and i'm looking for advice on how to avoid this next time as i'm not sure what went wrong. I'll attach the schematic of how i imagined this would work. The thing started to smoke right after plugging it in at the fan and wemos. The buck converter might have survived. The wemos looks like it has a burned out diode next to the microusb. Should i try to replace the diode in hopes of bringing it back to life?
What i'm trying to achieve is pwm fan control using readings from a DS18B20. Right now it's the hardware that's causing the issue. On the software side, esphome + home assistant seem to be good enough for what i need.