Raspberry Pi Pico Programable Remote Control Car

by caoow31 in Circuits > Raspberry Pi

367 Views, 2 Favorites, 0 Comments

Raspberry Pi Pico Programable Remote Control Car

Photo on BE 2566-7-28 at 3.38 PM.jpg

Hello, my name is Owen and today I am going to show you how to make a Raspberry Pi Pico (H) programable car.

Supplies

Photo on BE 2566-7-28 at 3.39 PM.jpg
Photo on BE 2566-7-28 at 3.39 PM #2.jpg
Photo on BE 2566-7-28 at 3.39 PM #3.jpg
Photo on BE 2566-7-28 at 3.39 PM #4.jpg
Photo on BE 2566-7-28 at 3.41 PM.jpg

Raspberry Pi Pico (H)

L298N Motor Driver

9V Battery and Connector

2 Gear Motors and Wheels

Scrap Cardboard

Control Wiring

Photo on BE 2566-7-28 at 3.53 PM.jpg
Photo on BE 2566-7-28 at 3.54 PM.jpg

Connect jumper wires to Pins 24,25,26,27 on the Raspberry Pi. Then connect the Pins to the motor driver. Please follow my colors and order because if you mix it up, the motors will go haywire.

Ground Pin Wiring

imageedit_2_8724761599.gif
Photo on BE 2566-7-28 at 4.00 PM.jpg

Connect another jumper wire to the ground pin 38 on the raspberry pi pico and the the middle slot of the power outages of the motor driver.

Power

Photo on BE 2566-7-28 at 4.03 PM.jpg
Photo on BE 2566-7-28 at 4.04 PM.jpg

This is very hard to understand so listen up. Connect the 9v batter to it's connecter and screw the red wire into the first slot of the motor driver. Then fit the black wire with the ground wire in the middle slot. If you cannot get to stay, use a alligator clip wire to connect them like I did.

Motor Wiring

Photo on BE 2566-7-28 at 4.07 PM.jpg
Photo on BE 2566-7-28 at 4.08 PM.jpg

This wiring is just for the right motor but the left motor follow identically except you screw them into the left side, not the right. As you can see, I connected the jumper wires to the motor and screwed them into the right. Once again, please follow the order and color of my wires. Remember, the left motor is the same.

Cardboarding

Photo on BE 2566-7-28 at 4.14 PM.jpg
Photo on BE 2566-7-28 at 4.14 PM #2.jpg
Photo on BE 2566-7-28 at 4.14 PM #3.jpg
Photo on BE 2566-7-28 at 4.14 PM #4.jpg

You can use any kind of cardboard design you like, but I chose this design becase it is small and fits things perfectly.

Coding

Screen Shot 2566-07-28 at 4.17.06 PM.png

Copy this piece of code onto your Thonny window and run it. You should see your robot move forward, backward, turn left, and then right. Thank you for viewing and have fun with you Raspberry Pi Pico Programable Remote Control Car!

Taking It Further

If you want to learn how to run it without connecting it to your computer, learn how at my other instructable at https://www.instructables.com/Running-Any-Code-on-Raspberry-Pi-Pico-No-Computer-/