lenonante
May 29, 2024, 19:59

How start a program on boot with a pygame interface ?

Hey 🙂 I want to start a program when the Raspberry boot. I add this lines in the .bashrc file :
cd /home/pi/Documents
python3 main.py
the program start when the RPI boot but without his pygame interface. When i launch a terminal, the porgram start WITH his pygame interface. (And of course, if i execute the program manually everything is ok) Thanks for helping me !
hiheys
May 29, 2024, 14:41

Pi 3b+ system error? kekw

Im using a rasberry imager and 32-bit version after the whole process, I insert the SD card (not original, not included in the set) and fire up Raspberry, and.... check the video
tehlemonking.eth
May 28, 2024, 21:38

TBC Wow Private Server Pi4 8GB

Hello. I am trying to get Raspywow, from GitHub, to run on my Pi4 8GB. I am very new to all things this. Using ChatGPT, I was able to get the files and compile them. make was the last command I used, then chat requested me to edit 2 server conf files that were not in the repository. This is where I hit a wall. Anyone know how to get this going so my friends won't need my tower to be on to play our server? Separately, could someone explain why posting almost identical question into Raspberry Pie discord server help section had me permanently banned with no explanation?
ameh_
May 28, 2024, 18:52

Raspberrypi5 turns on but does not give any HDMI output

Hello, I was trying to setup the ardu cam with my raspberrypi 5 and made some changes to the config.txt everything worked fine but later the i get no output to my screen, I changed the config.txt back to what it was but it still doesn’t work.
saiifiihab
May 28, 2024, 18:19

weather station

Hi guys, i wanted actually to build a weather station, and i have the codes already working on each sensor alone, the problem is that i wanna compine these sensors but i cant, is it possible to just run every python file alone and i still get the output of the sensors in one place?
talhayaa
May 28, 2024, 10:03

PiHole works through Wifi but not through Ethernet

Hello, I wanted to run pi hole in directly on the clients. It hast just worked by making changes in the etc/network/interfaces file namely i put the ipv6, which comes out on ip a inet6 for eth0 in there. And i added ipv6 on the interface/settings/dns. On my PC, that runs on lan and on my laptop that runs on wifi, i changed the IPv4 DNS to the address of my pi Hole. And i changed the IPv6 DNS to that IPv6 I added to the interfaces file but left out the last part of it. The Laptop runs pi hole well. The PC does not. and when I put the lan cable to my laptop it also does not work. So pi hole runs on wifi but not on lan (im a complete newbie)
dashadowman_
May 28, 2024, 00:09

Trying to make tiny computer with RP5

Hi folks, was wondering what a good screen and keyboard i could use if i wanted to make a really small laptop
nemonobody11
May 28, 2024, 00:02

Ping RasPi through Windows PowerShell

Hello I'm working through an introductory tutorial to RasPi and I'm unable to complete the remote access step as described here: https://docs.sunfounder.com/projects/raphael-kit/en/latest/install_setup_os/remote_windows.html I have enabled the SSH radio button on the RasPi and I believe it's host name is "raspberrypi" but when I run the "ping -4 raspberrypi.local" command in PowerShell I receive this message: "Ping request could not find host raspberrypi.local. Please check the name and try again." Any help is appreciated. Thanks!
mugg6578
May 27, 2024, 19:00

Raspberry Pi 4B constantly freezing on boot up of new system

Hi all, I've read a lot about raspberry pi troubleshooting and tried both replacing the power cord and the flashed SD to solve the proble with no luck. Each time, I write my username and passcode and without fail it either freezes when installing updates, or freezes after trying to open firefox for the first time. Only thing on the SD card is the flashed operating system, brand new SD card. Anyone have any tips?
gutterboy6969
May 27, 2024, 05:14

Need Help (Pi Zero 2 W)

Hi there, first time using a raspberry pi, I have the zero 2. I connected my ps4 controller and get regular charging light but it says there are no gamepads detected. It only takes micro usb so I can’t even connect my keyboard so I’m confused on how I’m supposed to navigate the menu?


