pawl07
June 10, 2024, 02:11

LM317 to power Raspberry pi3 using 24v 3d printer PSU

Hello, just a quick question.. can i use a LM317 buck converter to power a Raspberry pi 3 from my 24v 3d printer PSU? and what is your suggestion as for Voltage output? thank you
actually_just_me
June 9, 2024, 14:20

Fresh install of Pi, old data from HDD.

I have a PI 4 currently running with some stuff on it, to it I have also connected HDD with data in it. I want to do a fresh install on Pi, however I don't want to lose the data on HDD and have no place to temporarily store them. Apparently, unplugging the disk, doing the install and plugging it back in may be enough for Pi to load the disk, however I'm not sure about this. Another thing I worry about are permissions if the above method works. The Pi OS and everything it needs is on SD card.
astrydax
June 9, 2024, 13:00

help getting tft display working on pico w

I'm having a hard time getting this to work. I'm not sure if I should be using i2c or spi.
depstr
June 8, 2024, 19:14

Ubuntu 24.04LTS Hotspot/AP not working, unable to set Wireless channel

So i have been runing ubuntu 23.10. And i had this setuped. ( https://www.raspberrypi.com/documentation/computers/configuration.html#use-your-raspberry-pi-as-a-network-bridge ) now i have switched to m.2 hat and reinstalled the os fresh with 24.04LTS. But now when i follow this guide. The bridge says:
connecting (getting IP configuration)
and when looking into journalctl is see:
Jun 08 21:07:57 ubuntu kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd022 fail, reason -52
Jun 08 21:07:57 ubuntu kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd026 fail, reason -52
Jun 08 21:07:57 ubuntu kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd02a fail, reason -52
Jun 08 21:07:57 ubuntu kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd02e fail, reason -52
Jun 08 21:07:59 ubuntu kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd090 fail, reason -52
Jun 08 21:07:59 ubuntu kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd095 fail, reason -52
Jun 08 21:07:59 ubuntu kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd099 fail, reason -52
Jun 08 21:07:59 ubuntu kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd09d fail, reason -52
Jun 08 21:07:59 ubuntu kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd0a1 fail, reason -52
Jun 08 21:07:59 ubuntu kernel: brcmfmac: brcmf_set_channel: set chanspec 0xd0a5 fail, reason -52
which i think might be related. Full log: https://pastebin.com/GrV29ZR4
macdonardoguggurutoiretto
June 8, 2024, 13:56

I want to make a touch-screen display for to-do list

Every morning I create a to-do list on my laptop before I start working, I want to be able to send that to do list to that display over wifi (and design the UI for that display myself ofc), I want to be able to tap on items on the checklist or do it in my pc that will then send the message to the display and it will sync and update the list. What is the easiest way to make this? If it is the primary use case, can I make it using something smaller than a raspberry pi ?
tyriawog
June 8, 2024, 11:41

Raspberry Pi to loop Slideshow

I'm looking to buy a Raspberry Pi to be used in a reception TV screen to loop a powerpoint, I saw a few ways it could be set up and wanted to ask for advice on what model I should buy and any tips on setting it up. I will most likely use Raspbian and LibreOffice to set up the powerpoint, and as the people who work here aren't tech savvy I was wondering if it would be better to set up a VNC to remotely control it. https://thepihut.com/products/raspberry-pi-starter-kit?variant=20336446079038 Would this kit with 4GB RAM be overkill, or would another Raspberry Pi be more suitable? 2GB would be fine for playing videos but just being considerate of scaling or any other uses down the line, but those are unlikely.

Warning: Undefined array key "author" in /var/www/html/index.php on line 102

Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/index.php on line 102
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