All Questions
594 questions
0
votes
0
answers
36
views
I want to build a ultra low latency live streaming application using raspberry pi, picamera and ffmpeg
I’m working on building an ultra-low-latency live streaming application using the Raspberry Pi Camera Module V2. My setup includes FFmpeg for video streaming over UDP to achieve low latency, and ...
1
vote
1
answer
89
views
Problem with GLIBC when running executable on Raspberry Pi 3 Model B
I created a executable file on the raspberry pi 3 using pyinstaller. Did the regular changes to the .spec to include my other files and attempted to run it... Nothing. So, I went into terminal and ...
0
votes
0
answers
18
views
Blue screen appearing on webcam server of raspberry pi.?
Motion version 4.3.2 is used. If i edit the configuration file according to version 4.1.1 will it work? or is there anyother solution
0
votes
0
answers
20
views
GPIO not performing program operations
I'm working on tensorflow lite project with custom models. I'm making a conveyor belt to detect and remove defective items which are trained by me. My camera detects object but when it comes to make ...
-1
votes
1
answer
86
views
Why My Spi Connection Is Not Getting started?
Hello Guys I Am New To Embedded & Rasberry PI. So In Order To Understand SPI Connection I Made An PI-PI SPI Setup PS. I am Using Two Rasbrry Pi Model 4 B with Raspi OS & i did the followings ...
0
votes
0
answers
75
views
Reading Durations of signal train
I am receiving a signal train of alternate high low pulses and trying to read it on Raspberry Pi Zero W. I have enabled the one wire pin(GPIO-4) and used that pin to read the pulses.
I am reading the ...
0
votes
1
answer
105
views
Read Location from SIM868 while using as PPP(Modem Mode) on Raspberry
I trying to get device location using linked sim868 shield on Raspberry 3A+.
State: I have got successfully get device location with AT+ commands via UART protocol using Python.
State: I have got ...
0
votes
0
answers
85
views
Trouble capturing images from a Raspberry Pi camera using Python
I am having trouble capturing images from a Raspberry Pi camera using Python. The following code works fine the first time, but fails to read data from the camera on subsequent attempts:
# shotFoto.py
...
0
votes
0
answers
83
views
Why is my Raspberry Pi booting an infinite number of times when I turn it on?
I recently got a Raspberry Pi 4 Model B board in 2022, and I did not use my Raspberry much. When I put the OS in the Raspberry, it works. But When I tried using it now with a new OS and a new sd card. ...
2
votes
0
answers
450
views
Error loading shared library on python
I'm trying to get a piece of code running on a raspberry pi model 4b that I believe was previously running of a server running Debian10 (although now I am not so sure). The code errors at this line
...
1
vote
2
answers
2k
views
Run python script with GUI on boot
I have set up a python script, that uses tkinter to launch a window and display some data.
My goal now is to let the Pi run this script after boot. For this, I tried many ways I found on the internet. ...
1
vote
1
answer
200
views
My Application (based on python tkinter) is not running at Boot time (autostart) in Raspberry Pi Os?
I have made executable file of python tkinter application. It runs well when clicked. But I want to run it at Boot time (AutoStart) in Raspberry Pi Os.
I have tried many methods but they didn't work.
...
1
vote
1
answer
165
views
Measurement in realtime Raspberry Pi 3
I have written a script in python in my Raspberry Pi 3, to get and plot data in real-time from an ADC.
The problem is that the data is not time accurate. I want my data to be read once per second or ...
1
vote
0
answers
160
views
Adding LUTs and film grain overlays to raspicam
learning python and such by coding and building a camera using the High Quality Camera. Being able to code physical inputs to control the various camera functions was a major win for me, so I don’t ...
0
votes
0
answers
110
views
How can I figure out my Python code with Kivy and Raspberry Pi GPIO?
I try to add actionbar to all screenmanagers in Kivy 2.1.0. I found some solution to my problem but I added some more features like GPIO pinout from Raspberry Pi. Here is a solution without gpio.
I ...
2
votes
1
answer
87
views
How to open PI for network traffic on a schedule [closed]
In an attempt to reduce risk to an IOT device I'd like it to enable wifi on a schedule, say only between 00:00 and 00:03 every day. Only just enough to upload a log file to my server, and then disable ...
1
vote
2
answers
2k
views
What model of Raspberry Pi is good for a local web server?
I need some useful information about running a local web server in a Raspberry Pi and the best embedded system that can handle my device.
What do I mean?
Well I've created a website using django + ...
0
votes
1
answer
1k
views
How to get Python binding to recompiled libcamera?
I am trying to recompile libcamera, as I will be changing some stuff in it and I would therefore like to install it manually.
The compilation and installation are successful, but I am not able to ...
2
votes
2
answers
84
views
Autostart python programm
i prefer ask you that i'm French ^^
So I will be very simple.
I would like, when i start my raspberry a execution of my python file.
That is to says, I want that when my pi starting the programm is ...
0
votes
0
answers
156
views
Logging data from High Precision AD/DA board using Raspberry Pi 3B
I have a High Precision AD/DA board from waveshare with Raspberry Pi 3B (running on Raspbian). With this setup, I get a sampling rate of above 20KPS at my terminal display.
However, I can write only ...
0
votes
1
answer
173
views
Python program runs successfully through Thonny IDE but I get ModuleNotFoundError when I run the same through Terminal
I have a python code for attendance system which I'm trying to run in raspberry pi.
I'm using python 3.9.2 and have installed all the required libraries through terminal. The code runs fine in Thonny ...
1
vote
1
answer
4k
views
Reading data from GPS module using Python on Raspberry PI
I am using a NEO-8M Satellite Positioning Module on a Raspberry PI. I am trying to read data off the device using python. I am new to the Raspberry PI and Python. I can read data from the NEO-8M GPS ...
0
votes
1
answer
169
views
How to decrease RPi image capture time?
I have two camera connected to RPi (1 USB camera and 1 RPi camera). I need to capture both images to do some processing on them right after image capture
I have this code:
file1 = 'imagecapture' + '...
0
votes
1
answer
257
views
delay Without Sleep functions error
Sleep without sleep
python3 --version
Python 3.7.3
import time
last_millis = 0
time_period = 1000 # 1 = 1 millsec , 1000 = 1 sec
def do_somthing():
print(last_millis)
while True:
...
1
vote
2
answers
2k
views
Changing i2c ports and busio.py
thanks in advance for any help, this is quite the sticking point for me unfortunately,
Basically I'm coding a program in python for my raspberry pi 3 to read values from two voltmeters, through an ADC,...
0
votes
0
answers
114
views
Consistent Motor control - specifically 180 degrees
I am struggling to get my motors to perform the same on each run. The first time I run the program, they will perform the same movement about 8/10 times. The second time I start the program, the ...
-1
votes
1
answer
152
views
Micro Switch code implementation
I'm working on a production counter that would count the material as it would hit the switch and that would be counted as 1. The issue I am having is that the code I wrote is not doing anything when I ...
2
votes
1
answer
1k
views
BlueZ receive Bluetooth sensor information
Good afternoon,
First of all I apologize for asking questions in this thread but this is my first time writing on StackExchange.
I am doing a university work where it is necessary through a Raspberry ...
0
votes
2
answers
273
views
Any way to get sudo privleges without opening a command line in raspian? [closed]
Right now to get python scripts to run with user privleges in thonny with typing in this command from the command line:
sudo thonny
I can't close the command window without it closing thonny also
Is ...
0
votes
1
answer
1k
views
Adafruit ADS1x15 library - I2C Bus error even though I2C is enabled
I am developing a program for a client using the Adafruit ADS1x15 library to use an ADS1115 module on the Raspberry Pi. This is the relevant part of the code where the error is occurring:
import RPi....
1
vote
1
answer
724
views
How can I connect raspberry Pi 4 to submersible water pump
I recently handle a part of my team project which is hand sanitizer part came up with the idea of using a raspberry pi to power and control the hand sanitizer system. It's nothing large scale, but I ...
0
votes
0
answers
48
views
Beginner want's to add button function to a night vision PiCamera
I want to add button functions to my night vision PiCamera. I have a custom script that outputs the screen to spilt screen because I want to make night vision goggles with it.
`
from picamera import ...
0
votes
1
answer
455
views
How do you program a 1x4 Matrix Keypad in Raspberry pi?
I bought a 1x4 Matrix Keypad https://www.google.com/url?sa=i&url=https%3A%2F%2Fshopee.com.my%2F-Luminense-1x4-Matrix-Memberane-Switch-Keypad-Numpad-Arduino-Raspberry-Pi-i.63040732.4334990197&...
0
votes
1
answer
549
views
My desktop shortcut won´t execute
I created a GUI that tells me the temperature based on the temperature sensor I connected to the raspberry pi, that works fine, but then, I tried to do a desktop shortcut, and when I click on it, the ...
0
votes
1
answer
949
views
Why is my python script stopping after 1 month?
I'm running three python scripts on a Pi 4 Model B. These scripts are ran from boot using the '.config/autostart function'. I have a batch script placed in 'autostart' which then in turn starts the ...
1
vote
1
answer
1k
views
Getting OSError: /lib/aarch64-linux-gnu/libgomp.so.1: cannot allocate memory in static TLS block on Raspberry Pi 4
I am trying to access the models/tf.py from the Yolov5 repository with the following command on my Raspberry Pi 4 and getting the following error:
Command ran:
python3 models/tf.py --weights yolov5s....
0
votes
0
answers
444
views
Using same GPIO pins simultaneously from two Python scripts using RPi.GPIO
I have two different scripts. One is a Kivy app and another is a MQTT client script that subscribes to topics received from a web server. The same hardware connected to the GPIO pins can be used from ...
0
votes
1
answer
348
views
How to print temperature on nextion screen
I am new to the topic of raspberry and sensors, I am doing a project with a raspberry pi 4 and a temperature sensor DS18B20, I created a small project in python to display the temperature in real time....
0
votes
1
answer
379
views
Hardcode RF Codes - RPi-RF
I would like to use the rpi-rf module https://pypi.org/project/rpi-rf/ for a remote control alert system, using a PIR motion sensor as the input.
I have so far set up the PIR input and send and ...
-2
votes
1
answer
121
views
Why my code doesn't run when I reboot the raspberry?
So to start in what I tried. first this is the code that I wrote to run
import subprocess
import pyautogui
import urllib.request
import time
while(1):
x = str(pyautogui.position())
time.sleep(...
-1
votes
1
answer
509
views
Install 64bit Python on Rapbian with aarch64 Kernel
I enabled the aarch64 kernel with arm_64bit=1 in /boot/config.txt on Raspbian.
After that I tried to upgrade python to its 64-bit version.
Fist with "apt upgrade" then with building python ...
1
vote
2
answers
717
views
Pi 4 not reading the QMC5883L magnetometer
I am trying to set up my magnetometer QMC5883L with my raspberry pi 4.
But the pi is somehow not reading the magnetometer.
I ran the command i2cdetect -y 1, but there is no detection.
My connections ...
0
votes
0
answers
70
views
Error in autorun script, RASP 3
I need to run a script in lxterminal in boot. The unit is headless, just have a digital button to start the process in the code.
I already have a automatic pi user loggin and a .desktop created in ...
-1
votes
1
answer
2k
views
socketserver module working with command python on Raspberry pi 3
I'm new to the forum, and I'm writing because I have a strange problem: I wrote a code using socketserver module one or two years ago and if I launch the code with the command "python script.py&...
1
vote
1
answer
3k
views
Can I connect over 15 Bluetooth devices with raspberry Pi 4B 4GB ram using usb Bluetooth apapters
I have a raspberry Pi 4B 4GB ram and I want to connect it to 16 Bluetooth oximeters(BLE) and take readings after every 20 secs.
Now I know that pi can connect to only 7-8 Bluetooth devices at a time ...
1
vote
1
answer
52
views
Bluetooth Ignition need help smoothing out functionality
I have been working on a Bluetooth authorized push to start the ignition in my truck. Right now it's installed and working but I would like to change the function of the button and shorten the time it ...
0
votes
1
answer
2k
views
Read binary data from serial port and save in file
I am link modem to pi3 via serial port and configure this port .
When i receive data in my python software from serial port and save bytes in file, i note i receive too mutch data ,
I am receiving ...
0
votes
1
answer
451
views
Raspberry Pi Zero W as USB Keyboard
I’m having trouble setting this up on my Raspberry Pi Zero W.
I am getting the error that there is no file called 'hidg0'? When I look in dev/ I do not see one either? I am running on the latest ...
1
vote
0
answers
300
views
apt upgrade breaks python-rpi.gpio
There seems to be an issue in the Raspbian repository since around the start of March. My Pi running motion stopped working around then - probably due to an apt update I did around that time. Not able ...
0
votes
0
answers
143
views
Getting an error only when trying to run kivy GUI from remote terminal
I'm testing some Kivy stuff to see how it works, and I want to edit and run the Kivy app remotely (using putty).
I'm on Raspbian GNU/Linux 10 (buster)
For simplicity's sake, here is the code I am ...