1,353 questions
-2
votes
0
answers
34
views
Raspberry Pi 4 - Solid Green LED (No SD) turns OFF when SD card is inserted [closed]
Without SD Card: When I power on the Pi with no SD card, the Red LED is solid and the Green LED (ACT) is also solid.
With SD Card: As soon as I insert a flashed MicroSD card and power it on, the Red ...
0
votes
0
answers
40
views
Why spidev.SpiDev() is creating an error on RPi 4b?
I have two RPi 4b boards and two NRF24L01 PA modules.
The goal is to connect two Raspberry Pi 4b boards via NRF to send and receive signals.
I am trying to follow this atricle.
I only changed from ...
0
votes
1
answer
105
views
cross compile aarch64 cannot locate libgpiod in sysroot [closed]
I am cross compiling using Eclipse on amd64 Ubuntu 20.04 Host with target rpi4 aarch64 running Debian12 (bookworm)
I am using cross-compiler from sourceforge: cross-gcc-12.2.0-pi_64.tar.gz
For sysroot ...
0
votes
0
answers
45
views
Restore pullup pins became LOW
I need to connect two normally open buttons to my Raspberry 4 and read when they are pressed.
I decided to try with the GPIO 16 in order to understand if pull up logic works as expected after set up, ...
0
votes
0
answers
64
views
Compiling QT with EGLFS on Raspbian Lite (Trixie) for Pi 4
in the past I was able to compile QT with EGLFS on Raspbian Buster. I don't remember exactly how I did it, but it uses FKMS driver. Back then full KMS was not supported on Pi 4.
I read that these days,...
0
votes
1
answer
124
views
dockerized rust application shrank [closed]
I have the following dockerfile:
# Build stage
FROM rust:1.90-bookworm AS builder
# Install build dependencies
RUN apt-get update && \
apt-get install --no-install-recommends -y pkg-config=...
6
votes
2
answers
148
views
Rust core::arch::asm throwing error where type u64 doesn't fit into class reg
I have recently been learning how to program bare metal to write a kernal for the rpi4b. The last thing I needed to add was a way to have the main script only run on one core. The method I decided to ...
1
vote
1
answer
93
views
ModuleNotFoundError: No module named 'pandas' on Raspberry Pi even after installing from requirements.txt
I’m running a Python project on a Raspberry Pi (Debian / Raspberry Pi OS, Python 3.9.2).
The project has its own virtual environment (.venv), and I launch it with a script (alsv4) that starts multiple ...
1
vote
1
answer
97
views
Saving image from captive portal page closes portal pop-up and WLAN connection without saving image
Background
I'm developing a physical python-based application on a Raspberry Pi 4 with a basic UI, at the end of which I present the user with a photo to download. To do that, a QR code is presented ...
0
votes
0
answers
129
views
AArch64 RPi4b bare-metal OS hangs after MMU enable
I am currently writing a small bare-metal OS for Raspberry Pi 4b for the AArch64/Arm64 architecture.
Unfortunately the OS hangs after enabling the MMU on real hardware. When testing the OS in QEMU ...
0
votes
1
answer
140
views
Drawing specific ASCII characters causes screen glitches in Circle framework for the Raspberry Pi
I'm a sophomore in college working on a personal project involving an embedded Raspberry Pi and HDMI out.
However, I'm running into a very strange problem when displaying certain characters to the ...
0
votes
0
answers
88
views
Got this error just after booting my raspberrypi 4 with raspberrypi no desktop environment while starting bluetooth service
Got this error just after booting my raspberrypi 4 with raspberrypi no desktop environment while starting bluetooth service.
Now this one Jun 21 20:22:27 rpi systemd[1]: Started bluetooth.service - ...
0
votes
0
answers
68
views
Raspberry Pi 4 Fingerprint Sensor
I recently got a "Basic Fingerprint Sensor With Socket Header Cable" from Adafriut for an assessment for my studies. I had some code running and the sensor was working but not to the right ...
2
votes
1
answer
222
views
google-api-python-client random timeout error
I have project that involves taking a picture every one hour with a Raspberry and saving it to Google Drive. I'm using the google-api-python-client to connect to a Google Drive and apscheduler to ...
0
votes
1
answer
75
views
Python Script will not run in crontab -e and script has errors Missing X server or $DISPLAY
I have a Raspberry Pi 4 that I use at different locations to run a digital display. I use this script to run at reboot so that I don't have to determine the IP address each time and just start ...
1
vote
1
answer
153
views
std::cout problems with specific german characters ( Ä, Ö, Ü )
I currently work on a project on a Raspberry Pi using c++. I have problems streaming german special characters to the terminal. I wrote a logger::log() function and use it inside a classmethod.
If I ...
-1
votes
1
answer
76
views
Background threads stoping
i have a python application, that contains functions to be called by interval.
def call_repeatedly(interval, func, *args, **kwargs):
stopped = threading.Event()
lock = threading.Lock() # Lock ...
0
votes
2
answers
228
views
pyautogui is not updating mouse position on Raspberry
I try to get the mouse position on my Raspberry 4. I used pyautogui in the past, which was working fine. But on the Raspberry the mouse position returned by pyautogui is stale.
Other functions on ...
1
vote
0
answers
169
views
Linux DT-Overlay for MCP2515 with interrupt PIN
it's time to ask a human :). I'm trying to write a DT-Overlay for my own MCP2515 driver (just for learning purposes) and have troubles with the Interrupt-PIN configuration.
I'm using raspberry pi 4b ...
1
vote
1
answer
143
views
Raspberry Pi 4 bare metal GPIO set/clear issue
I'm trying to get going on bare metal programming with my rapsberry pi 4b and I'm encountering an issue when trying to run it on 64bits. Whenever I try to write to the GPIO SET0 register, the program ...
0
votes
1
answer
338
views
Booting QNX image on Raspberry Pi 4 get stuck in rainbow screen
I am following a tutorial (https://gitlab.com/qnx/quick-start-images/raspberry-pi-qnx-8.0-quick-start-image/-/wikis/Getting-Started) to flash QNX image onto Raspberry Pi 4. I copied the QNX image (com....
0
votes
0
answers
158
views
ADS1263 python voltage reference
For the code for ADS1263 I wanted to measure with voltage reference 3.3V which comes from Raspberry Pi. How command for this should look like?
The code is
import board
import busio
import ADS1263
...
0
votes
1
answer
88
views
Assembly program not clearing the GPIO pin on my Raspberry Pi 4
How's it going, I figured that I would come back to this problem after a couple of months, I made a gpio driver in ARM64 assembly for the Raspberry Pi 4, but the clr0 offset isn't working for me to ...
2
votes
0
answers
107
views
QT show the same content on multiple monitors
I have this kind of info app that is supposed to show some info content. It's written in QT / QML. Qt version is 5.12.
It runs on Raspberry Pi 4 - Lite image, no X, OpenGLES. Now what if I wanted to ...
1
vote
0
answers
34
views
rfid card reading is OK but not finished
I have an USB RFID reader (EF4100 125kHz) connected to Raspberry Pi 4 Model B. The RFID reader is act like a keyboard and it read the first 10 digit. When I debugging the code with Thonny. At the &...
-1
votes
2
answers
338
views
Python Pydantic Module not found in Docker Container (Raspberry Pi)
I'm trying to transfer a Flask web app to a Raspberry Pi 4b using Docker. The container runs flawlessly on AMD architecture. The ARM architecture is to be tested on the Raspberry. The creation of the ...
0
votes
0
answers
283
views
Virtual environment marked as externally managed environemnt
I know that this error should be raised normally, but I am already working in a virtual environment, where the error should not be raised.
I created and activated a virtual environment on my Raspberry ...
0
votes
1
answer
451
views
Autorun script in Raspberry Pi 4
I am trying to autorun my Python script whenever my Raspberry Pi 4 boots up or when I start connecting it to a power source, but I already tried different methods but didn't work.
By the way, my ...
1
vote
2
answers
670
views
QNX on RPi4 how do I login the first time
I did all the crazy stuff required to get the QNX RPi4 image. I cooked in the simplest way possible the SD image (cat qnx_sdp8.0_rpi4_quickstart_20241023.img > /dev/sda) and booted. I press on the ...
0
votes
1
answer
87
views
JavaFX not rendering properly on Raspberry Pi (aarch64)
We are trying to port a library of jars using JavaFX from Windows, where they currently run, to linux / aarch64.
Goal:
is to get them running on off the shelf ARM hardware, i.e. Raspberry Pi. (ideally ...
1
vote
0
answers
150
views
How do I stream data from my Neurosky Mindwave Mobile 2 to my Raspberry Pi 4?
I have managed to connect and pair my Neurosky Mindwave Mobile 2 to my Raspberry Pi 4. But when I try and stream data from the headset to my Raspberry Pi, my code says "No data received".
...
0
votes
0
answers
88
views
python code running as a service to record and play audio
i have a python code running as a service on Raspberry Pi 4. The app is basically to record some audio in a certain language using a microphone, save the audio to a .wav file, then use ...
2
votes
0
answers
51
views
Playback / recording problems
The code I'm working on gives me some errors. This results in frame lost when recording.
The overview: A video is paused in the first frame. When the motion sensor is detected the video is playing a ...
0
votes
0
answers
126
views
Raspberry PI 4, Java, Pi4j: Unable to load libgpiod.so
I am trying to get Java and Pi4j to work on my new Rasperry Pi 4 B.
I followed pi4j's instructions exactly. With jbang or maven I have same problem.
The pi4j-example-minimal ist compiled and packaged ...
1
vote
0
answers
75
views
Generating random number (dice roll) and storing into array
I'm a new ARM programmer and I have a project that I'm working on where I generate a random number between 1-6 (simulating a dice roll) and store that value into an array. Then I want to print that ...
3
votes
0
answers
543
views
Problem installing the rpi-rgb-led-matrix library
I'm creating my first Python program using a Respberry Pi 4 to connect to a 16x32 LED Hub75 board. From what I've researched, this rpi-rgb-led-matrix library is the only one compatible with this board....
1
vote
2
answers
1k
views
Building python3.13 with tkinter support on Bullseye on Pi4B
The Bullseye image's python3.9.2 finds tkinter, but I intend to have other versions of python3, all supporting tkinter.
First python3.12.5 was built from source and tried. The python 3.12.5 seems to ...
-1
votes
1
answer
152
views
Need to Understand Why Docker Stopped Working?
I have several Docker containers running on a Raspberry Pi 4b, they have all suddenly stopped working and I don't know why... If I try to update my containers I get this error
Cannot connect to the ...
1
vote
0
answers
53
views
yolov5 trained my data set on my laptop how I send it to my Raspberry Pi
I got yolov5 and trained my data set on my laptop now I want to send it to my Raspberry Pi 4b module for work. how I do it
direct copy to raspberry pi but not working
(myenv) h@raspberrypi:~/project/...
1
vote
2
answers
125
views
How do I ensure that my Python script and its child processes handle Ctrl-C properly?
System:
A Raspberry Pi-4 running Buster using Python 3.7 with an Adafruit 128x32 2.23" OLED Bonnet connected to the GPIO pins. Ref: https://learn.adafruit.com/adafruit-2-23-monochrome-oled-...
0
votes
1
answer
293
views
A2DP SINK no audio when making phone calls
I am running LineageOS on a RaspberryPI for a car stereo head deck which is working extremely well.
I want to try to get bluetooth hands free working. I have enabled bluetooth settings which allow me ...
0
votes
1
answer
228
views
gpiozero combining button events in event driven code
I'm pretty new to the Python and Raspberry business and am currently working on my first major application. I like gpiozero and the ability to work with events throughout.
I would like to make my code ...
1
vote
0
answers
295
views
Error installing Mongodb 4.4 on Raspberry pi 4B 8Gb
I have 2 Raspberry pi 4B of 8 Gb, same micro SD card (make, model and capacity), same processor, same updated OS, they are almost a clone except for the installed applications, which are not unusual ...
1
vote
0
answers
367
views
How best to capture a long exposure image on PiCamera2
I am trying to use a PiCamera to analyse the intensity of a light source. I have written some very simple code to image it. The light source is not very bright but I don't want any problems from ...
0
votes
0
answers
139
views
Using Python and awoxmeshlight or bluepy, cannot connect to an EGLO BTLE bulb, even if detected using hcitool lescan
Using a RaspberryPi 4B running Raspbian buster, I can run hcitool lescan --discovery=g and see the mac address of the EGLO bulb needed.
I have tried an example programme using awoxmeshlight (the bulb ...
0
votes
1
answer
69
views
How to remove and replace USB wireless dongle programmatically
I have a Raspberry Pi 4 (8G) with the Debian Lite OS, Rii Wireless keyboard and mouse.
The keyboard is fine, but the mouse freezes quite often while watching Youtube or video. My solution is to ...
0
votes
1
answer
529
views
Raspberry Pi 4 Compute Module does not show output with HDMI display
I use Raspberry Pi 4 CM in bound with CM4-to-Pi4-Adapter. I've flashed a custom Yocto-image in that, using rpiBoot and RPi Imager for. Now I'm trying check my Raspberry's features, but when I try to ...
0
votes
1
answer
2k
views
pygame.error: ALSA: Couldn't open audio device: Unknown error 524, What is going on?
I'm working on a function that takes text and turns it into a .wav file using pyttsx3 on an RPi4B, then using pygame it plays the .wav file (I know pyttsx3 has a built in function for this but we got ...
2
votes
0
answers
97
views
setsockopt Timeout Not working Properly In Raspberry Pi
I am working with Raspberry Pi 4 with bookworm 64bit OS for connecting devices with TCP/IP.
I need some delay for socket timeout if no response from my server. The Raspberry Pi acts as a client. I am ...
0
votes
0
answers
194
views
The requested image's platform (linux/arm64) does not match the detected host platform (linux/arm/v8)
I try to build a docker image for my raspberry pi 4b which supports 64bits arch, but OS installed is 32bits (I can't change it).
uname -a
Linux raspberrypi 6.1.32-v8+ #1656 SMP PREEMPT Wed Jun 7 11:...