andersson4003
June 7, 2024, 23:53

Camera option not showing up in raspi-config

I have tried it all with no progress, does anyone know how to solve it?
milekat
June 7, 2024, 10:49

Wifi + Hotspot

Hello guys, Iā€™m having 2 Pi at home, Z2(w) and Pico(w). My Z2 is connected to my private wifi (From modem). I want to find a way to connect my Pico to my Z2 using Wifi but not using the Wifi from my modem, for security reasons I think I can archive it by using a hotspot, can someone confirm ? Ideally : - The hotspot will not link the public network with it (I wonā€™t have pico on internet) - The hotspot will be a ghost network - Any more security ideas ? Additional info : - Iā€™m running Homebrige on my Z2 - Pico is used as a Homebrige http receiver - Iā€™m not looking to use https, thatā€™s why I prefer having a Ā«Ā strong secured networkĀ Ā» between Z2 and Pico (Rather than having to deal with SSL and things..)
rulev3
June 7, 2024, 09:50

fan help

My raspberry pi 5 fan is not spinning, it is working becouse it does spin when i reboot. But stops spinning after a few seconds. Anyone know how to solve this?
bree_liance
June 6, 2024, 20:44

Retropie Screen Priority

Dear raspberry pi Community, I'm reaching out to you to get some help with my retropie Project and maybe should make clear that I have no expertise in IT whatsoever, that's why a really detailed answer would be highly appreciated. So currently I have a Raspberry 4 Model B set up to Run retropie, everything runs fine. But I plan on changing the current casing to a 7" Touchscreen - Wimaxit M728 (connected via Adapter to one of the HDMI ports) And that is what leads me to the question: how can I configure the pi so that it just uses the 2nd HDMI Channel once it's connected to another Monitor? (The "Main" Screen should not be used at all if both are in use, it's supposed to be a purely portable solution). I imagine I could simply remove the HDMI adapter when plugging it into a TV but I'm hoping for a more elegant solution. Thanks in advance ā¤ļø
darthcheadle
June 6, 2024, 04:55

can't ssh to raspberry pi

I am having issue trying to get into raspberry pi zero w over ssh. Could it be since my network has a 2.4ghz and a 5ghz that could be an issue?
cardboardjourney
June 4, 2024, 20:07

PI 5 either failing to boot or no HDMI

I recently got a raspberry pi 5. All morning I kept reimaging an SD card with Libreelec and PI OS. Neither seem to either boot or show up on screen. Continued to keep getting no signal. I got Libreelec to work a couple times but it's very inconsistent. I have tried the config and cmdline fixes I've found online. Not sure if that got it to work for me. I've spent a lot of time combing everything I can find for a fix. Just not sure what to do anymore. Could there just be an issue with the PI. I bought and put it in a case because for my use case. I didn't want it to just sit on my nightstand My ultimate outcome is to get any OS working and to get Moonlight installed. The only purpose for the raspberry for me is to solely run moonlight and be able to stream from my PC to my projector in my room. Nothing more. The couple times I got libre to work. I couldn't figure out to download moonlight. Anymore information you need. I'll answer best I can.
thatoneham
June 4, 2024, 19:11

run script when plugged into usb

i need a python script to run
python
 
import time
import json
HID_DEVICE_PATH = "dev/hidg0"

def send_keys(keys):
    report =[0x00,0x00, keys,0x00,0x00,0x00]
    with open (HID_DEVICE_PATH, 'wb') as fd:
        fd.write(bytearray(report))
        time.sleep(0.01)
        
fd.write(bytearray[0x00] * 8)

def main():
    f = open("keys.json")
    data = json.load(f)
    for i in data:
        send_keys(i)
    f.close()
if __name__ == "__name__":
    main()
when i plug it into a usb socket. currently i have usb-gadget setup, in /etc/systemd/system/usb-gadget.service i have the script
[Unit]
Description=Run Python script on USB gadget connection
After=network.target

[Service]
ExecStart=/usr/bin/python3 /admin/home/start_keys.py
WorkingDirectory=/admin/home
StandardOutput=inherit
StandardError=inherit
Restart=always
User=admin

[Install]
WantedBy=multi-user.target
which i found and modified for my own use, the python script returns no errors, but i keep getting the error
riothedev
June 4, 2024, 17:48