polluxonthefluxx
May 26, 2024, 20:28

Using Raspberry Pi to Read and Emulate RFID Cards: Need Help with Modules and Setup

Hello, I just started a project to replicate what a Flipper Zero can do using a Raspberry Pi. It will allow me to: first, read the ID and other data on RFID cards with a Python program, then emulate the card with a tag or similar device. I have a few modules to make it work: a Raspberry Pi 5, a PiicoDev RFID module, an adapter for the Raspberry Pi, cables to connect everything, and RFID tags. And my question is: Do you see any issues with the previous configuration, and which module or tag would allow me to emulate RFID frequencies? Thank u for reading and helping
leehyeeun
May 26, 2024, 09:49

[✅] Raspberry Pi 4B Wifi and SSH configuration with Imager Not Working, sth to do with dynamic IP?

I used the Raspberry Pi Imager OS customisation to configure wireless LAN and enable SSH with the SD card; it worked yesterday but it doesn't anymore for some reason. Problem: I logged into my wifi router and checked that Pi is not connected. Pinging pi from terminal returns request timeout. Hypothesis: IP address returned when I successfully pinged pi yesterday is different from the one I'm getting today. Yesterday's IP (blacked out in last picture) looked like 000.000.000.XXX where the 0 part is the same as my router address (192.168.~) and X is different. The IP address I'm getting right now (first picture) is different for all 12 digits. I assume this might have to do with static vs dynamic IP address, but I need help resolving this. The red and green lights do come on properly (red always on, green flicker for 20-30 seconds then off). I would appreciate any input! Thank you.



sas123
May 25, 2024, 08:26

Flashing

Hello! I am doing a small school project, but I encounter an issue... I do not understand how am I supposed to flash my school given, raspberry PI pico board. I have connected it with USB to my computer and I can see it in my file manager (1 st and 2 nd picture). In my assignment, I am supposed to code this using rust. I copied a code template that is supposed to just blink the on board LED. However, I tried a bunch of thins, and, I cannot flash this drive. When I run cargo run --release, I get the "No connected probes were found". However lsusb shows that I have (3rd picture). I tried with rules
/etc/udev/rules.d/99-pico.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="2e8a", ATTR{idProduct}=="0003", MODE="0666"
I am part of the following groups: plugdev uucp audio wheel I tried restarting, changing cables. I just don't know what to do anymore I should specify that I am running on linux. Does anyone have a solution?


harley7234
May 24, 2024, 23:29

SSH Password Not working pi 4

I need help im trying to install raspberry pi x64 image in my raspberry pi4 and its not working please help ASAP
lpeter1997
May 24, 2024, 19:45

[✅] Using a DMA -> PIO pipeline to write to GPIO pins one byte at a time (for a function generator)

I'd like to setup DMA in a way that it writes bytes to GPIO pins 0-7. AFAIK you'd write a little PIO program for that which would actually write out the bytes the DMA transferred. Once the DMA write finishes with the data, I'd immediately like to retrigger it to keep feeding the same sequence of bytes over and over again. AFAIK I can just chain another DMA channel that then gets chained back to the first one. This is the code I came up with, which - unsurprisingly - does not work. I'm good with C++, but the Pico hardware (and low-level microcontroller programming) is relatively new for me. The end goal is a function generator, if context helps. Any help/pointers in the right dir is appreciated
cpp
#include <cstdint>
#include <vector>
#include "hardware/dma.h"
#include "hardware/pio.h"

void setup_pio(PIO pio, uint sm) {
    auto program = pio_program_t {
        .instructions = pio_program,
        .length = sizeof(pio_program),
        .origin = -1,  
    };
    auto offset = pio_add_program(pio, &program);
    pio_sm_config c = pio_get_default_sm_config();
    sm_config_set_out_pins(&c, 0, 8);
    pio_sm_init(pio, sm, offset, &c);
    pio_sm_set_enabled(pio, sm, true);
}

