Category : raspberry-pi

I just got a Raspberry Pi Zero 2W for Christmas along with a Pimoroni Enviro – Indoor Monitor (Not to be confused with the Pimoroni Enviro+) I soldered in the header myself and then connected all the peripherals. But then I got to the Python library section. Using Pimoroni’s instruction (https://learn.pimoroni.com/article/getting-started-with-enviro-plus) I downloaded the Python ..

Read more

I’m running a Python code in a Raspberry Pi 4 which reads signals from certain pins and responds accordingly. On this function, after multiple prints in between lines, I narrowed the problem to (apparently) a sleep() call. def on_enter_sanitizing(self): try: print(‘Entered state: Sanitizing’) self.setLevelLedCallbacks() #This function has a print at the end, which shows sleep(0.8) ..

Read more

I am installing an adafruit module for a MPL3115A2 Barometric Pressure/Altitude/Temperature Sensor on raspberry pi 3 model B. Upon running the pip install command on my raspberry pi I had this error [email protected]:~ $ pip3 install adafruit-circuitpython-mpl3115a2 Collecting adafruit-circuitpython-mpl3115a2 Using cached https://www.piwheels.org/simple/adafruit-circuitpython-mpl3115a2/adafruit_circuitpython_mpl3115a2-1.2.9-py3-none-any.whl Collecting adafruit-circuitpython-busdevice (from adafruit-circuitpython-mpl3115a2) Using cached https://www.piwheels.org/simple/adafruit-circuitpython-busdevice/adafruit_circuitpython_busdevice-5.1.1-py3-none-any.whl Collecting Adafruit-Blinka (from adafruit-circuitpython-mpl3115a2) Using cached ..

Read more

When trying to build a Docker container based on the ‘python:3.11.0a3-alpine3.15’ image (I have tried other official Python images also) I’m getting an error while running a RUN command for installing my PIP requirements from a requriments.txt file. My Dockerfile looks like this FROM python:3.11.0a3-alpine3.15 WORKDIR /usr/src/app COPY requirements.txt . RUN pip install -r requirements.txt ..

Read more

I am trying to connect read location data from a usb GPS dongle on a raspberry pi. I can confirm the device is detected (folder /dev/ttyACM0 shown). [email protected]:~ $ ls /dev/tty* /dev/tty /dev/tty16 /dev/tty24 /dev/tty32 /dev/tty40 /dev/tty49 /dev/tty57 /dev/tty8 /dev/tty0 /dev/tty17 /dev/tty25 /dev/tty33 /dev/tty41 /dev/tty5 /dev/tty58 /dev/tty9 /dev/tty1 /dev/tty18 /dev/tty26 /dev/tty34 /dev/tty42 /dev/tty50 /dev/tty59 /dev/ttyACM0 ..

Read more