So a long story short, I have a transistor BS170 that acts as if always on when using 12 power supply (for led strip) but acts appropriately if connected to arduino 5v pin. I also have 10k resistor between arduino and gate.
Attached picture shows what I have so far, I am new to the point of not really knowing if drain is supposed to connect to ground and source to led or other way around, but both ways the problem is exactly the same. If anyone can point out the mistakes I would appreciate it.
Photo: https://prnt.sc/oysp1e (too large file to upload here apparently, whoops)
Additional info: Intended use for transistor is to act as switch for about 35 cm strip of led, it should be pulling under 0.2amp at 12v This BS170 resistor looked good enough for my needs but let me know if it has to be changed out.
For testing it was connected to 10cm strip of led (6 leds total).
Thank you for you time ~!
Problem solved, I also had to connect the arduino ground to the main power supply ground for it to work as intended.