Skip to content

Software

PiCar-X

By SunFounder, China (checked on github.com/sunfounder (opens in a new tab)), from github.com/sunfounder/picar-x (opens in a new tab)

  • Cars
  • Framework
  • GPL-2.0-only

A Python library for controlling the PiCar-X, a small robot car built on Raspberry Pi, with SunFounder's Robot Hat board and vilib camera support.

Facts

GitHub stars
83read on 28 Nov 2026
Last update
13 Aug 2026Newest commit on 2.1.x
Maintenance
Maintaineda commit in the last 12 months
Difficulty
Beginner

Checked on GitHub on 28 Nov 2026.

Licenses

Code
GPL-2.0-only (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (GPL-2.0-only) at commit 897698d (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

Copyleft: Modified source must be published.

At a glance

What it is
  • Provides Python control of the PiCar-X robot car on Raspberry Pi.
  • Depends on the separate robot_hat and vilib libraries, which must be installed first.
  • Includes example scripts, including one for voice-activated control using GPT.
  • Installed from source with pip3 after cloning the repository.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
GPL-2.0-only. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Maintained, last commit on 13 Aug 2026.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 897698d

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by SunFounder, at commit 897698d, under GPL-2.0-only (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

Picar-X

Picar-X Python library for Raspberry Pi.

Links
Installation

Note You also need to install robot_hat, vilib, sunfounder_controller and other dependent libraries.
https://docs.sunfounder.com/projects/picar-x-v20/en/latest/python/python_start/install_all_modules.html (opens in a new tab)

# Install robot_hat
git clone --depth 1 -b 2.5.x https://github.com/sunfounder/robot-hat.git
cd robot-hat
sudo python3 install.py

# Install vilib
git clone --depth 1 https://github.com/sunfounder/vilib.git
cd vilib
sudo python3 install.py

# Install picar-x
git clone -b 2.1.x https://github.com/sunfounder/picar-x.git
cd picar-x
sudo pip3 install . --break
Debug

Debug command records

cd ~/picar-x && sudo pip3 install . --break --no-deps --no-build-isolation
Debug records
sudo pip3 uninstall picar-x --break -y && cd ~/picar-x && sudo pip3 install . --break --no-deps --no-build-isolation
sudo pip3 uninstall robot_hat --break -y && cd ~/robot-hat && sudo pip3 install . --break --no-deps --no-build-isolation
sudo python3 ~/picar-x/examples/14_voice_active_car_gpt.py

About SunFounder

SunFounder is a technology company focused on Raspberry Pi and Arduino open source community development. Committed to the promotion of open source culture, we strives to bring the fun of electronics making to people all around the world and enable everyone to be a maker. Our products include learning kits, development boards, robots, sensor modules and development tools. In addition to high quality products, SunFounder also offers video tutorials to help you make your own project. If you have interest in open source or making something cool, welcome to join us!


License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied wa rranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

{Repository Name} comes with ABSOLUTELY NO WARRANTY; for details run ./show w. This is free software, and you are welcome to redistribute it under certain conditions; run ./show c for details.

SunFounder, Inc., hereby disclaims all copyright interest in the program '{Repository Name}' (which makes passes at compilers).

Mike Huang, 21 August 2015

Mike Huang, Chief Executive Officer

Email: service@sunfounder.com (opens in a new tab), support@sunfounder.com (opens in a new tab)


Contact us

website: http://www.sunfounder.com (opens in a new tab)

E-mail: service@sunfounder.com (opens in a new tab), support@sunfounder.com (opens in a new tab)

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.