Pwm dc motor not stopping although motor1.throttle = 0

hello hwooin99,

you should look into the sources, there should be settings assigned. please revise the code to adapt with your use-case,
besides, please refer to Topic 178959 as see-also for using Nano’s PWM.
thanks