Motor control with rpi pico

Im trying to build this Control DC Motor With L298N Motor Driver And Raspberry Pi Pico - Electric Diy Lab , but when I try to run the code this Error appears: can’t import name pin. Is there anything I have to do before running it? Im new to this topic and this is my first project.

1 Like

Hi Finn,

At the top of the code if you use the line
from machine import Pin
it will load the function, note the capital letter!

4 Likes

Hi Finn,

Welcome to the forum!!

Just touching base really quickly, were you able to get your motor running?

Liam.

2 Likes

Hi,
Yes, thank you for the help, I got the motors running

3 Likes