Pi Zero W freezing up

im using circuitpython on my pi zero w (waiting for my esp32 to arrive) and i've ran into a problem, im making a digital clock and therefore i need a while true loop to update the clock. the problem is running the pi with the while true loop stops all connections with my computer so i cant run any more code on it till i unplug it and plug it back in and it seems to just freeze up after almost a minute or so because the clock just stops counting. could anyone help? thanks in advance
pgthevrguy
June 4, 2024, 13:29

Zero W issues connecting over USB

So, I have a Pi Zero W and trying to ssh over USB. I have the bare ssh with no extension file in the SD card where it then deletes itself, the correct drivers where it then shows up as an RNDIS Gadget/USB Ethernet, and the right name of pi@watch.local, but whenever I ping or attempt to ssh to it I get no response and that it cant find it. It works on my main PC which has the exact same RNDIS driver, but it still refuses to work. Although, my main PC I run on my home network and my laptop currently is not connected to my home network (not home). But wifi shouldnt be an issue over USB ethernet, right? Also it is connected over the USB Data port, not power.
j.l9883
June 3, 2024, 22:09

Start/Boot Code not working (Systemd):

ERROR LOG: launch.service: Failed with result 'exit-code'. launch.service: Scheduled restart job, restart counter is at 4. Stopped launch.service - Launch script on Raspberry Pi boot. Started launch.service - Launch script on Raspberry Pi boot. 6]: Traceback (most recent call last): 6]: File "/home/lr-receiver-1/Documents/localreach-pi/slave_pi_streaming/Laun> 6]: import obsws_python as obs 6]: ModuleNotFoundError: No module named 'obsws_python' launch.service: Main process exited, code=exited, status=1/FAILURE Launch.service [Unit] Description=Launch script on Raspberry Pi boot After=multi-user.target [Service] Type=simple WorkingDirectory=/home/lr-receiver-1/Documents/localreach-pi Environment=/home/lr-receiver-1/.pyenv/versions/3.9.19/lib/python3.9/site-packa> ExecStart=/usr/bin/python3 /home/lr-receiver-1/Documents/localreach-pi/slave_pi> Restart=on-failure [Install] WantedBy=multi-user.target Lauch.py import obsws_python as obs import time import subprocess import os # Define connection details (update as needed) os.chdir("C:\\Program Files\\obs-studio\\bin\\64bit") subprocess.Popen(["C:\\Program Files\\obs-studio\\bin\\64bit\\obs64.exe"]) time.sleep(5) host = 'localhost' port = 4455 password = '5UsvT80aANE10yuL' timeout = 3 # Create a request client client = obs.ReqClient(host=host, port=port, password=password, timeout=timeout) # Open a fullscreen projector for a specific scene printname=client.send("GetCurrentProgramScene",raw=True) scene_name = printname["sceneName"] # Replace with your scene name monitor_index = 1 # Monitor index, 0 for primary monitor, 1 for secondary, etc. # Send request to open fullscreen projector response = client.send('OpenVideoMixProjector', { 'videoMixType': "OBS_WEBSOCKET_VIDEO_MIX_TYPE_PREVIEW", 'monitorIndex': monitor_index }) time.sleep(3) print(f"Fullscreen projector opened for scene '{scene_name}' on monitor {monitor_index}.") print(printname)
darthcheadle
June 3, 2024, 21:12

Relay not running

I am trying to use a relay to turn a vacuum pump off an on but it is not working properly
mosesinthebox
June 3, 2024, 16:58

RPI4 solid red light

So I have a raspberry pi 4 which stopped working I tried flashing the EEPROM fix however the light is still red without any green also no hdmi signal whatsoever
riothedev
June 3, 2024, 15:01

Move from pi zero w to pi pico w?

I plan to make an alarm clock with a few features on a pi pico w, the thing is I do not have one right now and it'll take a week or two for it to arrive, but i do have a pi zero w. if i were to run circuitpython on the pi zero w and experiment with it, will it be hard to port it over to a pico w afterwards? Thank you in advance.
oops.se
June 3, 2024, 13:07

Raspberry pi alsa errors (pyaudio)

What OS are you using?
you_have_been_hacked
June 3, 2024, 09:46

Simulating a Button Press

