Why is my set up short circuiting?
Both the 5v and the GND are connected to the same pin of the capacitor. Since there is no resistance in this path, your circuit ends up shorting to ground.







simulate this circuit &ndash; Schematic created using CircuitLab

I've redrawn your circuit with more legibility here.