1,224 questions
1
vote
1
answer
5k
views
How to create EMMC partition using u-boot mmc commands?
I'm using Raspberry PI Compute Module 4 for development. My RPI-cm4 has onboard EMMC 8GB memory. We are following below layout
For bootloader, we are using u-boot.
U-Boot> mmc list
mmcnr@7e300000: ...
0
votes
0
answers
49
views
node-sense-hat RTIMULib2 function getData() goes blank when scope changes
I am using the node-sense-hat package for Node.js to read sensor data from a sense hat on a Raspberry Pi 2 and save to a file.
I got it working for a single read or looping infinitely, but I found ...
0
votes
1
answer
321
views
Missing headerfiles running SWUpdate on Raspberrypi 2
I'm trying SWUpdate out on my RaspberryPi 2 by following this guide but I'm getting stuck when trying to 'make' as it from core/swupdat.c loads include/flash.h which in turn depends on libmtd.h and ...
0
votes
1
answer
1k
views
nvm install nodejs onto raspberry pi via ssh erroring
I am trying to download ARM version of node 14 for a Raspberry Pi via NVM and SSH (from my mac).
My Raspberry Pi is Raspberry Pi 2 Model B+ V1.2 2014
I have a 64GB SD card.
Architecture returns:
...
0
votes
1
answer
80
views
Nodejs is not fully functional when running on autostart
I am currently trying to change the volume of my Raspberry Pi with two html buttons (volume up and volume down), using nodeJS. The volume change is done by calling a bash script when clicking on one ...
0
votes
0
answers
209
views
Raspberry Pi 2 B Tkinter performance problem
I am trying to write a simple python program for a Rasperry Pi 2 Model B. When finished it should be able to get a few values via uart and display one out of 200 images based on that.
Additionally, it ...
-1
votes
1
answer
46
views
search for python libary to build display with images and videos
I am trying to write a program for a Raspberry 2B. The Job of the program is to show some images and a video based on a variable.
I can't really find a good library to build my visual output. It ...
1
vote
1
answer
1k
views
Add a dependency from a maven project to a non-maven project
I'm in the process of writing a java program for a Raspberry Pi where I want to access the GPIO.
For this I use the Pi4J-Library Version 2 (https://pi4j.com).
As IDE I use Visual Studio Code - as they ...
0
votes
0
answers
516
views
Errors starting Electron on Raspberry pi2
When I make my electron app start, the web app is going to open in the right way, but the serial comunication (with PSoC) that is supposed to work, because on my window's pc is working, on the ...
1
vote
1
answer
2k
views
serial.serialutil.SerialException: read failed
I'm doing a project with a Ublox NEO 6m gps and a Raspberry Pi 4 model B and I'm stuck on the following error:
File "gps3.py", line 23, in <module>
newdata=ser.readline()
File &...
0
votes
1
answer
242
views
Raspberry pi 2 B + Selenium Java = WebDriverException: java.net.ConnectException: Failed to connect
I've tried to use Selenium for Java, it's works perfect on Windows 10, but not on my Raspberry Pi 2 B, I've got an error.
Code line in error:
driver = new FirefoxDriver(firefoxOptions);
Error:
org....
9
votes
6
answers
41k
views
VNC on Raspberry Pi shows Cannot Currently Show the Desktop
I am trying to use VNC in a headless install on my Raspberry Pi 4, running Raspberry Pi OS, installed via Raspberry Imager. The install is more or less vanilla, as the only changes I have made are for ...
3
votes
1
answer
212
views
How do I load CSVs into tables in MariaDB running on a Raspberry Pi2?
I've installed MariaDB on my Pi2, which is connected to my network. I can access the Pi directly, through ssh or even VNC. I can also connect to it using MySQL Workbench.
I have CSVs (Fantasy Football ...
-1
votes
1
answer
264
views
Displaying PPT into RPI
I need to slideshow a PPT(slide by slide) in a RPI, can anyone suggest any python program to display the PPT.
Note:
Tried using "soffice --show ~/sample.pptx --norestore" command - Opens in ...
-2
votes
1
answer
37
views
Can i run a second web server?
So i own a raspberry pi server which runs a python web server i want to run a second web server on the pi but im not sure if it can handle it.
Raspberry pi 2 model B,
Python 3,
Ubuntu Software,
2
votes
0
answers
587
views
control GPIO pins of Raspberry pi from webpage
I am controlling Raspberry Pi GPIO pins with a python web app. Its work fine in my tests with flask-test-server but its not working from another network or from internet. Raspberry Pi is in a local ...
0
votes
1
answer
41
views
A Talking Seat - Script Help (Raspberry Pi)
Project Aim: Create a seat that when you sit on it, audio starts. When you leave, the audio stops. Next time someone sits down, the audio begins again. Each time it is a random track, different from ...
0
votes
0
answers
164
views
How to start Google-Assistant-Demo on boot in /etc/rc.local on a Raspberry Pi
I'm struggling with al the answers I have found till now, but nothing seems to work on my RPi.
I want to start google-assistant-demo on boot.
In created script named google_start.sh with:
#!/bin/bash
...
0
votes
0
answers
106
views
Nextcloud error while setting up on raspberry pi 2
I successfully installed the latest Raspberry pi OS aka Raspbian on my old pi (server edition) connected it via SSH using my laptop (headless setup) I am semi NOOB in Linux and followed this https://...
1
vote
1
answer
149
views
What steps are needed to detect a GPU interrupt on a Raspberry Pi3?
I am writing a bare-metal kernel, but an interrupt doesn't seem to be triggered when the EMMC INTERRUPT register becomes non-zero.
I have two cores idling, and one at EL3 with no data caches enabled ...
1
vote
1
answer
87
views
No audio in SonicPi using Raspi 2B
Just starting with SonicPi but getting no audio from analogue out (headphone socket).
.WAV's placed on Pi play fine using both 'phones and powered speakers but when I launch Sonic Pi and run the very ...
1
vote
0
answers
2k
views
Docker daemon cannot reach public docker registry that can be reached using curl
I'm trying to use docker on my raspberry pi 2B running archlinux arm, but the docker daemon cannot contact the docker registry.
docker pull hello-world results in docker daemon output:
DEBU[2020-07-...
0
votes
0
answers
1k
views
voicecommand: /usr/lib/arm-linux-gnueabihf/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by voicecommand) on raspberry pi
I tried setting up voicecommand on my raspberry pi running the latest version of raspbian buster, but everytime I try to run a voicecommand command I get this error:
voicecommand: /usr/lib/arm-linux-...
0
votes
1
answer
1k
views
PySerial Attribute Error with 'read_until'
I need some help troubleshooting an Attribute Error in my Python code.
I am working with a serial device connected by a /dev/ttyUSB0 to a Raspberry Pi 2B. My goal for this code is to read live serial ...
2
votes
2
answers
2k
views
How to pass I2C addresses to Adafruit CircuitPython code? (Running ADS1115)
I'm trying to run two Adafruit ADS1115s off of one Raspberry Pi, using two I2C addresses (0x48, 0x49). The address for each device can be set by tying the ADDR pin high (0x49) or leaving it floating (...
0
votes
1
answer
1k
views
Pygame audio won't start properly unless run as root
So I am working on an alarm clock project to run as part of a homebridge automation project, and I am writing the python script that will do the actual audible alarm. This script will be started by ...
0
votes
1
answer
227
views
Shortening python code for shining LEDs in a sequence
I'm writing python 3.7 code to turn on LEDs one at a time for a certain period of time. 8 LEDs are wired to Raspberry Pi 2 Model B V1.1 through a circuit. I would like users to be able to shine the ...
3
votes
1
answer
440
views
get variable from python script into php page
my Python script returns:
python /home/pi/sht/sht31.py
False
True
False
Temperature: 8.10668945312
Humidity: 83.49609375
I need to print humidity and Temperature into an index.php
I tried:
exec('...
0
votes
1
answer
2k
views
PiCamera not detected
I started working with a fresh Raspi. Enabled the camera module from raspi-config, rebooted my RPi.
When I then ran this simple code:
from picamera import PiCamera
import time
camera=PiCamera()
...
0
votes
0
answers
2k
views
Minimum FFMPEG configure options for H264 decoding
I'm working on a project using an LS1021A board, which has a Cortex-A7, NEON, FPU, etc, which seems to be very similar to a Raspberry Pi 2. We are streaming in H264 via RTP (UDP) with VLC to simulate ...
0
votes
1
answer
363
views
How can I use a physical button to print something to my thermal printer?
I recently purchased an AdaFruit thermal printer. (https://learn.adafruit.com/pi-thermal-printer/overview)
I just started programming for a class I am in and using a raspberry pi. I loved how ...
0
votes
0
answers
2k
views
ffmpeg error: Too large number of skipped frames xxxxx > 60000
I try to record on RasperryPI from usb Cam (/dev/video0) using segments to obtain sliced video.
The command I'm using is:
ffmpeg -input_format mjpeg -video_size 640x480 -i /dev/video0 -y -y -f v4l2 -...
-1
votes
2
answers
2k
views
Do I have to install `libbitcoin-server` to be able to include `bitcoin.hpp`?
I am reading the book "Mastering Bitcoin" from Antonopoulos and want to compile an example from that book. It does not tell which C++ library needs to be installed for #include <bitcoin/...
1
vote
1
answer
1k
views
dotnet core slow on Raspberry Pi 2
Dotnet core runtime is slow to start on Raspberry Pi 2
Raspberry Pi 2 was set up using the Lite (Raspbian 10, Buster) tar file from Raspbian site.
I installed openssh, php7.1, dotnet runtime and ...
1
vote
2
answers
1k
views
how can I use gpiozero robot library to change speeds of motors via L298N
In my raspberry pi, i need to run two motors with a L298N.
I can pwm on enable pins to change speeds. But i saw that gpiozero robot library can make things a lot easier. But
When using gpiozero robot ...
0
votes
1
answer
118
views
Can't update images changing GPIO pins
I am trying to create a program, that simply reads 2 pins in this case pin 17 and pin 27 using the BCM setmode.
Depending inthe value of each pin ( 0 or 1 ) the program will show on a screen a ...
0
votes
1
answer
41
views
Is there a way to get new Data on HTML without restarting the server?
I have a problem with my node.js express Server. I got an audio file. Every 5 seconds my raspberry pi records another audio file with the same name. This audio file should run on my website. My ...
1
vote
1
answer
5k
views
Reading tags UID with RC522 and USB SERIAL in Python with RPi2
I have a RPi2 (Python 2.7) with two RFID readers. One reader is an USB SERIAL hex Gigatek MF7 (connected to a serial port) and the other is the RFID-RC522 (connected to GPIO pins). The RC522 is wired ...
0
votes
1
answer
6k
views
Raspian wont boot into GUI
I don’t know what happened but my raspberry pi won’t boot up to a GUI anymore. All I get is a command line with a picture that says welcome to the raspberry pi desktop. Any idea what went wrong? This ...
0
votes
2
answers
159
views
Bash script behaves unexpected / Strange
First I want to apologize for being an absolute noob at programming, writing scripts, etc.
I'm running a FreeNAS Server and a Raspberry Pi which I'd like to include a sh-Script which should check if 8 ...
0
votes
0
answers
30
views
Same binary on raspberry pi 2 and 3?
I'm building an app on a raspberry pi 3. I'm using Qt.
Will the generated binary work on raspberry pi 2?
Thanks
3
votes
1
answer
460
views
Is there a lightweight Python module to load pre-fitted ML modules and perform prediction?
I am implementing a Machine Learning module that should run in a Raspberry Pi that at the moment is shared among different services.
My idea is to store in the device only the code in charge of ...
3
votes
0
answers
313
views
Letsencrypt / certbot "could not be properly decoded in UTF-8" warning message when issuing a certificate
I have a Raspberry Pi webserver on which i have installed certbot to use ssl.
Since a few days the renew function has a warning in it.
/usr/lib/python3/dist-packages/pkg_resources/__init__.py:1869: ...
1
vote
1
answer
152
views
How to get the gmpy2 module in RPI2 Buildroot
I am unable to get the gmpy2 Python module working in a Buildroot build for Raspberry Pi2. Buildroot does not include the gmpy2 module by default.
Buildroot does not include the GCC as well, so I ...
0
votes
1
answer
1k
views
Display camera preview on Raspberry Pi Android things
I was working on an app that runs on a Raspberry Pi with Android Things and is supposed to show a Camera preview onto an external display and there's a push button attached to the demo which on being ...
0
votes
0
answers
781
views
How do I solve Raspberry Pi 2 / Tensorflow Allocation of 5031936 exceeds 10% of system memory error?
I am trying to detect humans in a video frame using tensorflow object detection api and raspberry pi 2.The video input is from an ip camera.
I get the following error when I run my code.
2019-04-07 ...
0
votes
0
answers
2k
views
Is there a way to update mongodb from 2.4 to 2.6 in a raspberry Pi 2? [duplicate]
I'm trying to build a live chart out of a simple mongo colection, using Raspberry Pi 2 with dietPi (DietPi v6.22.3), mongodb and nodejs.
What I'm trying to do is to get data from the db using ...
0
votes
1
answer
395
views
Remote Rpi and GSM Module (Sim800l) Connection
im currently working on a project that uses Rpi and a GSM Module (SIM800l).
As of today, im working on a Heavy processing and Heavy database querying on the PI, im wondering if you can remotely access ...
0
votes
2
answers
344
views
Trying to use Selenium on a Raspberry Pi2 (Stretch)
I have the following configuration:
Raspberry Pi2 with Stretch
Python 2.7 with pip installed
Firefox 52.9.0 (from apt-get install firefox-esr)
geckodriver 0.17.0 (from https://github.com/mozilla/...
0
votes
1
answer
40
views
echo -n fails with piped function
I'm a bit of a noob so bear with me:
I have a pretty basic script to check the cpu temp of the rpi, and I need the output on a single line as a requirement for reporting to a messenger service with a ...