im new to raspberry pi and electronics. i have a heater that has a button to toggle on/off. i dont know what the type of button is called. it doesnt stay pressed down. just a simple button like on a keyboard or mouse. i want to simulate that button press with the raspberry pi does anyone have any idea of how to go about this?
spectryee
June 3, 2024, 04:02

Solid red light

Hi, I've had this Pi4 for about 6 months, however i just now started using it again. I've ran into this issue where the pi has a solid red light when it's powered by usb-c (may be dimmer than normal im not sure), but no boot or nothing show up on my monitor. The green light is always off too. I made sure the micro sd card worked with another pi, and it does. I also tried reinstalling the operating system. It's also important to note that Im only getting power with USB-C not with the circular connector nor the power pins. The USB ports also seem to be overheating very quickly. I see low voltage (2.3V) from TP1 and TP2.
sneakynarnar
June 2, 2024, 20:11

solid red light was green

hey! yeah i just got my raspberry pi, first I loaded it and got no HMDI output with a green flashing light then i realised i needed an operating system so i installed it and it didnt boot there was just a white _ at the top left corner so I powered it off then I reinstalled the operating system and i saw the welcome screen for a second then my screen went black, and not my rp5 just has a solid red light. The fans no longer spin either Do i just return it or is it fixable?
0x7d3
June 2, 2024, 16:01

Raspberry Pi 5 not booting into desktop after installing dhcpcd

After installing dhcpcd on the pi it doenst show the desktop screen when booting, instead it boots headless with a bunch of lightdm errors, how can this be caused by dhcpcd? Everything else works fine except for some DNS issues wich I dont need help with
iamnotmega_
June 2, 2024, 10:07

Raspberry Pi 4 not posting

so basically i dropped my pi one time and it stopped posting. when i reviewed the board it appeared that a small piece of the cpu had literally broken off. can someone PLEASE help me? i really need to get it back working
j.l9883
June 2, 2024, 05:50

Pi 5 to Pi 5 commuincation

Does anyone know how to pass data through 2 pi 5's? serial communication? I want one pi to send a specific signal through a wire to another pi ideally both these actions are done through python
syfygi
June 1, 2024, 17:47

I am working on trying to create a user interface to control a sci fi prop.

The user interface would be a video on loop, while external buttons would execute the commands. I want sound and lights to be in sync. I have tried a few programs but I apparently am not as versed in coding as I thought I was
xkevinfpx
June 1, 2024, 17:25

record "Headphones" on raspberry/ or create an alsa loopback

Hello i want to record the audio of the Headphones Output on my raspberry pi 4b. I already tried creating an loopback with alsa audio. But i cant get it work. At the end i want to record the audio with python, but thats not important at the moment.
blitzspawnz_
June 1, 2024, 07:58

RPi.GPIO error

Hi, So I have an issue with rasp pi. I updated and installed the RPi properly, but it still gave me an error when I used python/2/3 [filename] to run the code. The error This module can run only on raspberry pi! Can anyone please help me? Thanks in advance
ashbadas
June 1, 2024, 06:42

Choosing a portable power solution for Raspberry Pi 5

Hello people, I was looking for a power supply for my raspberry pi 5. And I have two options I can either get a 5800mAh wifi router UPS with replaceable batteries (plus a step down buck to convert from 12V 2.5A to 5V 6A) or I can get a 10-20k mAh mobile phone power bank with 22.5w PD charging at around the same price. What do you recommend? As of now I just want to run an OS and build games for Linux, have no plans to connect power hungry peripherals yet, because I know very little and am only getting started but that might change in near future I understand power banks may not supply a stable current and I should ideally use a UPS, the UPS is also giving me an opportunity to use the pi at full potential. On the other hand I would have to buy a different adaptor for the UPS, make some modifications (to convert the voltage) whereas power banks are more plug and play and I can easily also use them with my phone
ameh_
May 31, 2024, 20:54

arducam doesnt work with raspberrypi5

Hello I have tried following the instructions on the website to setup my arducam but unfortunately whenever I type libcamera-hello it says that it can not find a camera any help would be appreciated
kay_wayfarer
May 31, 2024, 12:21

ā€œCannot determine SOC Peripheral base addressā€

