All Questions
36,671
questions
-2
votes
0
answers
16
views
Raspberry pi 4 DHT11 sensor not working
I tried a lot of different ways but it doesn't want to work. Anyone can help me?
0
votes
1
answer
27
views
Gap with GPIO pin
I want to blink a simple led, here's the code :
#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/mman.h>
#include <stdlib.h>
#include <fcntl.h&...
-3
votes
1
answer
32
views
Which micro usb port if preferable to power pi zero?
Pi zero w has pwr micro usb and normal micro usb. Both of them can be used to power the pi.
What is the safest way to power pi zero w, via pwr micro usb or data micro usb?
0
votes
3
answers
34
views
how do i login as root , its not working for me
so far, i have only logged in as myself andi have used sudo for various things when needed
now i want to use the desktop text editor tool to modify some files in /var (for home assistant by the way)
...
0
votes
0
answers
22
views
Syntax error for GPIO Pins [closed]
I'm trying to turn on an LED when a button is pressed, and I'm getting a syntax error. Super new to programming, thanks.
Code below
led = Pin(16, Pin.OUT)
button = Pin(28, Pin.IN)
while True:
if ...
0
votes
2
answers
22
views
Can't find a Raspberry via hostname from another Raspberry
What I want to do is simple: I have changed a raspberry hostname to something different from raspberrypi and I want to ping this raspberry from another raspberry via its new hostname. What happens is ...
0
votes
1
answer
16
views
Pi 4 B SD boot interrupted when ethernet is disconnected
My goal is to use a Raspberry Pi headless and control it with VNC over wifi. It's a model 4 B with 8 GB RAM, running 64-bit bullseye. It's configured as a routed wireless access point using hostapd ...
0
votes
0
answers
29
views
orange pi 5 boost up issue [closed]
I am a newbie using the orange pi 5 board, or any kind like this.
I have a boost-up issue, I connect to the power supply and only red light is on (on the board) but when connect the display by HDMI-...
0
votes
0
answers
25
views
Tiny chess calculator on rpi zero w [closed]
I need some guidance on how to build a small (small enough to be easily concealed underneath ones clothes) stockfish calculator with a rpi zero w for a school project.
The rpi zero must get power ...
0
votes
1
answer
37
views
Remmina does not connect to Raspberry Pi Bullseye after RealVNC-server update
The Problem:
I have a Raspberry Pi I connect using the VNC client Remmina from Ubuntu 22.04. Recently the realvnc-vnc-server was updated in the Raspberry Pi. Since the update the connection from ...
0
votes
1
answer
36
views
How to detect the position and rotation of objects in Python
I'm building a robot that needs to detect the position and rotation of multiple trained objects from a single image. For this I'm using my Raspberry Pi 3B with Raspberry OS 64-Bit.
I tried https://...
0
votes
0
answers
18
views
Trying to adapt a Python script to MicroPython for use on Pi Pico [closed]
Question: Editing a json file continuously with gpio buttons.
Personal Background: Very very new to programming, with some experience in binary logic/boolean algebra, and my friend helped me write ...
0
votes
1
answer
8
views
Using MAX7219 Dot Matrix module with Luma.Led on different GPIOs
I have a MAX7219 dot matrix module (this one) that I'm trying to run on my Raspberry Pi 4 with the Luma.LED library. Its documentation suggests the following GPIOs/pins be used:
Board Pin
Name
...
0
votes
1
answer
16
views
Rotating screen help
I'm a beginner in using Raspberry Pi, and I'm using 2 monitors, one for extended screen. However, I want to make the extended screen monitor portrait. I tried to use the screen configuration to make ...
0
votes
0
answers
19
views
Specified qdisc kind is unknown when using tc netem to emulate latency on Raspbian
When I tried to emulate latency using tc. I get the following error on Raspberry Pi 3B+.
sudo tc qdisc replace dev eth0 root netem delay 100ms
Error: Specified qdisc kind is unknown.
These are the ...
1
vote
0
answers
28
views
Cannot SSH to headless RPI Zero W via USB
I am unable to access my RPI Zero W v1.1 with SSH through USB.
I'm using a fresh install of the RPI OS Lite 32 bit version through the official Imager (1.7.4), with a custom username/password, custom ...
-1
votes
0
answers
23
views
How to lower volt usage from thumbstick?
Im running retropie and I keep getting the lightning bolt symbol, it started once I plugged in my usb drive to pla roms. Is there anyway I can lower the volt usage of it or do I have to use another ...
0
votes
0
answers
18
views
How to setup and use a UART serial interrupt on the RPI PIco?
I have a data logging pico and want to add an interrupt on the serial port that can take in a string and report back the right amount of data stored on the SD card. I was looking at UART.irq but that ...
0
votes
0
answers
12
views
2 LCD screens 1 raspberry3B+
I got a raspberry pi 3 B+ and two small LCD screens, this one and this one
The first is attached on the gpio pins, the second one on the hdmi port
the problem is they are just mirroring each other, ...
0
votes
0
answers
9
views
Rotate screen and touch overlay on ViewSonic LD2455 connected to raspberry pi 4b running ubuntu 5.19.0-1015-raspi
I would like to rotate the screen and touch overlay on my ViewSonic TD2455 connected to a Raspberry Pi 4b (4GB) running Ubuntu raspi 22.04 5.19.0-1015-raspi aarch64.
I have tried all the usual ...
0
votes
0
answers
43
views
I want to enable a gpio pin on start up as fast as possible?
I want to enable a relay connected with npn-transistor as soon as the pi starts. Test#1: If I supply 5V from PI4-USB, which enables very fast just after turning on the power, when the shutdown command ...
0
votes
0
answers
30
views
Pi Pico with TMC2208 V3.0 UART and Nema 17 Bipolar Stepper Motor
I want to build a DIY Laser cutter. I want to control it using the Raspberry Pi Pico. The motion should be taken care of by two Nema 17 Bipolar Stepper Motors and the TMC2208 V3.0 UART Stepper Driver. ...
-1
votes
0
answers
30
views
My raspberry pi 3 isn't booting at all and have tried two different SD cards
Green light showed up once already when I turned it on before plugging in the HDMI cord and ethernet. Now it isn't and nothing is displaying to the screen even with following the instructions step by ...
-3
votes
0
answers
22
views
not optimum mode 1920x1080 60hz [closed]
I am trying to project my macbook air onto a samsung monitor. I used a dongle for my mac to connect it with the monitor, and the monitor says:
not optimum mode
recommended mode 1920x1080 60hz
Now I ...
0
votes
0
answers
36
views
DHT-11 doesn't work
I connected a DHT-11 to the GPIO04 pin and wrote this code down.
import Adafruit_DHT
sensor = Adafruit_DHT.DHT22
pin = 7
while True:
humidity, temperature = Adafruit_DHT.read_retry(sensor, pin)
...
0
votes
0
answers
26
views
Use dc motor with ultrasonic distance sensor HC-SR04
What I want to do is when the distance detector senses that I am less than x distance away, the DC motor (controlled by l293d chip) activates. My problem is that I have only worked with the ultrasonic ...
0
votes
0
answers
19
views
Dead Raspberry Pi, Rev 1.4, please help me identify model of the chip [duplicate]
Hi! I am trying to fix shorted out Raspberry Pi 4B and I identified this chip as bad (Running extremely hot while Raspberry looks dead).
The chip itself is scratched and protected from reading model ...
0
votes
0
answers
18
views
Does MIPI CSI cameras should always preferred than USB UVC cameras?
I'm attempting to DIY a car blind spot monitor system using camera + RPi board + display. For the camera part, there are cameras connected through MIPI CSI or USB UVC. I am a software developer only ...
0
votes
0
answers
33
views
Using DMA for efficient memory copying
Some background info about my problem:
I have an external device that is constantly giving me data through SPI
I handle SPI reads with DMA from userspace, as kernel based solutions (already ...
0
votes
0
answers
29
views
Performances increase for ffmpeg on Raspberry Pi
Situation
I am using ffmpeg to create GIFs from MKV files, adding subtitles from SRT files. My command usually looks like this:
ffmpeg -y -ss <start_time> -to <end_time> -copyts -i <MKV ...
0
votes
0
answers
23
views
Idustrial use of the Raspberry Pi Pico [closed]
I was just wondering if the Raspberry Pi Pico can be used industrially or commercially for medium sized projects. By medium sized, I mean products where the hardware used is light and don't require a-...
0
votes
0
answers
22
views
VLC Video Player Not Working Correctly on Raspberry Pi Bullseye
I have been using VLC on Buster from the CLI with no problems. Switching to Bullseye results in either the video not working or being very slow to start and chopping off the first few seconds. ...
0
votes
1
answer
33
views
New Pi 400 Won't Boot
I’ve received the Pi 400 yesterday and was unable to boot properly.
These are the items I’m using to test the device.
I have the official RPi HDMI to Micro HDMI cable
The official RPi power adapter
...
0
votes
1
answer
25
views
How can I flash Raspberry Pi OS onto a single partition of an SSD?
Context
I have a 500GB external SSD whith a 32 GB partition containing an older 32-bit Raspberry Pi OS, a boot partition of a few GB and a 468-ish GB partition for data (docker volumes, photos, ...
0
votes
0
answers
13
views
How to use libwiringPi.so for cross compiling using CMake?
I'm trying to use CMake to cross compile a C++ code using the Wiring Pi library but I'm having trouble with making CMake to find said the correct library. Since I'm compiling from x86 to ARM in order ...
0
votes
0
answers
39
views
How to set GPIO pin that requires 5v HIGH with 3v input?
I have a circuit block (Let's name it as block A) with a set of GPIO pins. The HIGH state of these GPIOs are 3v.
I have a motor bridge that requires 5v input to set its (motor bridge's) GPIO to HIGH.
...
1
vote
1
answer
48
views
ADC and PWM strange behaviour
I'm trying to measure the voltage of a 11.1V LIPO battery, which is substituted by a power supply for testing, using the raspberry pi pico on a breadboard, and then it changes the voltages of an RGB ...
0
votes
0
answers
19
views
Using a USB audio interface with my pi 4 via Balena Sound [closed]
Okay,
So I have everything up and running in my Balena Cloud and have deployed Balena Sound to my pi 4 and everything is playing nice and I can even connect my desktop to the pi with Bluetooth and I ...
0
votes
2
answers
46
views
unable to ssh via usb cable
Installed fresh raspberry pi OS with default settings
created empty ssh file in root folder
in config.txt commented original dtoverlay and did put dtoverlay=dwc2
cmdline.txt did put modules-load=dwc2,...
1
vote
1
answer
25
views
pygame wont upgrade to latest version :ERROR: Could not find a version that satisfies the requirement pygame==2.0.1
Iam trying to install latest version of pygame to run it on python 3 but when I type this in terminal
sudo pip3 install pygame==2.0.1
I get the following error
Looking in indexes: https://pypi.org/...
2
votes
1
answer
18
views
Camera flash with Picamera2
Is it possible to have Picamera2 trigger a flash when taking a picture?
In an older version of my project I used a v2 camera module. I got flash working by creating a device overlay to define the ...
1
vote
0
answers
22
views
TF03 LiDar Distance Sensor UART Issues with Pico
I'm having issues getting a pico to receive data from a Benewake TF03 Rangefinder LiDar distance sensor. The User guide/Documentation mentions it working from 5-24V and it uses low voltage (3.3V) TTL ...
1
vote
1
answer
48
views
How to run Brushless Motor with raspberry pi 4
I'm using raspberry pi 4 with the pigpio library. I can get the motor to turn on by entering the following commands into the terminal but how do I run the motor with python in visual studio code lets ...
1
vote
1
answer
26
views
Handling of USB connection breaks in Python3
I have USB connection from RPI4 to Pico, usually occupying ttyACM1, but occasionally after connection break/boot it may get values ACM2 or AMA0
I am trying to build an automatic recovery if USB is ...
1
vote
0
answers
25
views
ImportError: No module named setuptools
I'm on RPI 4. I'm trying to install the RPIO module to control an ESC. When I type in the command sudo python setup.py install I get the error ImportError: No module named setuptools. When I install ...
1
vote
0
answers
11
views
Setting up "read-mostly" / "write-rarely" system - minimising writes as much as possible
Per the title - I've seen all the stuff about using read-only filesystems and overlay filesystem but there's drawbacks with that - either you have to use multiple partitions, have some method of ...
1
vote
0
answers
29
views
Raspberry pi Not booting after startup
I have a Raspberry pi 4 with Raspbian OS installed. It was working fine but one day suddenly it stopped booting (without any changes). When connected to monitor, it would show the boot sequence -> ...
1
vote
1
answer
34
views
Python code cannot detect my i2c address
I would like to ask some opinions regarding i2c communications with pca9685. My i2c1(SDA=GPIO2, SCL=GPIO3) of my rpi 4b is used by my mpu6050, which I had to enable one more i2c channel of my ...
1
vote
3
answers
43
views
DC Motor not responding to GPIO Motor
I want to control 4 DC Motors from a Raspberry Pi. I am just starting by making sure that 1 motor can be controlled. I am following this guide: https://projects.raspberrypi.org/en/projects/physical-...
1
vote
0
answers
21
views
Serial cable TTY behaves strangely in htop and simple graphics with lots of fill color
Context: I'm using this serial TTY cable to connect my Raspberry Pi 4B to my main laptop. Both run fully updated versions of Ubuntu 22.10, except the laptop runs the x64 version of course. I got the ...