Professional Documents
Culture Documents
Learning target
In this course, we will learn how to use pins of the Raspberry Pi Pico board.
How to use and control L9110S driver motor with 2 DC motor 3.3V.
2. Preparation
PC *1
DC motor 3.3V * 2
Then Connect GND pin of L298N with GND Pin of Pico, Make comman
connection between 12V GND and raspberry pi pico’s GND
Thonny programming
while True:
if Button1.value() == 1:
IN1.high()
IN2.low()
IN3.high()
IN4.low()
elif Button2.value() == 1:
IN1.low()
IN2.high()
IN3.low()
IN4.high()
elif Button1.value() == 0:
IN1.low()
IN2.low()
IN3.low()
IN4.low()
elif Button2.value() == 0:
IN1.low()
IN2.low()
IN3.low()
IN4.low()
5. Phenomenon
Click the green run button of Thonny IDE to start running the program. Click the