Iā€™ve been following this video that introduces me to the GPIO pins and when I tried to run ā€œGPIO.setupā€, this error shown in the picture popped up. The video guide doesnā€™t have this error, and I tried trouble shooting myself; updating stuff. It didnā€™t work. I am using a Raspberry Pi 5, 8GB RAM, RPi OS 64-Bit. Please ping me if you can help me with this. Thank you. (No, the circuit is working fine, I already tested it by connecting the positive wire to a power GPIO pin. (Skip to 31:14 for the coding part) Video: https://youtu.be/az90qK3jmDo?si=5hUPkMayZVIq48On
class='img rounded m-1' src='/assets/assets/1246075968729387159.webp'>
dangerweenie
May 31, 2024, 02:02

Very bizarre boot issue - Raspberry Pi 3B v1.2 vs 3B+ v1 2

I've got an issue here I can't quite seem to get to the bottom of, I've been working on it for weeks. Here's what I'm working with: 5v 2.5a power supply, high quality. No undervoltage warnings in dmesg UPS Desktop variable voltage power supply (taken from a workstation) 8GB quality microSD card - passes checks | boots from other device 16 GB quality microSD card - passes checks | boots from other device 128 GB quality microSD card - passes checks | boots from other device All installations described below are using the official R-Pi Imager software (Windows) with latest updates Also tried flashing cards via Ubuntu All cards are being formatted using the official SD card association formatter for Windows (as described in the Boot issue sticky on the R-Pi forums) That said, I have an R-Pi 3B v1.2, and an R-Pi 3B+ v1 2 (no dot on the PCB silkscreen, assuming it is also a v1.2) The 3B is able to run everything I put on it. Raspberry OS, OctoPrint, Home Assistant, etc. The 3B+ will not boot from the stock Raspberry Pi OS 64 bit flashed onto the card via the official imager - just the seven green LED blinks (failure to locate boot kernel) The only thing the 3B+ will boot from is Octopi (the last version from the official R-Pi imager). I've tried everything in the boot-issue sticky (on the official site, on the reddit forums), reformatted card many times, also tried to manually replace the "boot8.img" kernel from the Github. The thing will only run Octoprint , and it works great - keyboard, monitor, webcam, ethernet, wifi - any idea what gives? Could this still be a hardware thing? I'm totally out of ideas! Since it's a 3B+ there's no EEPROM testing image to boot from, are there any other lightweight OS's that I can use to troubleshoot? Perhaps boot to Octoprint and then install some diagnostic utilities from there? I'll try anything! Thanks so much in advance šŸ™
adde9882
May 30, 2024, 16:50

WiringPi interrupt firing frequently on raspberry pi 5

I have a RX receiver with the DATA pin connected to the pin GPIO 27 on my Raspberry pi 5. I am enabling a callback for my RF device like this:
pinMode(27, INPUT);
if(wiringPiISR(27, INT_EDGE_BOTH, &rx_callback) < 0){
    printf(ESC_RED_BOLD "RX PROBLEM\n" ESC_WHITE);
    return false;
}

printf("RX Enabled\n");
return true;
I have a simple callback function for my RX device:
void rx_callback(void) {
    struct timespec ts;
    clock_gettime(CLOCK_MONOTONIC, &ts);
    int64_t timestamp = ts.tv_sec * 1000000LL + ts.tv_nsec / 1000LL;
    int64_t duration = timestamp - last_timestamp;
    printf("Duration: %ld\n", duration);
    last_timestamp = timestamp;
}
This callback gets called ~10 000 times each second when I am not even using any RF device. If I only use the falling edge, it rarely gets called except when I actually send RF signals with my RF controller. Yet when I set my callback to fire on INT_EDGE_RISING or INT_EDGE_BOTH, it gets called as frequently as possible. Why is this?
.auxerre
May 30, 2024, 13:15

Outputting audio to a Breadboard

Hi, I'm completely new to using Raspberry Pis. I'm using a Raspberry Pi5 to take in an audio input, process it, and then output it. I think i've figured out how to input the audio, but I need to output the audio through a breadboard, and was not sure how to do that. I've read online that I might need a DAC, but I was not sure how to connect it through the pins and whatnot. Any help is appreciated, thank you :)
bess_444
May 30, 2024, 09:32

led matrix

Hello, I want to build a little led matrix 6x8 but I donā€™t know what kind of pcb I have to use