Category "raspberry-pi"

GPIO-Input on raspberry

I try to program a timer: run down from 15 to 0 Space breaks/reset the timer Space starts the timer. Everyting works with keyboard. But I try to use the Raspber

How to set up Raspberry Pi 4B as a I2C slave

I'm trying to set up a RPi 4B to work as an I2C slave with PSoC (4.4) - CY8C5888LTI-LP097. Below is my code to set up the slave address on the Pi. import pigpio

Run python script from HTML button

I have a code to display the live camera footage on a HTML and I would like to have a button that allows users to ring the rpi buzzer. However, the buzzer butto

Terminate sudo python script when the terminal closes

How can I tell if the terminal running my python script was closed? I want to safely end my python script if the user closes the terminal. I can catch SIGHUP wi

ALSA - Retrieving audio buffer timestamps

I have a simple C program that plays audio using the ALSA APIs and I wish to know the precise timing of the audio buffers. I am attempting to retrieve the time

4G USB Dongle Auto Reconnect / Auto Recover

I have a Raspberry Pi with a 4G USB dongle connected to it for internet access. Everything works on power-up, everything auto-connects and connectivity is estab

I'm getting an error importerror /lib/arm-linux-gnueabihf/libm.so.6 version glibc_2.29' not found what should I do?

While I run my python code in raspberry pi 3b+ I'm getting: importerror /lib/arm-linux-gnueabihf/libm.so.6 version glibc_2.29' not found error what should I

Chromium Auto Refresh command line

Using a digital signage setup on my raspberry pi with raspian OS. Currently have the webpage displayed and full screen however, after 20 minutes it stops reload

How do I connect a WiFi AP to an OVS bridge?

I have a Raspberry Pi where eth0 was attached to an OVS bridge and a client connected to eth0 and then through there to OVS and thence onwards. However, I'm now

Python OpenCV streaming from camera - multithreading, timestamps

I ran simple python script on Raspberry Pi 3. This script is responsible to open video device and stream data (800x600) to HTTP endpoint using MJPEG. When I rec

Remote debugging configuration: Java on Netbeans 12

I can successfully deploy and develop java projects remotely from a Windows machine on a RaspberryPi (Raspian). My IDE is Netbeans 12.6 which comes with the opt

Access point doesn't start with Raspberry Pi 3 built-in Wi-Fi

I have Raspberry Pi 3 and I use it as a Wi-Fi access point. I use Raspberry Pi 3 built-in Wi-Fi adapter for this. Until today, the access point worked. Today

Trouble transitioning to multiprocessing python code to cython

I'm running a program that takes real time data on a Raspberry pi 4. Because the program is quite demanding, the different functionalities are separated into th

Bill Acceptor to Raspberry Pi 3 (Python)

I want to connect my Bill Acceptor to the Raspberry Pi 3 and read a pulse. Is there any one who knows or have any idea how to make sure the raspberry pi reads t

hcitool lescan shows I/O error

I'm trying to do a lescan using hcitool on the raspberry pi. The command prints out Set scan parameters failed: Input/output error. I'm not sure, what ex

Running AWS CloudWatch logs agent on Raspberry Pi 4

Has anybody successfully run the AWS CloudWatch Logs Agent on a Raspberry Pi 4? When I run the script below, it appears to work, but the awslogs.service does no

Run librxtxSerial.so on Embedded Linux Device

I am currently trying to interface a RFID reader unit. The provided SDK offers a test project in Java. On my windows system it does work. The target device, how

Cannot find module cv2 when using OpenCV

I have installed OpenCV on the Occidentalis operating system (a variant of Raspbian) on a Raspberry Pi, using jayrambhia's script found here. It installed versi

(Adafruit_Python_DHT - Raspberry Pi) in get_platform RuntimeError: Unknown platform

I have a Raspberry Pi 4 connected with a DHT22 sensor, and I want to read data from my sensor. So I installed the library Adafruit_DHT sudo pip3 install Adafrui

Crontab in Raspberry pi doesn't run a very simple script

I'm new to Linux and I've been struggling with this issue for a while in my Raspberry Pi and had no success. First I wrote a simple script in /home/myfile.sh l