So, I came to tell you what happened. My light control was not turning off completely and was not turning on the light at maximum power. The problem with the maximum power was the VCC of the PCA9685 board, which was connected to 3V3 and should have been connected to 5V, so it started turning on the light at maximum power. The problem with the light not turning off 100% was on the PCB board. Somehow, some rails were leaking power to other rails, and so it was always running even though the MOSFET was in low mode. I had to test the best rails to use and in the end it worked. Thanks for all your help @BenB
