spidertravler
July 27, 2024, 03:45

raspberry pi gadget mode

need assitance thanks
maric4648
July 26, 2024, 20:21

Raspi 5 not booting, 4 green blinks, no video

when i first booted my SD card that used to work on my rpi3 it got stuck at uboot, a little reading later i decided to just make the recommended SD with rpi-imager black screen only, 4 pulses (the last one is a bit clipped so maybe its 3+1 short?) booting without a card has the same behavior, nothing is shown on screen (not even the diag stuff?) i overwrote the sdcard that got stuck at uboot but i am at least 90% certain that my (only) microhdmi to hdmi cable didn't break any next steps? i couldn't find the blinking patterns for rpi5
lloyd.b
July 26, 2024, 12:41

NUT Server scanner On Pi Lacks Device Info

G'day All, This is a strange one and I'm not sure exactly where it belongs but I think it's more of a Raspberry Pi thing than a NUT thing. (Hopefully). The story so far...I have three UPS's and two of them are identical. The trouble is they do not have any unique information to differentiate between them. I can bypass this on Ubuntu because the nut-scanner utility reports a device ID (based on the port) which I can use to differentiate when writing the config. Alas, Bookworm (and Bullseye) do not seem to provide this information to nut-scanner. It does work if I install Ubuntu server on the Pi but that makes using the GPIO pins difficult and I'd really rather use Bookworm. The difference is that Ubuntu reports like this: [nutdev3] driver = "nutdrv_qx" port = "auto" vendorid = "0665" productid = "5161" product = "USB to Serial" vendor = "Cypress Semiconductor" bus = "002" device = "002" busport = "001" and Bookworm shows the same but without the device or busport entries. I can do without the busport entry but device would be fine. I've tried manually specifying the device ID from the results of lsusb but it doesn't work as I don't think it's aware of a device ID. Is this to do with the implementation of the usb lib stuff in Bookworm or would I need to install something extra on-top? I've scoured google and forums but to no avail as it seems people running it on Rpi have UPS's with serial numbers or other self-defining features. Would be grateful for a poke in the right direction. Cheers, Lloyd.
wille____
July 26, 2024, 11:32

transmit 433mhz signal with raspberry pi pico

Is it possible to use a Elecbee CC1101 Modul 433Mhz to transmit and receive a 433 mhz signal with the pico?
pipsqueeeek
July 26, 2024, 04:31

Emergency Shutdown Code

so I'm starting this project where I will use my raspberry pi 4b outside and leave it for 2 weeks minimum running on a solar panel. what bothers me the most is that if the battery suddenly runs out of power and improperly shutdown my raspberry pi it has a high chance of corrupting my raspberry pi. does anyone have suggestions on how I might make this work?
adrenasystem
July 26, 2024, 04:24

LF Help w/Programming Pi

Hi all! I'm looking for help on what to do to program my raspberry pi, I want to make some network security with it. Like auto closing ports, making sure our network has better encryption, defense against attacks.. what Pi do I get, where do I start? Needing some help.
m1gdal
July 25, 2024, 16:08

Simple KeyBoard project with RP2040

Hi, I'm creating a small USB stick project that will type a phrase on the screen when plugged into a USB port. I'm targeting the RP2040 or ATmega32U4. I'm more for the first one, but I'm curious if it would work well (or work at all).
doom5day
July 25, 2024, 03:44

moisturize sensor working with rasberry pi 5

any one know how to get a capacitive soil moisturize sensor working with rasberry pi 5? No clue how to program it
darthcheadle
July 25, 2024, 02:18

ultrasonic sensor not working

My ultrasonic sensor is not working with my raspberry pi

mendo2306
July 25, 2024, 01:55

Reboot problem?

Does anyone know why this happens and how to fix it? https://youtu.be/-5SVFRufPoo?si=aspKoLSH4dIbhkDz
rybeardawg
July 24, 2024, 01:58

PC Case Display - Looking for Advice

Hello! Overview I'm starting a project where I put computer thermals/vitals/stats and videos onto a display within my computer case and hoping to get any advice or pointers. Microcontroller I am between the RPI 4 Model B and the RPI Zero W. I will probably get the RPI 4 model B as it has a Mipi DSI interface and the RPI Zero W would require a converter. I want something with Wi-Fi so I can run an API from my desktop where the info it needs can be retrieved from there. Alternatively, I can use serial communication through the USB port but I think less wires and ports taken is ideal. Display Ideally, I'd like a display about 12" x 4" with a resolution around 1920x515. Can anyone recommend me something like this? When I've gone looking, I've only come across options with interfaces I don't think are compatible. Thank you for any advice!!
thunder07337
July 23, 2024, 23:05

Not sure if Zero W is loading the Raspberry Pi OS

You have misunderstood the instructions. It's about communicating with the Pi via the USB port instead of WiFi. It doesn't say anything about installing the OS on a USB stick.
catguy12321
July 23, 2024, 16:47

