How to hook up a pwm dc motor to the Nano

I wanted to attach a dc motor controlled with PWM signals to the nano but I later found out it’s not as easy as I expected.

Is there a way to have full control of a dc motor using the nano? I need more than just 2 speeds on the motor and I have a L298N and a PCA9685.

Edit: I found this link but It’s not very clear how it was done.

hello carlos.cuartas144,

it should based-on JetPack-4.3 release in this tutorial, and there’re JetBot python scripts to drive DC motor movements.
you may also refer to Running two simple DC motors (5 Amp) Forward and Backward in Jetson Nano for using Nano’s PWM.