Questions tagged [raspberry-pi4]

Currently (as of May 2020) the newest model of the Raspberry-Pi product family, released in June 2019. PROGRAMMING QUESTIONS ONLY (AND ONLY SPECIFICALLY FOR THIS MODEL). 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.

739 questions
17
votes
2 answers

How to turn USB port power on and off in Raspberry PI 4

On a Raspberry PI 3B+, it's simple to turn power on its four USB ports off and on. Simply write a "0" to /sys/devices/platform/soc/3f980000.usb/buspower to turn power off and a "1" to turn power on. The same method doesn't work on Raspberry PI 4B,…
8
votes
1 answer

Ubuntu Focal headless setup on Raspberry pi 4 - cloud init wifi initialisation before first reboot

i'm having trouble in setting up a full headless install for Ubuntu Server Focal (ARM) on a Raspberry pi 4 using cloud init config. The whole purpose of doing this is to simplify the SD card swap in case of failure. I'm trying to use cloud-init…
DragosN
  • 81
  • 2
5
votes
2 answers

Microk8s, MetalLB, ingress-nginx - How to route external traffic?

Kubernetes/Ubuntu newbie here! I'm setting up a k8s cluster using a single Raspberry Pi (hoping to have more in the future). I'm using microk8s v1.18.8 and Ubuntu Server 20.04.1 LTS (GNU/Linux 5.4.0-1018-raspi aarch64). I'm trying to access one of…
Pablo
  • 51
  • 1
  • 4
5
votes
3 answers

Installing Anaconda on Raspberry Pi 4 with Ubuntu 20.04

I am having issues installing Anaconda on my Raspberry Pi. When I attempt to install Anaconda I get this message: Anaconda3-20.02-Linux-x86_64.sh: line 404:/home/ubuntu/anaconda3/conda.exe: cannot execute binary file: Exec format error When I try…
Matt
  • 53
  • 1
  • 1
  • 5
4
votes
1 answer

Can't install Pip package on Raspberry PI 4 (adafruit_circuitpython_neopixel)

I'm trying to install the library above on a Raspberry Pi 4 running Raspbian Buster / RetroPi . Setup collects packages, and then fails on setup.py stating: * Setup can't determine the value of PAGE_SIZE on your system, so it will * default to…
4
votes
1 answer

How do I get amixer PCM numid=3 to work on Raspberry Pi 4?

I have a Raspberry Pi 4 with speakers connected to the 3.5mm jack. I have no HDMI connected, but I have the standard 7 inch monitor connected. It runs raspbian. Edit: I found out that this was normal behaviour due to an OS update, se my comment…
jek
  • 66
  • 1
  • 4
4
votes
0 answers

Docker start container: error creating overlay mount ... /merged: no such file or directory

I had an issue with docker running on a raspberry pi 4 and I purged all of it apart from the folder with the containers/images. Reinstalled docker, run helloworld, runs ok. Installed portainer to manage the containers, several of them start but a…
user13394025
  • 71
  • 2
  • 4
4
votes
1 answer

MetalLB with Kubernetes, Can't connect to VIP or Port

Can't connect to Kubernetes Deployment (App) when using the MetalLB load balancer. Attempting to configure floating IP so when one node fails and the workload moves across, I still know what the IP is when on the new node with new…
Anton2079
  • 41
  • 2
3
votes
0 answers

How do I get 'onoff' working on a Raspberry Pi 4B?

I am trying to make a 'Coocking-aid'. I am using a Raspberry Pi 4B with the official 7" touchscreen and an active piezo buzzer. The 'program' should run in Chromium (the RPi's webbrowser) and I write it in HTML, CSS and Javascript. I can do some…
PimV
  • 131
  • 1
  • 4
3
votes
2 answers

PyAudio no sound under Docker

I have built a simple docker image and am trying to figure out why PyAudio will not output any sound. speaker-test outputs pink noise to the headphone jack. aplay sound.wav also works python3 play_wave.py sound.wav hangs and doesn't output any…
Paul Wieland
  • 645
  • 2
  • 8
  • 25
3
votes
0 answers

Q: Write a string to HID device in Python?

I have an RFID reader with 2 antennas (ant1, ant2) attached to a RPi4 (raspbian) that behaves as a HID USB keyboard. I have managed to read its antennas oputput following these posts: How can I get a String from HID device in Python with…
parovelb
  • 193
  • 1
  • 11
3
votes
0 answers

Deep Learning Model not working on Raspberry Pi 4 (ALSA ISSUES for USB Microphone)

I am working on a Trigger Word Detection System. I need to run the model on Raspberry Pi. The Code is working absoulutely fine on Windows PC. But on rasberry I am getting alot of warning with respect to ALSA. I have even changed my model to TFLITE…
3
votes
1 answer

Ansible creating directories from a list of variables

I'm starting to learn ansible and trying to create some directories that will be used in different tasks in the playbook so I create variables for each one. My playbook so far. --- - name: tests hosts: all vars: dir1: /data/dir1 dir2:…
CJZ
  • 33
  • 3
3
votes
1 answer

"getNativeWindowHandle+0x54" on Gluon JavaFX 16 EA 4 via DRM

I was following the steps given at Gluon Documentation to run JavaFX on Raspberry Pi 4 via DRM. I downloaded the JavaFX EA 16 builds from here. javafx.properties file…
dubbadhar
  • 113
  • 9
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
1
2 3
49 50