# PiCar and EZBlock problem

**URL:** <https://forum.sunfounder.com/t/picar-and-ezblock-problem/4412>\
**Category:** General\
**Created:** [February 24, 2026, 1:39am UTC](https://forum.sunfounder.com/t/picar-and-ezblock-problem/4412 "2026-02-24T01:39:06Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sirman](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Sirman](https://forum.sunfounder.com/u/Sirman)\
**Post date:** [February 24, 2026, 1:39am UTC](https://forum.sunfounder.com/t/picar-and-ezblock-problem/4412/1 "2026-02-24T01:39:06Z")

</div>

I use a raspberry pi 5, ezblock 2.0.2, pcb d04171  
wheel motors are working if I use a python script but not with EZBlock, EZBlock is working with sound, distance, video, but not with motors: ErrNo: 6 no such device or address  
i2cdetect -y 1 only shows 4,10:14 and nothing on e.g. 0x40

thanx

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [February 25, 2026, 6:29am UTC](https://forum.sunfounder.com/t/picar-and-ezblock-problem/4412/2 "2026-02-25T06:29:38Z")

</div>

Could you please provide more information? Does d04171 refer to the hardware version number of the Raspberry Pi?

Are you using the PiCar-X product?

The I2C address of the Robot Hat used by the PiCar-X is indeed 0x14, not 0x40. Which tutorial did you see this address in?

Regarding the motor not working when using Ezblock, where did you see the error message? Could you provide a screenshot? Could you also describe your operations in more detail? What steps did you take, and what exactly happened? A detailed description with some screenshots would be very helpful.

---

<div class="post-metadata">

**Author:** ![Sirman](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Sirman](https://forum.sunfounder.com/u/Sirman)\
**Post date:** [February 25, 2026, 10:34am UTC](https://forum.sunfounder.com/t/picar-and-ezblock-problem/4412/3 "2026-02-25T10:34:48Z")

</div>

I am PiCar-X user; I have posted screenshots (erros message dialogs,…) to OneDrive: [Öffentlich](https://1drv.ms/f/c/07ba9236e9d56c43/IgBDbNXpNpK6IIAHkQAAAAAAAUnnsXTR88dkBhxlZMdkMDU?e=IDf6dn)  
thanx

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [February 27, 2026, 6:44am UTC](https://forum.sunfounder.com/t/picar-and-ezblock-problem/4412/4 "2026-02-27T06:44:04Z")

</div>

From your video, we can see that you are installing all the Python library codes for the PiCar-X product on the Ezblock OS image system. This may cause a **conflict**.

The PiCar-X product has two different ways to play:

**1. Python Control (Coding on Raspberry Pi OS)**  
This method involves controlling PiCar-X with Python. You need to download and install all the code on the standard **Raspberry Pi OS** and use Python commands.

- Tutorial: [Play with Python](https://docs.sunfounder.com/projects/picar-x-v20/en/latest/python/play_with_python.html)

**2. Ezblock App Control (Requires Special Image)**  
This method uses the Ezblock app to control the car. It requires you to flash a specific **Ezblock OS image** onto the SD card for it to connect and work properly with the app.

- Tutorial: [Play with Ezblock](https://docs.sunfounder.com/projects/picar-x-v20/en/latest/ezblock/play_with_ezblock.html)

**Therefore, you will need to prepare two separate SD cards and keep the two methods on different cards.**

* * *

### 📌 Important Notes for the Ezblock Method

When flashing the custom Ezblock OS image, you must **configure the username, password, and most importantly, the WiFi network** correctly.

- **Recommended Imager Version** : We suggest downloading and using **Raspberry Pi Imager v1.9.6 or lower** to flash the system. The official v2.0 and above versions have a **bug** that prevents you from pre-configuring the WiFi network for a custom image.

- **Special Note for Raspberry Pi 5** : If you are using a **Raspberry Pi 5** , you **must** download the **ezblock OS v2.0.2 Beta** image. Other versions will not work.

- **After Flashing** : Use the imager to configure the OS username, password, and the WiFi network (SSID and password) _before_ writing it to the SD card. Insert the card into the Pi and power it on. If successful, the speaker will make a sound, and you can then connect using the Ezblock Studio app on your phone.

### ⚠ Critical WiFi Tips for Ezblock

1. **Must be 2.4GHz** : The Raspberry Pi and Ezblock have very poor compatibility with 5GHz WiFi. Make sure your router broadcasts a separate **2.4GHz signal** (do not combine it with a 5GHz network under the same name).

2. **Simple Characters Only** : Use only **English letters, numbers, or underscores** for your WiFi SSID (name) and password. Avoid special characters, as they can cause connection failures.

>

---

<div class="post-metadata">

**Author:** ![Sirman](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Sirman](https://forum.sunfounder.com/u/Sirman)\
**Post date:** [February 28, 2026, 12:32pm UTC](https://forum.sunfounder.com/t/picar-and-ezblock-problem/4412/5 "2026-02-28T12:32:51Z")

</div>

thank you, with 2 sd-card it is working now, but →

with Python control you have some samples which do not work: they output:

- No module named ‘sunfounder\_voice\_assistant’

- from picarx.stt import Vosk

- from robot\_hat.stt import \*

- from picarx.tts import Espeak

- import Piper as \_Piper

---

<div class="post-metadata">

**Author:** ![Sirman](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Sirman](https://forum.sunfounder.com/u/Sirman)\
**Post date:** [March 1, 2026, 5:06pm UTC](https://forum.sunfounder.com/t/picar-and-ezblock-problem/4412/6 "2026-03-01T17:06:19Z")

</div>

is there any documentation of the picar, hat, … functions?

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [March 2, 2026, 8:49am UTC](https://forum.sunfounder.com/t/picar-and-ezblock-problem/4412/7 "2026-03-02T08:49:21Z")

</div>

Please confirm whether the robot-hat library was successfully installed earlier.

It is recommended to run the following command to update the robot-hat library:  
cd ~/robot\_hat  
git pull origin 2.5.x  
sudo pip3 install . --break-system-packages  
If the error persists, we suggest reinstalling the system, then installing all the library codes again before running the example to see if it works.

Remember, before installing the libraries, do not run the following command (as shown in the image):  
sudo apt install git python3-pip python3-setuptools python3-smbus  
Instead, directly proceed with installing robot-hat, vilib, and picar-x.

 ![image - 2026-03-02T163851.070](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/6/64c161a83b3d34944a96c32d433f0dee11d7da17.png)

---

<div class="post-metadata">

**Author:** ![Sirman](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Sirman](https://forum.sunfounder.com/u/Sirman)\
**Post date:** [March 2, 2026, 9:57am UTC](https://forum.sunfounder.com/t/picar-and-ezblock-problem/4412/8 "2026-03-02T09:57:23Z")

</div>

your script i2samp.sh shows:

ralf@PiCar:~/robot-hat $ sudo sh i2samp.sh  
i2samp.sh: 32: Syntax error: “(” unexpected

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [March 3, 2026, 9:21am UTC](https://forum.sunfounder.com/t/picar-and-ezblock-problem/4412/9 "2026-03-03T09:21:16Z")

</div>

Please check the command you entered. The correct command for bash should be as follows:

cd ~/robot-hat  
sudo bash i2samp.sh

---

<div class="post-metadata">

**Author:** ![Sirman](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Sirman](https://forum.sunfounder.com/u/Sirman)\
**Post date:** [March 3, 2026, 11:28am UTC](https://forum.sunfounder.com/t/picar-and-ezblock-problem/4412/10 "2026-03-03T11:28:45Z")

</div>

yeah, that works.  
is there any documentation of the picar, robot-hat, … functions?

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [March 4, 2026, 3:33am UTC](https://forum.sunfounder.com/t/picar-and-ezblock-problem/4412/11 "2026-03-04T03:33:00Z")

</div>

For Robot HAT functions, please refer to:

> **[SunFounder Robot HAT Series — SunFounder Robot HAT documentation](https://docs.sunfounder.com/projects/robot-hat-v4/en/latest/)**

---

<div class="post-metadata">

**Author:** ![Sirman](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@Sirman](https://forum.sunfounder.com/u/Sirman)\
**Post date:** [March 15, 2026, 12:00pm UTC](https://forum.sunfounder.com/t/picar-and-ezblock-problem/4412/12 "2026-03-15T12:00:42Z")

</div>

I use the PiCar-X robot car with raspberry on a board.

python, picar works now very well.(  
In a Flask app: (app.py + html file),output on browser [http://192.168.2.126:9000/mjpg](http://192.168.2.126:9000/mjpg)  
I have a problem:  
in app.py I use the line:  
from vilib import Vilib  
as soon I have this line in the py-code I get a RuntimeError: Failed to acquire camera: Device or resource busy, I have no line with with PiCamera in this file

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [March 16, 2026, 6:20am UTC](https://forum.sunfounder.com/t/picar-and-ezblock-problem/4412/13 "2026-03-16T06:20:15Z")

</div>

Based on the phenomenon you described, this error usually indicates that the camera resource is already being occupied by another process, and it is not necessarily because of explicit PiCamera-related statements in your code.  
Vilib itself is a library encapsulated based on the camera and web video streaming. After importing and calling related functions, if another program in the system is already using the camera, this error may occur.

Common causes include:

A previously running vilib/Flask/Python process did not fully exit

Another program has already occupied the camera

Flask’s debug/reloader mode causes the program to be started twice, thereby repeatedly requesting the camera resource

We recommend you try the following steps:

First, confirm whether the camera can be properly recognized by the system  
rpicam-hello --list-cameras

Check whether there are any related processes running  
ps -ef | grep -E “python|flask|vilib|picamera”

If there are residual processes, terminate them before retesting  
sudo pkill -f vilib  
sudo pkill -f python

Additionally, it is also recommended to avoid using Vilib and other independent camera access methods simultaneously in the same program, to prevent repeated occupation of camera resources.

If convenient, please send us the relevant code snippet from your app.py regarding the startup of Vilib and Flask, so we can further help you identify the specific conflict.