void setup_dma(PIO pio, int dmaChan0, int dmaChan1, std::vector<std::uint8_t> const& data) {
    // Channel 0, which outputs to the PIO, which in turn outputs to the pins
    dma_channel_config c = dma_channel_get_default_config(dmaChan0);
    channel_config_set_transfer_data_size(&c, DMA_SIZE_8);
    channel_config_set_read_increment(&c, true);
    channel_config_set_write_increment(&c, false);
    // Chain to channel 1 when done
    channel_config_set_chain_to(&c, dmaChan1);
    dma_channel_configure(dmaChan0, &c, &pio->txf[0], data.data(), data.size(), false);
    // Channel 1 just retriggers channel 0
    c = dma_channel_get_default_config(dmaChan1);
    channel_config_set_chain_to(&c, dmaChan0);
    dma_channel_configure(dmaChan1, &c, nullptr, &pio->txf[0], 1, false);
}

// Usage
int main() {
    auto dataPoints = std::vector<std::uint8_t> { / ... / };

    auto chan0 = dma_claim_unused_channel(true);
    auto chan1 = dma_claim_unused_channel(true);

    auto pio = pio0;
    uint sm = pio_claim_unused_sm(pio, true);
    setup_pio(pio, true);
    setup_dma(pio, chan0, chan1, dataPoints);
    dma_channel_start(chan0);
}
amadeuz4770
May 24, 2024, 16:27

[✅] [Raspberry Pi Connect] remote software - copy / paste - Workaround

I'm using the new (beta) Raspberry Pi Connect software and it's working absolutely perfect. For a beta program I'm really impressed at its stability and easy of use. The copy/paste functionality is a bit awkward, and some of my employees that are using is are complaining that they have to click the PASTE button in the upper right instead of using normal keyboard shortcuts. Has anyone figured out a workaround so that you can copy (Control C) from your local computer and the paste (Control V) into the Raspberry Pi?
talhayaa
May 24, 2024, 14:17

Need help at using Pi Hole

Hello, Iam a complete newbie but decided to use Pi Hole on my clients. Currently it works on my Raspberry Pi 5 just fine, but I cant activate it on my Windows Laptop. Could you help me? I would like it, if we could do a small live chat through discord.
glass3174
May 24, 2024, 01:21

RTL-SDR and the raspberry pi 5

currently, i am using the rpi 64 bit (debian bookworm) for the raspberry pi 5. i can get connected to the internet, terminal, general computer stuff. i start trying to install any sdr software period and it gives me all sorts of issues from telling me to install cython etc. im just gonna start completely fresh from the image (format and wipe), can anyone make suggestions on how i actually set up the software on the rpi 5? i suck at coding, i appreciate any help!
shen_neo
May 23, 2024, 06:40

I want to make a robot with more than 32 servos

I’m making a very complex robot with more than 32 servos and motors. I never used a raspberry pi. I’m considering getting one for my project. I want to know if it’s possible and how to do it.
kay_wayfarer
May 23, 2024, 05:00

bash: /usr/local/bin/ollama: cannot execute: required file not found

bash: /usr/local/bin/ollama: cannot execute: required file not found Hi, I'm trying to download ollama onto my RPi 5 (8GB), but after I ran the following command: "curl -fsSL https://ollama.com/install.sh | sh" and the terminal says ollama was successfully installed, when I tried to run "ollama --version", it sends the message in the title above. I am following this guide: https://pimylifeup.com/raspberry-pi-ollama/ Please ping me if you can help me, thank you! —-UPDATE—- kaywayfarer@raspberrypi:~ $ sudo systemctl restart ollama kaywayfarer@raspberrypi:~ $ sudo systemctl status ollama ● ollama.service - Ollama Service Loaded: loaded (/etc/systemd/system/ollama.service; enabled; preset: enabl> Active: activating (auto-restart) (Result: exit-code) since Thu 2024-05-23> Process: 3019 ExecStart=/usr/local/bin/ollama serve (code=exited, status=20> Main PID: 3019 (code=exited, status=203/EXEC) CPU: 743us I think the text in bold is the issue. It should say "running" I tried rebooting my RPi 5 and using the command "sudo systemctl stop ollama" and then start Still doesn't work I have searched the internet for this, but I have found no solution to this.
.ashthedash
May 22, 2024, 15:51

