lemonevan
July 13, 2024, 18:38

Looking for a battery to power the raspberry pi 5.

I’m making a retro computer powered by a pi 5 running batocera. I’m looking for a way to power it for at least 2 hours. I’m running a 7 inch touch-screen off a usb port so I probably need 5 amps.
sneakyandrey
July 13, 2024, 18:12

How to run a code on a raspberry pi pico in parralel to another one that stays connected to wifi

Hi, I am trying to make a relay open at some determined hours using a Raspberry Pi Pico W, but i also want it to be controlled with a phone app that i developed, the app works as it connects to a network and when i press a button a command word/key is sent via that network and the pi pico listens on that same network for those keys and executes a code according to the right one, but the problem i've ran into is the fact that when the pico listens on that network for those keys, it does not check for the selected hours to execute another piece of code, i've attached 2 failed variants of that code, neither of them work, can anyone help me please?
sudonku.
July 13, 2024, 12:40

please help

How do I fix this?
honigbrottoaster
July 12, 2024, 18:46

Modelrocket LiveCam

Hi, I want to develop a simple livecam for a model rocket, and I don't know where to start. I want the video to be sent to my phone in real time. Is it a good idea to use the pi pico w with a camera module? And what would be the appropriate range? Also, if there are any smaller options you've heard of, please let me know. Thank you!
thepurpleone
July 12, 2024, 10:15

DMA buffer Concurrency

Let's say i have a DMA channel writing into a buffer at random intervals. What if i wanna write to the same buffer from the CPU, would there be a possible race condition problem? I suppose i cannot put a mutex on the DMA channel write. How would i do safely ?
thepurpleone
July 12, 2024, 09:15

RP2040 Interrupts of same priorities

