# Issue with Enviro+ with RPi Zero: Display and particles not working

**URL:** <https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365>\
**Category:** Support\
**Created:** [November 26, 2023, 12:59pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365 "2023-11-26T12:59:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![nemecek\_f](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/nemecek_f/32/10286_2.png) [@nemecek\_f](https://forums.pimoroni.com/u/nemecek_f)\
**Post date:** [November 26, 2023, 12:59pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/1 "2023-11-26T12:59:45Z")

</div>

Hello,

some days ago I got the Enviro+ board with the the air quality sensor PMS5003. Unfortunately I cannot get it to work.

I was able to run some of the examples like `compensated_temperature.py` and similar which show data and work. But it seems anything related to the LCD on the Enviro+ or the particles sensor fails. The error when trying to run `lcd.py` is this:

```auto
Traceback (most recent call last):
  File "/home/filip/Pimoroni/enviroplus/examples/lcd.py", line 20, in <module>
    disp = st7735.ST7735(
  File "/usr/local/lib/python3.9/dist-packages/st7735/ __init__.py", line 175, in __init__
    self._dc = gpiodevice.get_pin(dc, "st7735-dc", OUTL)
  File "/usr/local/lib/python3.9/dist-packages/gpiodevice/ __init__.py", line 138, in get_pin
    chip = find_chip_by_pins(pin)
  File "/usr/local/lib/python3.9/dist-packages/gpiodevice/errors.py", line 45, in wrapper
    errors.append(next(i))
  File "/usr/local/lib/python3.9/dist-packages/gpiodevice/ __init__.py", line 108, in find_chip_by_pins
    for pin_id in pins:
TypeError: 'int' object is not iterable

```

So I tried the examples for the st7735 and they end with this error:

```auto
Woah there, suitable gpiochip not found!
  ❌ PIN21: not found - /dev/gpiochip0 (pinctrl-bcm2835)!

```

Which seems like one of the GPIO pins is broken or something?

I haven’t seen the screen light up (not even during the boot) though I am sure that it is supposed to light up when booting.

Since I have Sense Hat also I tried it with my Raspberry Pi Zero (the first gen, integrated WiFi) and haven’t been able to run into any issues using this board. Tried the sensors, the LED matrix…

Is it possible my Enviro+ is defective and I need to have it replaced by the vendor? Or is this just some software glitch?

Unfortunately I don’t have other Pi at hand to try isolating the issue further.

Thanks.

---

<div class="post-metadata">

**Author:** ![dantwe](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@dantwe](https://forums.pimoroni.com/u/dantwe)\
**Post date:** [November 26, 2023, 9:35pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/2 "2023-11-26T21:35:41Z")

</div>

I started work on my Enviro+ today and am getting exactly the same error (‘int’ object is not iterable) so it seems unlikely that it’s a hardware fault but more likely a software glitch? Just a guess on my part though. I bought my kit (Pi Zero 2, Enviro+, PM Sensor) back in January 2022 so unless yours have also been sat in a box for 18+ months I guess it’s not a bad batch?

Extra info just in case it helps anyone: I started with an install of Bookworm but found that the github project ([GitHub - pimoroni/enviroplus-python: Python library for the Enviro+ environmental monitoring board](https://github.com/pimoroni/enviroplus-python)) hasn’t been upgraded yet so rather than test the branch I started again with Legacy (Bullseye) which has got me this far.

---

<div class="post-metadata">

**Author:** ![dantwe](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@dantwe](https://forums.pimoroni.com/u/dantwe)\
**Post date:** [November 27, 2023, 8:30am UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/3 "2023-11-27T08:30:38Z")

</div>

I’ve done a little more digging and whilst I haven’t fixed it yet, I’m pretty sure that the culprit is a change to the st7735 library where they’ve “ported to gpiod/gpiodevice”. If you look at these two changes…

> <https://github.com/pimoroni/st7735-python/commit/2b1736c669d591f1b18f02a70222adc4b6465f31>

> <https://github.com/pimoroni/st7735-python/commit/8e6cee4ef8ae24574e8d5da15ac5e8996964c4ef>

…particularly the second one, you’ll see a whole load of changes to the example code, where numeric pins get swapped out for pin labels, e.g.

> backlight=19,

becomes

> backlight=“PIN35”,

I think this is what the library is complaining about when it says it can’t iterate over an int, and to get things working again I suspect we’ll need to update the example code (luftdaten.py in my case) to match. I’m probably not going to find some time to try that out until later this week but I’ll report back once I have.

Actually, as a first step, it’s probably worth running some of the examples in the st7735 project, because they’ve already been updated. I’ll let you know how that goes too!

---

<div class="post-metadata">

**Author:** ![nemecek\_f](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/nemecek_f/32/10286_2.png) [@nemecek\_f](https://forums.pimoroni.com/u/nemecek_f)\
**Post date:** [November 27, 2023, 9:46am UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/4 "2023-11-27T09:46:27Z")

</div>

Nice finds! Thanks!

Yea seems like the first step should be fixing the st7735 before attempting to use the screen as part of Envior+.

Will let you know if I discover anything.

---

<div class="post-metadata">

**Author:** ![nemecek\_f](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/nemecek_f/32/10286_2.png) [@nemecek\_f](https://forums.pimoroni.com/u/nemecek_f)\
**Post date:** [November 27, 2023, 7:54pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/5 "2023-11-27T19:54:13Z")

</div>

I think I found the exact issue we have, it has also fixes by using older versions of st7735 either via commit or pinning the version of the library:

> <https://github.com/pimoroni/enviroplus-python/issues/128>
>
> After installing enviroplus-python library as described in the documentation the… \`lcd.py\` example fails with an error \`'int' object is not iterable'\`.
> 
> The reason is that the used \[ST7735\](https://github.com/pimoroni/st7735-python) library has had a breaking change (see https://github.com/pimoroni/st7735-python/issues/32 for details).
> 
> Until the code in this repository is fixed you can solve the problem like this:
> 
> \* uninstall ST7735 library (e.g. \`pip uninstall st7735\`)
> \* clone ST7735 repository (e.g. \`git clone https://github.com/pimoroni/st7735-python.git\`)
> \* checkout commit before introducing breaking change (e.g. \`git checkout c0733d6\`)
> \* install \*that\* version (e.g. \`pip install library/\`)
> 
> Note: If you are using a newer Pi OS using python virtual environments, you have to remember that \`su -\` and \`sudo\` do not respect a previously selected venv, so whenever you switch between the normal user and root, you have to make sure you activate the venv again.

---

<div class="post-metadata">

**Author:** ![dantwe](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@dantwe](https://forums.pimoroni.com/u/dantwe)\
**Post date:** [November 27, 2023, 11:33pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/6 "2023-11-27T23:33:42Z")

</div>

Yes! Thank you. I used `pip install pms5003==0.0.5` and `pip install st7735==0.0.5` and all of the example scripts I’ve tried work! (and the display displays things!).

I feel a bit bad for not trying out the branch and seeing if it fixes things, but it bundles together a whole load of changes by the looks of it, so I’m a bit daunted a the prospect of giving it a go.

---

<div class="post-metadata">

**Author:** ![nemecek\_f](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/nemecek_f/32/10286_2.png) [@nemecek\_f](https://forums.pimoroni.com/u/nemecek_f)\
**Post date:** [November 28, 2023, 4:04pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/7 "2023-11-28T16:04:11Z")

</div>

Did you do anything else than install these versions? I installed them, `pip freeze` shows I have these versions and yet the issue remains :(

---

<div class="post-metadata">

**Author:** ![dantwe](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@dantwe](https://forums.pimoroni.com/u/dantwe)\
**Post date:** [November 28, 2023, 11:46pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/8 "2023-11-28T23:46:44Z")

</div>

I didn’t _knowingly_ do anything different! It seems inconceivable that running `lcd.py` could give you the same error, the code in the st7735 library at that point is completely different

> <https://github.com/pimoroni/st7735-python/blob/c0733d678afaaff18726b1e8ed9de58fe33c427b/library/ST7735/ __init__.py#L175>

I can only guess that somehow python isn’t picking up the old/overridden dependency. At the risk of sounding daft, have you tried turning it off an on again? fwiw I’m running…

```auto
$ python --version
Python 3.9.2

```

on Legacy Raspberry OS and none of the fancy python venv stuff that I don’t understand anything about.

(It probably doesn’t help in any practical way but fwiw it looks like someone else has also managed to get things working using the pinned versions: [PIMORONI ENVIRO indoor monitor not working](https://forums.pimoroni.com/t/pimoroni-enviro-indoor-monitor-not-working/23384))

---

<div class="post-metadata">

**Author:** ![nemecek\_f](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/nemecek_f/32/10286_2.png) [@nemecek\_f](https://forums.pimoroni.com/u/nemecek_f)\
**Post date:** [December 10, 2023, 11:12am UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/9 "2023-12-10T11:12:35Z")

</div>

@dantwe mind sharing which package versions are you running?

I thought I’d try to wait for examples to be updated, but still nothing, so I am trying virtual environment and currently have this setup, which fails on a `numpy` error:

```auto
numpy==1.26.2
Pillow==10.1.0
pms5003==0.0.5
pyserial==3.5
spidev==3.6
ST7735==0.0.5

```

You can list all packages by running `pip freeze`. Thanks!

This is the numpy problem:

> Traceback (most recent call last):  
> File “/home/filip/Pimoroni/st7735/examples/venv/lib/python3.9/site-packages/numpy/core/ **init**.py”, line 24, in   
> from . import multiarray  
> File “/home/filip/Pimoroni/st7735/examples/venv/lib/python3.9/site-packages/numpy/core/multiarray.py”, line 10, in   
> from . import overrides  
> File “/home/filip/Pimoroni/st7735/examples/venv/lib/python3.9/site-packages/numpy/core/overrides.py”, line 8, in   
> from numpy.core.\_multiarray\_umath import (  
> ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):  
> File “/home/filip/Pimoroni/st7735/examples/venv/lib/python3.9/site-packages/numpy/ **init**.py”, line 130, in   
> from numpy. **config** import show as show\_config  
> File “/home/filip/Pimoroni/st7735/examples/venv/lib/python3.9/site-packages/numpy/ **config**.py”, line 4, in   
> from numpy.core.\_multiarray\_umath import (  
> File “/home/filip/Pimoroni/st7735/examples/venv/lib/python3.9/site-packages/numpy/core/ **init**.py”, line 50, in   
> raise ImportError(msg)  
> ImportError:
> 
> IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
> 
> Importing the numpy C-extensions failed. This error can happen for  
> many reasons, often due to issues with your setup or how NumPy was  
> installed.
> 
> We have compiled some common reasons and troubleshooting tips at:
> 
> ```
> https://numpy.org/devdocs/user/troubleshooting-importerror.html
> 
> ```
> 
> Please note and check the following:
> 
> - The Python version is: Python3.9 from “/home/filip/Pimoroni/st7735/examples/venv/bin/python3”
> - The NumPy version is: “1.26.2”
> 
> and make sure that they are the versions you expect.  
> Please carefully study the documentation linked above for further help.
> 
> Original error was: libopenblas.so.0: cannot open shared object file: No such file or directory
> 
> The above exception was the direct cause of the following exception:
> 
> Traceback (most recent call last):  
> File “/home/filip/Pimoroni/st7735/examples/shapes\_mine.py”, line 23, in   
> import ST7735  
> File “/home/filip/Pimoroni/st7735/examples/venv/lib/python3.9/site-packages/ST7735/ **init**.py”, line 23, in   
> import numpy as np  
> File “/home/filip/Pimoroni/st7735/examples/venv/lib/python3.9/site-packages/numpy/ **init**.py”, line 135, in   
> raise ImportError(msg) from e  
> ImportError: Error importing numpy: you should not try to import numpy from  
> its source directory; please exit the numpy source tree, and relaunch  
> your python interpreter from there.

---

<div class="post-metadata">

**Author:** ![dantwe](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@dantwe](https://forums.pimoroni.com/u/dantwe)\
**Post date:** [December 10, 2023, 1:54pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/10 "2023-12-10T13:54:07Z")

</div>

hi, no worries, here’s the entire output of my `pip freeze`

```auto
ads1015==1.0.0
arandr==0.1.10
astral==3.2
astroid==2.5.1
asttokens==2.0.4
automationhat==0.2.0
beautifulsoup4==4.9.3
blinker==1.4
blinkt==0.1.2
buttonshim==0.0.2
Cap1xxx==0.1.3
certifi==2020.6.20
cffi==1.14.5
chardet==4.0.0
click==7.1.2
colorama==0.4.4
colorzero==1.1
configparser==6.0.0
cryptography==3.3.2
cupshelpers==1.0
dbus-python==1.2.16
distro==1.5.0
docutils==0.16
drumhat==0.1.0
envirophat==1.0.0
enviroplus==0.0.6
ExplorerHAT==0.4.2
Flask==1.1.2
font-roboto==0.0.1
fonts==0.0.3
fourletterphat==0.1.0
gpiod==2.1.3
gpiodevice==0.0.2
gpiozero==1.6.2
html5lib==1.1
i2cdevice==1.0.0
idna==2.10
isort==5.6.4
itsdangerous==1.1.0
jedi==0.18.0
Jinja2==2.11.3
lazy-object-proxy==0.0.0
logilab-common==1.8.1
ltr559==1.0.0
lxml==4.6.3
MarkupSafe==1.1.1
mccabe==0.6.1
microdotphat==0.2.1
mote==0.0.4
motephat==0.0.3
mypy==0.812
mypy-extensions==0.4.3
numpy==1.19.5
oauthlib==3.1.0
paho-mqtt==1.6.1
pantilthat==0.0.7
parso==0.8.1
pexpect==4.8.0
pgzero==1.2
phatbeat==0.1.1
pianohat==0.1.0
picamera==1.13
picamera2==0.3.12
pidng==4.0.9
piexif==1.1.3
piglow==1.2.5
pigpio==1.78
Pillow==8.1.2
pimoroni-bme280==1.0.0
ply==3.11
pms5003==0.0.5
psutil==5.8.0
pycairo==1.16.2
pycparser==2.20
pycups==2.0.1
pygame==1.9.6
Pygments==2.7.1
PyGObject==3.38.0
pyinotify==0.9.6
PyJWT==1.7.1
pylint==2.7.2
PyOpenGL==3.1.5
pyOpenSSL==20.0.1
PyQt5==5.15.2
PyQt5-sip==12.8.1
pyserial==3.5b0
pysmbc==1.0.23
python-apt==2.2.1
python-prctl==1.7
pytz==2023.3.post1
rainbowhat==0.1.0
reportlab==3.5.59
requests==2.25.1
requests-oauthlib==1.0.0
responses==0.12.1
roman==2.0.0
RPi.GPIO==0.7.0
RTIMULib==7.2.1
scrollphat==0.0.7
scrollphathd==1.2.1
Send2Trash==1.6.0b1
sense-hat==2.6.0
simplejpeg==1.6.4
simplejson==3.17.2
six==1.16.0
skywriter==0.0.7
smbus2==0.4.3
sn3218==1.2.7
sounddevice==0.4.6
soupsieve==2.2.1
spidev==3.5
ssh-import-id==5.10
ST7735==0.0.5
thonny==4.0.1
toml==0.10.1
touchphat==0.0.1
twython==3.8.2
typed-ast==1.4.2
typing-extensions==3.7.4.3
unicornhathd==0.0.4
urllib3==1.26.5
v4l2-python3==0.3.2
webencodings==0.5.1
Werkzeug==1.0.1
wrapt==1.12.1

```

---

<div class="post-metadata">

**Author:** ![sean\_42](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@sean\_42](https://forums.pimoroni.com/u/sean_42)\
**Post date:** [December 15, 2023, 8:35pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/11 "2023-12-15T20:35:43Z")

</div>

Hi @nemecek_f @dantwe – Have you by chance figured out any explanation to these error messages?

The flavor of error message that I’m getting is as follows:

Woah there, suitable gpiochip not found!  
⚠️ /dev/gpiochip0: 9 is an int and has been skipped, did you mean “PIN9” or “GPIO9”?

I’m not overly technical, but this is the fourth Envrio+ / Raspberry Pi sensor I’ve built over the last couple of years. I’ve never encountered an error like this before while following [the setup tutorial posted here](https://learn.pimoroni.com/article/enviro-plus-and-luftdaten-air-quality-station) by Pimoroni.

My guess is that something has broken / changed on the Pimoroni side of the code and really hope an update comes through soon. Was curious if you heard anything?

Thanks!

---

<div class="post-metadata">

**Author:** ![dantwe](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@dantwe](https://forums.pimoroni.com/u/dantwe)\
**Post date:** [December 15, 2023, 8:49pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/12 "2023-12-15T20:49:15Z")

</div>

hi @sean_42 , yes those are exactly the same errors, have you tried running `pip install pms5003==0.0.5` and `pip install st7735==0.0.5` ? The test scripts _should_ work once you’ve set those dependencies to earlier versions.

---

<div class="post-metadata">

**Author:** ![nemecek\_f](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/nemecek_f/32/10286_2.png) [@nemecek\_f](https://forums.pimoroni.com/u/nemecek_f)\
**Post date:** [December 16, 2023, 10:47am UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/13 "2023-12-16T10:47:47Z")

</div>

I am still stuck and honestly pretty tired trying to fix it so I will probably wait for the update.

I currently cannot get over the Numpy error. Tried the code from the pull request, but that fails during installation because of permission issues and when I run it as `sudo` the script says it shouldn’t be run as sudo and exists early.

---

<div class="post-metadata">

**Author:** ![sean\_42](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@sean\_42](https://forums.pimoroni.com/u/sean_42)\
**Post date:** [December 18, 2023, 5:45pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/14 "2023-12-18T17:45:27Z")

</div>

Hi @dantwe and @nemecek_f – thank you so much for your replies. I tried the pip commands recommended by @dantwe and was able to get the Luftdaten script up and running. The one wrinkle is that I’m not able to execute the “Luftdaten.py” script by double-clicking “Execute in Terminal” via the File Manager (the terminal window opens for a second, then crashes), but if I manually run it using Terminal (cd enviroplus-python/examples, python luftdaten.py) it opens just fine. So who knows? But end of story, I have my new Enviro+ monitor up and running on the roof.

Thanks again for your help and good luck!

---

<div class="post-metadata">

**Author:** ![SithLord](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@SithLord](https://forums.pimoroni.com/u/SithLord)\
**Post date:** [December 21, 2023, 6:06pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/15 "2023-12-21T18:06:22Z")

</div>

With the latest version of the python code, I think I have a solution for the examples, which is relatively simple to update:  
Where the display for st7735 is setup, change :

```auto
disp = st7735.ST7735(
    port=0,
    cs=1,
    dc=9,
    backlight=12,
    rotation=270,
    spi_speed_hz=10000000
)

```

to

```auto
disp = st7735.ST7735(
    port=0,
    cs=1,
    dc="9",
    backlight="12",
    rotation=270,
    spi_speed_hz=10000000
)

```

The change to gpiodevice python library appears to have changed the expected type of argument (string from integer), but the value remains the same. I tried PIN and GPIO values, but neither of those worked, because the gpiod still expects a numeric value and has also been updated: [Pypi gpiod (at time of writing V2.1.3)](https://pypi.org/project/gpiod/).

This impacts any example script that uses st7735 and even the examples there also need to be updated. Reference change in gpiodevice [Change to raise error if pin is passed as integer](https://github.com/pimoroni/gpiodevice-python/commit/c64dc2f8ad58da9af51e35290b2fdf7e6a63fca1)

---

<div class="post-metadata">

**Author:** ![Conor](https://avatars.discourse-cdn.com/v4/letter/c/9d8465/32.png) [@Conor](https://forums.pimoroni.com/u/Conor)\
**Post date:** [December 22, 2023, 5:12pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/16 "2023-12-22T17:12:12Z")

</div>

I’m having similar issues, I’ve setup a pi4 with the latest raspbian. For some reason I’ve had to setup the library using a virtual environment as the ./install.sh didn’t seem to work out of the box, it ran but didn’t install the pre-reqs. I’ve half fixed the tips posted in this thread, but a lot of the examples have various errors relating to the libraries e.g. [Python pillow/PIL doesn't recognize the attribute "textsize" of the object "imagedraw" - Stack Overflow](https://stackoverflow.com/questions/77038132/python-pillow-pil-doesnt-recognize-the-attribute-textsize-of-the-object-imag) . I’ll see if I can get it all fixed.

---

<div class="post-metadata">

**Author:** ![Conor](https://avatars.discourse-cdn.com/v4/letter/c/9d8465/32.png) [@Conor](https://forums.pimoroni.com/u/Conor)\
**Post date:** [December 22, 2023, 6:05pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/17 "2023-12-22T18:05:33Z")

</div>

A quick update, everything seems to work as expected using a combination of bullseye, the installer script and the pinned library versions mentioned earlier.

---

<div class="post-metadata">

**Author:** ![nemecek\_f](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/nemecek_f/32/10286_2.png) [@nemecek\_f](https://forums.pimoroni.com/u/nemecek_f)\
**Post date:** [December 30, 2023, 3:22pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/18 "2023-12-30T15:22:10Z")

</div>

Thanks so much! This actually worked. For example for the `gif.py` example code.

---

<div class="post-metadata">

**Author:** ![nemecek\_f](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/nemecek_f/32/10286_2.png) [@nemecek\_f](https://forums.pimoroni.com/u/nemecek_f)\
**Post date:** [December 30, 2023, 4:02pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/19 "2023-12-30T16:02:31Z")

</div>

So that is the LCD working, but not the rest :D

> Traceback (most recent call last):  
> File “/home/filip/Pimoroni/enviroplus/examples/particulates.py”, line 24, in   
> readings = pms5003.read()  
> File “/home/filip/.local/lib/python3.9/site-packages/pms5003/ **init**.py”, line 127, in read  
> raise SerialTimeoutError(“PMS5003 Read Timeout: Failed to read start of frame byte”)  
> pms5003.SerialTimeoutError: PMS5003 Read Timeout: Failed to read start of frame byte

Seems there is similar PINs issue with the PMS5003 library dammit.

---

<div class="post-metadata">

**Author:** ![sebgus](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@sebgus](https://forums.pimoroni.com/u/sebgus)\
**Post date:** [January 1, 2024, 4:39pm UTC](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365/20 "2024-01-01T16:39:18Z")

</div>

So I finally got the PMS5003 working on my Zero W.  
I did a clean install of RPiOS 11 (bullseye) and installed the enviroplus-python package.  
Then I uninstalled the pms5003-0.0.5 package and installed pms5003-1.0.0 instead, along with two changes I had to make:  
1.) Set ‘enable\_uart=1’ in /boot/config.txt  
2.) Modify \_ \_ init \_ \_.py in the pms5003 package and add a row for “Raspberry Pi Zero W” in the ‘PLATFORMS’ dict. Just copy the settings that the Pi 4 uses.

Try it out and let me know if you run into any issues.

Anyone from the Pimorino crew which can confirm my findings?

[Next page](https://forums.pimoroni.com/t/issue-with-enviro-with-rpi-zero-display-and-particles-not-working/23365.md?page=2)