Pin busy

I'm trying to connect a RFM95W LoRa module and a button to a raspberry pi, but it returns a GPIO Busy error at CE1. I tried rebooting but still doesn't work. error message:
bash
Traceback (most recent call last):
  File "/home/raspberry/radio.py", line 11, in <module>
    CS = DigitalInOut(board.CE1)
         ^^^^^^^^^^^^^^^^^^^^^^^
  (redacted traceback stuff)
  File "/usr/lib/python3/dist-packages/lgpio.py", line 458, in _u2i
    raise error(error_text(v))
lgpio.error: 'GPIO busy'
code:
python
import time
import busio
from digitalio import DigitalInOut, Direction, Pull
import board
import adafruit_rfm9x

btnA = DigitalInOut(board.D17)
btnA.direction = Direction.INPUT
btnA.pull = Pull.UP

CS = DigitalInOut(board.CE1)
RESET = DigitalInOut(board.D25)
spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)

iter = 0

def send_data():
    global iter
    print("send %s"%iter)
    iter+=1

def get_data():
    global iter
    print("get %s"%iter)
    iter+=1

def main():
    try:
        while True:
            if not btnA.value:  # Button pressed
                send_data()
            else:
                get_data()
    except KeyboardInterrupt:
        pass

if __name__ == '__main__': 
    main()
iamnotmega_
July 23, 2024, 12:07

pi stopped working after dropping

i once dropped my pi on the floor and after it just refused to give an hdmi output. the case fan did spin when i had it connected, but when i tried to ssh into my pi, it said connection timed out. please help
leotgyt
July 22, 2024, 21:33

Pi 400 WLAN Adapter not detected

So, my Raspberry Pi 400 seems to be ignoring the integrated wlan0 adapter, showing only eth0 and lo in ifconfig. In the raspi-config menu, country locale setting fails with error "There was an error running option L4 WLAN Country" Although I have been trying out create_ap (hotspot, installed through pi apps) and rfkill, I don't think I've done damage. Any recommendations? Thanks in advance 🙃
gonzmacben
July 22, 2024, 18:18

Help with Installing GUI on Ubuntu server (24.04 LTS, Raspberry PI 5)

I got my first raspberry pi earlier this month and I am new to the hobby. I plan to use my PI with the usb c gadget functionality so I can connect it to my iPad pro and turn it into a "mini laptop" so I can work with ROS2, so far I managed to establish the ethernet connection but I haven't been able to install the GUI properly. I tried to use tigervnc and installed the ubuntu desktop minimal but the logs indicate that there are some problems with gnome I managed to create a vnc over ssh tunnel and the only thing I see is the white screen with the "Oh no! Something went wrong" message. I recently tried to install lightdm but it doesn't seem to work, the installation came with errors and I tried to fix it but it looks like it's just not compatible with my version. Has anyone managed to get the ubuntu 24.04 gui working on a Raspberry pi 5?
_skino
July 22, 2024, 17:22

Dual Noctua Fans

So im currently working on getting my Klipper installation back up and running on my Raspberry Pi but wanted to use two Noctua fans to avoid using the loud fans. its to add to the front of this case: https://www.fractal-design.com/north-pi-3d-files/ i want to use 2x Noctua NF-A4x10 5V but wanted to know if that's possible or not? and whats the best way to do it? Currently im cooling my Old Pi with some Noctua fans but im powering them with buck convertors directly from my PSU for my printer. Sorry if this doesnt make sense lol
vidrazevasa
July 22, 2024, 16:49

Argon Neo 4 Nvme Won't Fit

I have a Teamgroup MP33 Gen3 Nvme, and it doesn't seem to go in all the way or be recognized. I don't see the copper pins not going in all the way on anyone's build videos. How do I fix it?

birdboygee
July 22, 2024, 04:39

play store on linux keeps on crashing

i am trying the run the play store on linux ubuntu but it keeps on crashing any fix and what d bus do i need to use
darthcheadle
July 21, 2024, 21:15

keyboard not working raspberry pi zero w

I am using the micro usb to usb adapter that came with my zero w
arastotle
July 21, 2024, 17:11

CAM MODULE BLUE FILTER FIX

I connected the camera properly. How do I fix this?
darkbyte
July 21, 2024, 07:35

DAC with software switchable headphone and line output?

I'm trying to do my research and figure out if any audio HAT supports changing the output in software between the RCA line output jacks and the headphone output without having to unplug the headphone. It's not something the descriptions mentions unfortunately. Anyone have experience with this? eg. the Raspberry Pi DAC has pinouts for the headphone DETECT and MUTE pins, but I think that's hardwired together and will auto mute the RCA jacks once you plug in a headphone. https://www.raspberrypi.com/documentation/accessories/audio.html#raspberry-pi-dac Except maybe if the DAC chip supports ignoring the MUTE pin from it's firmware. There are some ALSA configuration files for the Raspberry DACs (previously IQAudio) which mention something like "Heaphone Switch" which is a changeable boolean value, though I'm not sure these actually do anything: https://github.com/raspberrypi/Pi-Codec/blob/master/Codec_Zero_Playback_only.state#L363 Can somebody with this HAT (or any other hat with an RCA + jack output) in hand test if you can toggle such thing from software, and check if it actually works?
leqitnyy
July 20, 2024, 23:24