[SOLVED] Ras pi 4b no camera option in configs

so i bought a new pi 4b 4gb and installed raspian 64 bit and have added a firewall and updated everything but in sudo raspi-config interface options there is no camera option nor in prefrances and i keep getting hat not detected
joeldx.
May 22, 2024, 13:16

wake on internet assistance

Can anyone tell me what additional hardware do I need to make this work other than the raspberry?
sr1zz
May 22, 2024, 03:18

Snake with joystick (root error help)

Hello, I'm an engineering student and I'm currently trying to do a project which involves making an arcade machine with Raspberry. So, I tried to code a game called Snake which could be played using a joystick connected to a GPIO port. However, I have an error that systematically occurs which is the root error. I tried several solutions which were given on the Internet but none worked so I would like to know the solutions which could be possible. So if you have either an example that works or a solution to my problem with my files, I would be delighted. Thanking you in advance for your attention to my message.
adde9882
May 22, 2024, 00:42

Vim via SSH not making letters bold

The theme I am using currently does not give bold letters where I want them. Neither italics or other types. If I use :set guifont=bold while in vim, nothing changes. Why are bold letters not shown?
ard.33
May 21, 2024, 19:48

Connecting Raspberry Pi 4 with Pico

I'm trying to configure my raspberry pi 4 and pico in a master / slave setup to have the pi 4 send data to the pico (2 integers) and having the pico display them on a dashboard and have it turn on some leds according to those values. I wanted to do this using I2C. Anyone have any help on how to get the software/hardware going?
gitgudscrubs
May 21, 2024, 17:06

Can someone provide recommendations for a project I’ve been brainstorming?

I’ve recently wanted to make a small raspberry pi system that will use a speaker/microphone coupled with a sensor/camera and open cv or the equivalent to make a conversing and surrounding-aware robot. I wanted to attach this to a remote control bird, and I was wondering what the best and most inexpensive materials would be for my needs. It’s kinda like a bird that can recognize people and imitate one’s voice using a TTS or other language learning model. Responses could be generated using an API key from ChatGPT. Thanks!
rese7948
May 21, 2024, 15:34

Raspberry PI 4 - what do I use of full image restorable backup (SSD) of running system?

As the title states. The main focus is to create a full restorable image backup of an SSD running Raspbian on RPI 4. It'd also be nice if it didn't take hours upon hours, but that's just a nice to have. Alternatively, if you think this is not the way, what else are you using for backups? I'm looking at this option purely because if something were to fail, I don't want to deal with the hassle of restoring everything manually. Thanks!
creeze_fnd
May 21, 2024, 14:39

i got a problem with xmacro, emergency +++

Hey there, i got a little problem with xmacro. When it says to press the Key i want to use to end the process, i press escape, but nothing happens, except that it types some characters, but nothing more. I'll send a pic.
pgthevrguy
May 21, 2024, 12:23

Issue reading GPIO input

so buttons 2 and 3 are working just fine, but when reading GPIO 17 its constantly reading a value as if the button is pressed, but when pressing the button this state doesnt change. Additionally, when I plug the switch im using to change 17 into a different button, the switch works just fine. So the switch is fine, and the code works fine for other pins. I have the switch connected where its just GND and GPIO 17, similar to how all the other pins are plugged in.
duviz2
May 21, 2024, 11:37

Cant connect TFT SPI 240x320 display to pico

It's my first time using a raspberry pi pico, so I don't know anything about how to use it, I am doing something wrong on the protoboard itself? The raspberry is lifted up a little bit in that photo but that's fixed