Hi, @omersaeed
Welcome to the forum.
https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum
What voltage level are you supplying to Vin?
What model Arduino are you using?
Have you a DMM and can you monitor the output of the regulator when the problem occurs?
Can you please post some images of your project?
So we can see your component layout.
Thanks... Tom...
![]()