Questions tagged [raspberry-pi4]

PROGRAMMING QUESTIONS ONLY. Questions about general use should be asked on https://raspberrypi.stackexchange.com/

The Raspberry Pi 4B comes in three different models, the only difference being the amount of SDRAM (1GB, 2GB or 4GB).
The most notable spec improvements, compared to older models are:

  • 1.5GHz 64-bit quad-core Cortex-A72 ARM v8 CPU
  • 1GB, 2GB or 4GB LPDDR4-3200 SDRAM (depending on model)
  • Gigabit Ethernet
  • 2.4 / 5GHz 802.11ac Wireless LAN
  • Bluetooth 5.0 BLE
  • 2x USB 2.0, 2x USB 3.0
  • 2x micro HDMI ports (both support up to 4kp60)

Visit Raspberrypi-Stackexchange for general questions about the Raspberry Pi.
Also useful might be the original raspberry-pi tag info.

1309 questions
3
votes
1 answer

Logging rainfall with Python

First post and I am at a dead end with this problem. (some background) I have a raspberry PiZero which I am developing a weather station with, so far it logs temp, humidity and pressure as well as sending the data to the windy.com API. Recently I…
DanF
  • 47
  • 6
3
votes
1 answer

How can I fix exec format error on raspberry pi 4

I am trying to compile code on the raspberry pi 4 using ubuntu server 20.04.1 LTS. I am using gcc to compile it and every time I try and run the file after it gets compiled successfully it says -bash: ./out: cannot execute binary file: Exec format…
BackSpace7777777
  • 159
  • 3
  • 13
3
votes
0 answers

Not Getting Audio Output With PyAudio on Raspberry Pi 4

Kind of at a loss here. Currently the below code doesn't play a wav file as it should. I added some print statements and discovered that the while loop never finishes. I'm using a Raspberry Pi 4. I installed PyAudio using... sudo apt-get install…
ptan9o
  • 174
  • 9
3
votes
3 answers

Raspberry pi 4 controle GPIO with java

I want to controle a 16*2 lcd display on my raspberry pi4 with java. The problem is that Pi4J - the solution to modify the gpios with java is not updated to pi4. Is there another solution? This error occures when I start the…
John A.
  • 31
  • 2
3
votes
1 answer

Python Spacy KeyError: "[E018] Can't retrieve string for hash

I am trying to make my code run on Raspberry Pi 4 and been stuck on this error for hours. This code segment throws an error on it but runs perfectly on windows with the same project def create_lem_texts(data): # as a list def…
3
votes
0 answers

Raspberry Pi 4 install ffpmeg: mmal not found

Recently I use my raspberry Pi 4 and install ffmpeg-4.2.3. When I run ./configure --enable-shared --prefix=$PWD/_install --enable-gpl --enable-libx264 --enable-omx-rpi --enable-mmal --enable-hwaccel=h264_mmal --enable-decoder=h264_mmal…
smatezhang
  • 31
  • 2
3
votes
0 answers

Figuring out orientation of IMU using accelerometer and magnetometer

I have an IMU, and I am trying to obtain the orientation of it using just the accelerometer and magnetometer. I am using the gravity vector returned from the accelerometer and the vector returned from the magnetometer and finding their cross…
GGamer
  • 33
  • 5
3
votes
0 answers

Error : Connection refused with a post request between two module iot edge

I try to send an image to another module but I receive a connection refused. The image is sent from the CameraCapture to the Classify module by a Post request. The classifier respond me with a Connection Refused. The port 80 is exposed in the…
3
votes
1 answer

Camera for Raspberry Pi 4 integrate with OpenCV

I'm running openCV for some vehicle detection on a Raspberry Pi 4 model B. I purchased an IDS camera: https://en.ids-imaging.com/download-ueye-emb-hardfloat.html But integrating it into my code proved too much trouble as OpenCV.VideoCapture could…
AsafD
  • 31
  • 2
3
votes
0 answers

Valgrind reports hundreds of errors in Hello World program on RaspberryPi 4B

I have RaspberryPi 4B with latest Raspbian fully updated. I am trying to make things work like on RaspberryPi 3B, but even simple hello_world.c executed via valgrind is not without errors. Installed valgrind version is valgrind-3.7.0. When I run…
Matej
  • 782
  • 2
  • 6
  • 19
3
votes
1 answer

How to implement Modbus on Raspberry Pi?

I'm currently engaged in a project where I'm trying to implement Modbus with the Raspberry Pi 4 as master and controlling a number of actuators as slaves. For this purpose I've purchased a special shield for my Pi. I've run a demo test program that…
OverDemon
  • 103
  • 1
  • 3
  • 8
3
votes
1 answer

Is a Kubernetes Arm Master and x86 nodes wise/possible?

I don't even know if this is possible, but would it be wise? I don't know, but I think that the master node would not have to handle as much as the worker nodes. With that assumption I wanted to make my master as energy efficient as possible by…
Marc
  • 4,820
  • 3
  • 38
  • 36
2
votes
0 answers

neovim + lsp/clangd based autocompletion on Raspberry Pi 4

I am trying to configure a RPi4-based programming environment for embedded systems programming. I chose neovim as a primary editor due to ability to work with both "desktop" (with monitor and keyboard attached) and headless (remote, with ssh…
2
votes
0 answers

Why does response.json() work on my PC but not on my Raspberry Pi?

I'm trying to use the Raspberry Pi to get data from a json file. It works fine if i run the script on my pc, but at the Raspberry i get these Errors: Code: import requests headers = { "Accept": "*/*", "Accept-Encoding":…
lemon
  • 21
  • 2
2
votes
0 answers

Cross Compiling IamGui with SDL2 and Vulkan from Ubuntu 22.04 LTS WSL on Rasptberry Pi 4 aarch64 with cmake and aarch64-linux-gnu-gcc/g++

I'm trying to cross compile from Win10 to Raspian OS on the Raspberry Pi 4. For this reason I use the Ubuntu 22.04 LTS WSL. I installed gcc/g++, CMake, Ninja, SDL2, Vulkan SDK, aarch64-linux-gnu-gcc/g++. In the CMakeLists.txt I call…