I am working on a project which will be switching LED strips with a max of 2A. As a test I have connected a 20W hallogen light. When I try to switch it I get a voltage drop as can be seen in the scope picture and causes my microcontroller to reboot (< 5V). I was thinking of using a capacitor to filter out the voltage drop.
How can I determine which value of capacitor I can use? Or does someone have any other tip I can do to fix this?
simulate this circuit – Schematic created using CircuitLab