Build Car

Please go through the videos to learn how to use a Raspberry Pi Pico W or a ESP32 with the different components, before going through these videos on how to build a car.

We are still working on the code. In the mean time you could use the code from the videos below.

The wiring diagram is below. Please use a diode if you want to power the Raspberry Pi Pico from a 5v battery pack. The Raspberry Pi Pico requires a power supply capable of delivering a minimum of 1.8 volts and a maximum of 5.5V. If your battery pack delivers more than 5.5v then use a different battery pack for the motors i.e. the L298N module and a different battery pack for the Raspberry Pi Pico that only delivers up to 5.5v or else you will burn the Raspberry Pi Pico. Additionally make sure that you do not have the Raspberry Pi Pico powered by both the computer and the battery pack at the same time to avoid reverse polarity. That is why you need to use the diode. 

The code for the hash robotics car is here

Raspberry Pi based obstacle avoiding robot using ultrasonic sensor

https://github.com/hashrobotics-hr/raspberrypipico_projects/blob/19264b2961c80dcb6a3ae0ad49f609a70c214e31/obstacle_avoiding_robot_pico.zip

and the wiring diagram is below. You could use the chassis below with this wiring diagram too.

The code for the explaining computers car is here:

https://www.explainingcomputers.com/pi_pico_w_robot.html

The wiring diagram for that is also different. Please watch the video and go through the documentation. 

There are also many other car designs that you could use.

Here is some example code for some cars with different sensors:

https://github.com/gooficat/pico-car

we do not yet have diagrams for all of these cars but with some adaptation, some of the code and one of the car diagrams above could work together.

If you have the chassis below then you could use the wiring diagram and the code above with these chassis too. (If you want to use a Nvidia Jetson Orin Nano or a Raspberry Pi 5 running AI software and ROS2 then you may need three floors later.)
Attach the motors
If you do not want to use a Nvidia Jetson Orin Nano or a Raspberry Pi 5 running AI software and ROS2 then you need just two floors.
Attach the motors. You could have hot glue on the motors so that the solder joints do not become loose.
Prepare the mecanum wheels
Attach the servo
Screw in the servo
Add Your Heading Text Here
Add Your Heading Text Here
Attach the head to the servo
Prepare the wheels
Add Your Heading Text Here
Add Your Heading Text Here
Add Your Heading Text Here
Add Your Heading Text Here
Attach the L298N motor driver modules and the Raspberry Pi Pico W. There is some code for mecanum wheels above in the github link, but it does not include speed control. Please also note that the wiring you see here may require some adjustment to work with the code,

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Add Your Heading Text Here

Skip to content