Even with a module, add extra capacitors in your schematic near your microcontroller to simulate noise reduction. If you'd like, let me know: Which version of Proteus you are using (8.6, 8.15, etc.)? Do you need help with the PCB layout (ARES) specifically? Share public link
An LM2596 requires a few external parts to function properly. Add these to your schematic: Place a electrolytic capacitor near the VINcap V sub cap I cap N end-sub pin to filter transient voltage spikes. Output Capacitor ( COUTcap C sub cap O cap U cap T end-sub ): Place a low-ESR capacitor at the output to minimize voltage ripple. Catch Diode ( D1cap D sub 1 lm2596 library for proteus extra quality
You can find high-quality libraries on specialized electronics forums, component websites, and enthusiast platforms. Even with a module, add extra capacitors in