Need help with shopping my for my first project

hello, i want to make a small project, lets say just LEDs blinking, second being controlling my audio on my pc with potentiometer. can you let me know if this is enough/am i missing something, should i buy something similiar, save money etc? also im not sure about the power of resistors, which should i choose? i dont want to spend 25$ for my project not working because of something. im a beginner so please go easy on me :). feel free to ask questions

neng1
July 20, 2024, 11:22

raspberry pi 5 smbus2 BlockingIOError

Running the sample code below from smbus2
from smbus2 import SMBus, i2c_msg

# Single transaction writing two bytes then read two at address 80
write = i2c_msg.write(80, [40, 50])
read = i2c_msg.read(80, 2)
with SMBus(1) as bus:
    bus.i2c_rdwr(write, read)
I got error below
Traceback (most recent call last):
  File "/home/example.py", line 62, in <module>
    bus.i2c_rdwr(write, read)
  File "/home/.local/lib/python3.12/site-packages/smbus2/smbus2.py", line 658, in i2c_rdwr
    ioctl(self.fd, I2C_RDWR, ioctl_data)
BlockingIOError: [Errno 11] Resource temporarily unavailable
and checking the i2c device by running
sudo dmesg | grep i2c
i got this message
[22341.795707] i2c_designware 1f00074000.i2c: i2c_dw_handle_tx_abort: lost arbitration
imspikyz
July 19, 2024, 22:23

Can't login via SSH

I recently bought a Pi 5 and am completely new to all of this. I installed Raspberry Pi imager and edited the settings and created a user name and password and also enabled SSH. I then put the micro sd into the Pi and opened command prompt to SSH into the pi. It asks for my password and I input the one I created on imager but it says password denied. I then put the micro sd back into my computer to check the password and it completely changes it to a long password in which I cannot see. I want to know why it switches it and how I can figure out what the password is. Thanks.
sexsism
July 18, 2024, 23:08

ssh denied

i have tried making a ssh file in the root sd adding a usercomf.txt and doing this and I still get access denied when trying to ssh
pingu3884
July 18, 2024, 22:14

need help setting device tree overlay for PCM1862 ADC to use it as system input!

Hello! I'm having some troubles setting up an appropriate .dts file that sets up the PCM1862 as a valid audio device on CM4. I have two different pieces of code that are correctly compiling and not hiting any error while setting them using sudo dtoverlay. The first one of them is to enable the PCM1862 as a valid i2c device and the second one tries to integrates it with the sound system.
dts
/dts-v1/;
/plugin/;

/ {
    compatible = "brcm,bcm2711";

    fragment@0 {
        target = <&i2c1>;
        __overlay__ {
            status = "okay";
        };
    };

    fragment@1 {
        target = <&i2c1>;
        __overlay__ {
            pcm1862: pcm1862@4a {
                compatible = "ti,pcm1862";
                reg = <0x4a>;
                status = "okay";
            };
        };
    };
};
This one is working ok, when I use the i2cdetect -y 1 I can see that the corresponding address turns into UU. The next piece is where the issue starts, i can run this dtoverlay without kernel errors, but it's not adding them as a valid audio device, I could check this by using aplay-l and arecord-l and alsamixer:
reaperkan
July 18, 2024, 22:08

pi 5 boot issues kernel panic

Hello I have a pi 5 in argon neo 5 nvme case with p3 500gb ssd of crucial, I'm facing kernel panic during boot, have to force shutdown and start a few times to be able to finally boot into it. Im using the latest firmware have tried booting from sd card but the same issue.
godvictory
July 18, 2024, 20:44

Any Suggestion for M.2 NVME f raspberry pi 5

I want a compatible NVME 2 hardisk for my raspberry pi 5 hat. I would be happy if someone provide AliExpress link for a good one
abovefreezing
July 18, 2024, 18:52

Unable to boot after cloning SD card using linux dd command

Used linux dd command to clone an SD card to another SD card of the same size. The dd command copied successfully. It looked like this: sudo dd if=~/imagefile.img of=/dev/<path to SD card to be copied> bs=1M status=progress And that is how the new SD card was imaged (I had previously used dd to get the image file from the original SD card, and that appeared successful too). However, it would not boot. Tried the SD imager program the comes with Raspberry Pi OS and that worked ok. However, online, many people specify commands that match what I did above when using the linux dd tool and it apparently works for them. I hadn't put on a partition table to the new SD card prior to using dd. Would that have been a reason for the dd clone to not work? What should I have done so that dd would successfully clone the SD card containing my Raspberry Pi operating system?