I have 8 possible interrupts that can be triggered by 8 dma channels and in a really unprobable case, they could trigger at the same time with the same priorities I cannot find anything describing clearly what would happen. I checked rp2040 datasheet and Armv6 Architecture Reference manual (https://developer.arm.com/documentation/ddi0419/latest/ ) But none of them describe what would happen... Will the interrupt be "queued" and exectued one by one? Will only the first and second one be executed (because the interrupt is masked when the first execute but only the second one will be "remembered" because there is only on flag) ? Anyone knows where i could find such information
justaccsolol
July 11, 2024, 18:36

wlan0 not found in ifconfig

Yesterday wifi was working (until it was stuck in a bootloop) i reflashed it with rpi os 32bit lite and now wifi is not working, i have set a wlan country code but nothing, im using a rpi zero 2w
arastotle
July 11, 2024, 17:50

STUCK ON BOOT SCREEN

Deleted and reinstalled 64 bit OS into this raspberry pi 5 using 256gb SD card. The oh is 4gb ram so does that pose any issues?
akhil_nagipogu
July 11, 2024, 16:01

Installation of mfrc522 Package

Hey so, I am trying to install the mfrc522 package but it's not working. I tried using these codes: sudo apt install python3-mfrc522 sudo pip3 install mfrc522 Both of them dint work. Details: OS: Raspberry Pi desktop 62-bit. Installed Python The system is updated.
arastotle
July 11, 2024, 15:57

The goddamn silicon button thing gets stuck

i got a case for my pi 5
andusdev
July 11, 2024, 14:58

Celeste not working

Anyone has any idea why this doesn't want to work? https://github.com/daniel-j/fnalibs-celeste/issues/5
jesse_six
July 11, 2024, 08:08

RPi 12v 4 wire old cpu fan

Can I hook up a 12v 4wire old cpu fan to cool my RPi without any extra peripherals?
h_0_p
July 11, 2024, 03:51

Cant get Stepper Motor to move with RPi 4b

Hey all, I have a crazy project I am working on. I have a raspberry pi that needs to operate a NEMA17 stepper motor. I have an A4988 motor driver. I know this "section" of my project isn't necessarily RPi related, but I am building up to it.. just need to get over this hump, before asking any RPi questions 😄 Using the formula: Vref=Current Limit2.5×Sense Resistor ValueVref=2.5×Sense Resistor ValueCurrent Limit​ According to the formula (see attached image) the Vref should be 1.2V I have 12V applied to the driver, but not getting a reading on the multimeter when turning the screw. I put the positive probe on the screw, negative on the ground pin on the driver, and get no reading. any ideas?
pilsnercze
July 10, 2024, 19:52

Raspberry PI Zero 2 W and web server

Hello so I wanna run Raspberry PI Zero 2 W wirh LAMP. Is it possible? I mean how is it with ram? Will the ram be enough to run apache2, php and mariadb? I will have 2 RPI's - one for apache2 and php and second one for database and proxy tunnel. Will it run fine? Thanks
puccioso33
July 10, 2024, 18:08

COLOR SENSOR PROJECT FOR ESCAPE ROOM

Hi everyone I am a 17 year old Italian boy. I found a summer job for an escape room and they asked me to build a circuit using a color detecting sensor. They just asked me to build something with this device and the idea that came to mind is to create a sequence of colors for the user to guess with cards. So if the sequence to guess is (I will decide it later) red, yellow, green, blue I will give small, plastic and colored cards to put in a sort of hole (similar to where the ATM inserts). If once inserted into the hole the sequence is correct, something with a servo motor will open, otherwise I have to tell the user that he made a mistake and have him repeat everything. The part of the working code that I have already done is taking the values ​​of the colors red, green, blue and yellow (there will be 4 colors to guess for the sequence) and by putting a range to the ifs and a delay (as I will show) I have detected colors. Now the sequence is missing but I don't know where to start and moreover I don't know if what I've done up to now is correct because if I don't have such a high delay the color I detect has similar values ​​to the others and red could be yellow . If you understand, can you help me? thanks


nicholaspcoldbloodedcreaturae
July 10, 2024, 16:07

How to Printf(); Message One Time at Beginning of Raspberry Pi Pico Serial Connection

Hello. I have an issue with Printf(); on my Raspberry Pi Pico W. I need a prompt printed out at the beginning outside of a while loop. When I try this and have the COM3 port open, it doesn't print, but it moves on to the next part of my code where it scans the input typed into the prompt. Any knowledge on how to fix this? The code is using C++.
c++
#include "stdio.h"
#include "pico/stdlib.h"
#include "pico/cyw43_arch.h"

int main() {
    // Initialize all standard IO
    stdio_init_all();

    // Assign pin as an unsigned integer for GPIO functions
    //const uint led_pin = 25;

    // Initialize LED pin
    //gpio_init(led_pin);
    // Set the GPIO pin as an output
    //gpio_set_dir(led_pin, GPIO_OUT);

    // Boot sequence
    printf("Please select what connection type is being used. USB (1) or LCD (2): ");
    char userInput;
    userInput = getchar();

    if(userInput == '1'){
        main_menu_serial();  // These functions have been excluded from the help post for simplicity sake
        boot_title_serial(); // These functions have been excluded from the help post for simplicity sake
        printf("Done.");
    }
    else if(userInput == '2'){
        printf("\n");
        printf("Why do you do this to me.\n");
    }
    else{
        printf("\n");
        printf("Input is invalid!\n");
    }
}
thundabeam
July 9, 2024, 20:57

Pi Zero, turns on but no ssh or video output

I originally just wanted to run headless ssh on my brand new pi zero 2 w. After hours of fiddling went and got a HDMI to Mini HDMI cable and found there was no display output either. I have tried a fair bit of fixes like modifying config files and different OS's but can't seem to get the pi to do anything. I'm thinking ill just have to get a new one unless someone thinks otherwise.
neng1
July 9, 2024, 05:14

i2c smbus2 BlockingIOError: [Errno 11] Resource temporarily unavailable

i was trying to control mini oled screen sh1106 using my raspberry pi 5 but i encounter this error does anyone has idea what does this means
 File "/home/nengyi/.local/lib/python3.12/site-packages/luma/oled/device/__init__.py", line 79, in __init__
    self.command(
  File "/home/nengyi/.local/lib/python3.12/site-packages/luma/core/device.py", line 48, in command
    self._serial_interface.command(*cmd)
  File "/home/nengyi/.local/lib/python3.12/site-packages/luma/core/interface/serial.py", line 93, in command
    self._bus.write_i2c_block_data(self._addr, self._cmd_mode,
  File "/home/nengyi/.local/lib/python3.12/site-packages/smbus2/smbus2.py", line 643, in write_i2c_block_data
    ioctl(self.fd, I2C_SMBUS, msg)
BlockingIOError: [Errno 11] Resource temporarily unavailable 
lr1729
July 9, 2024, 01:42

Pi camera freezes after around 10000 frames

I have an OV5647 camera module, which I'm streaming the data from. However, the rpicam-vid command always fails after around 10000 frames, and control c does not stop it, only a sigkill. Here is my command that sinks the output to test:
/usr/bin/rpicam-vid --width 2592 --height 1944 --denoise auto -q 95 --framerate 15 -t 0 --codec mjpeg -n --inline -o /dev/null -v 2
And here is when it failed:
Viewfinder frame 11795
FileOutput: output buffer 0x7f88206ee0 size 1286506
Viewfinder frame 11796
FileOutput: output buffer 0x7f84206ee0 size 1286495
FileOutput: output buffer 0x7f88206ee0 size 1285292
Viewfinder frame 11797
Viewfinder frame 11798
FileOutput: output buffer 0x7f88206ee0 size 1286986
FileOutput: output buffer 0x7f94206ee0 size 1287131
^CReceived signal 2
^CReceived signal 2
^CReceived signal 2
Terminated

thepurpleone
July 8, 2024, 14:57

Restart 8 different DMAs after they've finished their transferts On RP2040

I have 8 PIOs reading PWMs and each time they write into their FIFO, i need the DMA to copy the value into a memory buffer. and restart immediatly, always writing the last value into the buffer. I wanna use the least DMAs i can because i might need some for other stuff, How would i acheive the restarts? - I though about interrupts but i could miss some and i dont want the overhead. - I've seen people restart the channels with another channel, but i would need 8x2 DMA channels ? Any ideas?
yakupturksoy
July 8, 2024, 07:14

Servo control problem

Hello, I have an MG996R 360 servo motor. We are using it for our competition project and were planning to control it with a Raspberry Pi 5, but after testing, I couldn't control it with the RP5. I tried a code with Arduino Uno and it was successful. I uploaded the same code to the ESP32, but the motor didn't respond. When I replaced the MG996R with an SG90 servo, it started responding. The code and power supply are the same, but while the Uno can run both the SG90 and MG996R, the ESP32 and RP5 can only run the SG90. Is there a solution for this? I think esp32 and rp5 working same because they can run sg90 but cant mg996R. İn arduino ı just giving 1200ms for rotate, 1500ms for stop and works. in this video ı upload same code to esp32 and uno. ı just change the signal input. İn our project we dont have much space for extra card so ı want to use 2 servo with rp5.
ducky510984
July 8, 2024, 01:59

connecting to pi through terminal

so i need an eathernet cable to connect to my pi through the terminal (windows to the default pi os). when i try to ping the pi from my laptop the requests get blocked. now i know its connected to the internet because i could search stuff up the pi when i was connected with mouse and keyboard. now is there a way to fix this so i dont need a eathernet cable plugged in to the router
arastotle
July 7, 2024, 19:44

Home Security System Components for Raspberry Pi

Need to know how I can get all the components
louisandthecat
July 7, 2024, 17:03

Affixing microcontrollers

Hi all, Very noob question but if I am putting a few microcontrollers / maybe a raspberry pi zero in an old bit of kit, what’s the best way of affixing them securely? My current method was to get a flat bit of ply secured into the unit and then attach the boards to that I have standoffs but I can’t see how you attach standoofs to wood I bought some pcb feet but I can only find m3 ones and many things I want to attach are m2 I’m now thinking of screwing a bit of pcb board to the wood with screws and seeing if I can get the standoffs to screw into that I feel there must be a standard way to do this, what am I missing?
gamerlikegamer
July 7, 2024, 17:02

minecraft

im using a raspberry pi to make a minecraft server and i want to make a program that turns the server on automatically when the servers off or the raspberry pi reboots im using a raspberry pi 5
nael02546
July 7, 2024, 14:37

problème with wifi on raspberry 4

Hello everyone, sorry for my English I’m French. I just start to learn raspberry how it works. So I follow step by step with the wiki of raberry and I have a problème when I want to connect to my WiFi. Can you help my guys please ?
justaccsolol
July 7, 2024, 00:13

making a wi-fi hotspot (without internet access) with a rpi zero 2w

so i want to use my phone as a 'screen' using VNC over wifi as bluetooth is unreliable, my issue is that making the hotspot, any ideas? thanks in advance
sfpv
July 6, 2024, 23:51

need help finding camera

Where can I find a camera that is used on the raspberry pi camera? Just the standalone camera with the small connector
riothedev
July 6, 2024, 18:19

What does this blinking mean?

This is a pi zero w, and im getting this blinking when i plug it in, doesnt show up on the network either, any ideas?video
mantle778
July 6, 2024, 16:32

LED Striplight project

I'm trying to build a lighting system using a heap of LED strip lights - like those that are on a reel. Anyone have any experience with anything like this? I could do with 1 - knowing a reasonable price and place to source the LED strips 2 - knowing what i need to do to power these - are there any gotchas? 3 - knowing what i need to do to make this work from a lighting box for a stage I'm assuming this can be RPi driven