I had made a circuit for an LED strip using an EDP12e. I had also attached two buttons to change between colors on the strip.
To make it compact I inserted the circuit board inside the casing of the 12V supply. It is a metal box with power circuit and some empty space where my circuit fits exactly. The LEDs work fine except the button inputs are throwing false positive signals when open (floating.)
I had connected a pull down resistor to the input pin. Below is the schematic I used:
This is the actual circuit:
Please help me solve this issue.
Without passing those wires from supply didn't cause such noisy triggers but I kind of wanted to put my circuit inside the casing.