@timeab is using a PCA9685 PWM board rather than the Servo library. The number of the servo, and hence its connection to the PWM board is the first parameter of the SetPWM() function
Stop right there. Vin on the Arduino is only used for supply voltages from ~6.5V up. It feeds an onboard regulator to produce stable 5V for the processor and a limited amount for peripherals. But If your V+ exceeds 6.5V be aware, you'll likely damage the PCA9685 with this voltage.
Over time on this forum, you will learn to communicate more clearly.
Without what - connecting 5V to Vin? Doesn't matter. It may function, marginally, but it does not constitute a correct way to supply power to your Arduino, and will lead to unpredictable, impossible to diagnose problems, now or later.
You need to provide the PCA9685 with 5.0V at several Amperes. You also need to provide your Arduino with either >6.5V on Vin, OR 5.0V on the 5V pin(on a Nano, you can use this pin as an input or output), or leave USB plugged in so it powers the Nano.
BUT, I see from your photo in post #1 that you do NOT have anything wired to Vin, so you leave me confused as to what you're really doing...
Good luck, as you seem to believe the problem is solved.