Comments on: Raspberry Pi Pico: Control DC Motor with L298N Motor Driver (MicroPython) https://randomnerdtutorials.com/raspberry-pi-pico-dc-motor-micropython/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sat, 08 Mar 2025 06:14:54 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/raspberry-pi-pico-dc-motor-micropython/#comment-1014545 Sat, 08 Mar 2025 06:14:54 +0000 https://randomnerdtutorials.com/?p=146195#comment-1014545 In reply to hello.

Hi.
It depends on how to stop the program. If it is via keyboard interrupt, it should call the stop command before exiting the xode.
If it is another exception, it will not call the stop function before exiting the program and the motor will continue spinning.
Regards,
Sara

]]>
By: hello https://randomnerdtutorials.com/raspberry-pi-pico-dc-motor-micropython/#comment-1014272 Fri, 07 Mar 2025 15:15:37 +0000 https://randomnerdtutorials.com/?p=146195#comment-1014272 Is it normal that the motor keeps spinning at 100% after I stop the program?

]]>
By: Fritz https://randomnerdtutorials.com/raspberry-pi-pico-dc-motor-micropython/#comment-1001576 Tue, 21 Jan 2025 15:22:46 +0000 https://randomnerdtutorials.com/?p=146195#comment-1001576 My suggestion:
drive pin1 at 50% and pin2 at 50% PWM.
the motor wont move.
to rotate in one direction just change pin1 to 49% and pin2 to 51%
to get faster just decrease and increase, resp.
to rotate in the other direction just change the PWM accordingly.
the enable stays on all the time.

]]>
By: murugaiyan https://randomnerdtutorials.com/raspberry-pi-pico-dc-motor-micropython/#comment-917820 Fri, 24 May 2024 14:30:20 +0000 https://randomnerdtutorials.com/?p=146195#comment-917820 Is Motor ramp control possible??

]]>
By: Wijnand https://randomnerdtutorials.com/raspberry-pi-pico-dc-motor-micropython/#comment-916943 Tue, 21 May 2024 09:39:41 +0000 https://randomnerdtutorials.com/?p=146195#comment-916943 Hai, what I am missing is the possebility of feedback and a realy speedcontrol (PID). Maybe a next item?

]]>