I wanted to control my 12V diode strip with Raspberry, but I am not very confident in my circuit-creating abilities and I don't want to fry my Raspberry. So I created a basic circuit diagram:
I want to change amount of voltage that LED stip recives (between 0V and 12V) by changing output voltage on raspberry. To do that I'd use transistor. Code-wise I'd use for example PWMLED from gpiozero or later RGBLED, when I extend this circuit to all 3 channels of LED diode strip.
If you have any tips on what I should avoid so as not to destroy Raspberry, I would really appreciate them.