Hi, Im working on a simple LED strip project with an arduino nano which has a button that cycles through different lighting effects that I programmed. When testing, I power everything with USB and the button works fine, but when I try to power everything through the Vin pin using a 12V power adapter, the button no longer works.
The button simply connects between digital pin 4 and ground, uses no external resistor, only the internal pullup resistor.
I use the library Onebutton.h
Could anyone point me in the right direction to solving this problem? because I am completely lost!!