angelthebox.
December 12, 2024, 10:32

Pi 3b wont boot

I have two pi3b boards that refuse to boot. One of them has a 3 short 1 long blink code (wether i have an sd card plugged or not) and the other managed to boot but after a couple minutes had some graphical bugs, crashed, and refused to boot. I've tried different cards and operating systems

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
abovefreezing
December 10, 2024, 07:24

Pi 5 stuck in network boot mode

A Pi 5 in an Argon40 NVME case is stuck in Network boot mode and will not attempt to boot from the attached NVME drive. I could open the Argon40 NVME case in order to access the SD card slot and put in an imaged SD card in order to get it to boot so that I can then go to the config and change the boot order. I don't want to open the case because that would break the heat-sink pads that are currently installed to cool the Pi's processor and a few other components. ...and, I just would prefer to leave the case as it is if possible. The network install tool has an option to change the boot order, but it also seems to require that I allow the NVME card to be erased (the Pi OS is installed on that drive now). I don't want to erase it if I don't have to. Is there a way to change the boot order without overwriting the NVME drive?
randolphtheyeen
December 9, 2024, 22:31

Remote button pusher with Raspberry Pi Zero W?

(Crossposting from the Raspberry Pi forums since it looks like it's going to take long to get a response there) Hi, so I was suggested to try these forums because you'll probably know best My problem is I want to be able to turn my laptop on (it's a Huawei MateBook D 14 KPL-W0X) remotely over any distance, using an internet connection, from my phone (Android, if that's relevant). I've already tried setting up Wake on Wan but my laptop evidently doesn't support it. I know of the existance of gadgets like SwitchBots that are designed to press a button with a mobile app, but I'm very concerned about the security of those and I'm also worried they might not have enough force to push the button all through. So as I said before I was suggested to try here after being told that probably, this is the best solution: - Rasperry Pi Zero W - - Tailscale - - web page hosted by a web server on it [accessible through Tailscale] - - Servo motor [triggerable with the web interface] The reason I'm thinking of a Pi Zero W is because I've seen it recommended quite some times: https://www.reddit.com/r/Tailscale/comm ... lscale_on/ and https://www.reddit.com/r/Tailscale/comm ... t/hzgwl32/. Tailscale, as says the second link, works well on this Pi and Tailscale is needed for the security, and I choose Tailscale specifically because of how quick to set up they say it is. Then the web interface is needed because otherwise, how do I activate the Servo from anywhere? And finally the Servo is needed for actually pressing the button. Now though, I'm totally uninitiated and unfamiliar with all of this stuff as of now and I mainly just need a solution quick, so would it be fine for you to give a concrete "plan of attack" (also including the equipment) so I can get it to work the soonest?
jymmy
December 6, 2024, 08:31

Sensor not giving me a reading

I am using a Raspberry Pi 4 with a CO2 Sensor from atlas scientific after installing and patching up of the circuit it dosent seem to be giving me a reading does anyone have a clue? i edited the sample code a lil to give me feedback when i ping a command to the raspberry pi or sensor board


rasmus2099
December 5, 2024, 21:20

Make a bad usb on a Swedish computer/keyboard.

I am trying to make a bad usb on a Swedish computer/keyboard. I have followed a tutorial on how to make the badusb and it works. The issue is however that they use the american style keyboard when its pressing the buttons and since Sweden have different characters on different places it writes the code wrong. Would anyone know how to change this? I will send a screenshot on how it looks so you may understand better and also know how it looks. I will use a example with a rickroll by just opening the youtube link. The photos show how the badusb looks and the cmd shows that there are wrong characters being used. I have followed a tutorial which i will post here under: https://github.com/kacperbartocha/pico-badusb#reset-flash Thank you. (<@796000224690307072> you helped me over a year ago on this exact issue and you said you where swedish soo maybe you would have an idea about this issue now as well like you did back then haha.)
martynaskre
December 4, 2024, 22:34

[PICO W] Writing and reading data from flash

I've seen examples on github how to program Pico's flash but I have no success on my own implementation. I am running this on FreeRTOS, but I think it will be not related. When erased, the printed buffer shows ff which is correct. Also when data is written it shows different values than ff. But the get function always returns random values or empty chars. What could be the problem?
cpp
#define FLASH_TARGET_OFFSET (512  1024)

struct FlashData {
    int test;
    char ssid[33];
    char password[64];
};

class Flash {
    static void rangeErase(void parameter);
    static void rangeProgram(void parameter);
public:
    static std::optional<FlashData> get();
    static void set(FlashData data);
};

std::optional<FlashData> Flash::get() {
    FlashData data{};

    const auto flash_target_contents = (const uint8_t ) (XIP_BASE + FLASH_TARGET_OFFSET);
    memcpy(&data, flash_target_contents, sizeof(data));

    return data;
}

void Flash::rangeErase(void parameter) {
    int myDataSize = sizeof(FlashData);

    int writeSize = (myDataSize / FLASH_PAGE_SIZE) + 1;
    int sectorCount = ((writeSize  FLASH_PAGE_SIZE) / FLASH_SECTOR_SIZE) + 1;

    flash_range_erase(FLASH_TARGET_OFFSET, FLASH_SECTOR_SIZE  sectorCount);
}

void Flash::rangeProgram(void parameter) {
    auto wrappedData = static_cast<FlashData>(parameter);

    auto dataAsBytes = (uint8_t) &wrappedData;
    int writeSize = (sizeof(&wrappedData) / FLASH_PAGE_SIZE) + 1;

    flash_range_program(FLASH_TARGET_OFFSET, dataAsBytes, FLASH_PAGE_SIZE  writeSize);
}

void Flash::set(FlashData data) {
    int rc = flash_safe_execute(Flash::rangeErase, nullptr, UINT32_MAX);
    hard_assert(rc == PICO_OK);

    rc = flash_safe_execute(Flash::rangeProgram, &data, UINT32_MAX);
    hard_assert(rc == PICO_OK);
}
jacknathan05
December 3, 2024, 18:41

Taking a screenshot and saving it to a folder when Tensorflow lite detects a person

I am currently working on an autonomous search/recovery drone that is going to fly a set pattern and use a Raspberry Pi with tensor flow to look for people. I have Tensorflow installed and everything works well, but I am now trying to add code to the detect.py file which will take a snapshot when a person is detected and save it to a file. I have tried a few solutions but nothing has worked. I have tried using ChatGPT as well and I have uploaded the code snippet that it suggested for me to use which gave me this error.


reaperkan
December 2, 2024, 16:29

Fresh PI does not have the entire storage available

Hello, I have installed raspbian on a 1tb SSD in pi 4. I have a bunch of storage not available to me, I can't understand why
jathunaantoine
November 30, 2024, 20:52

Crash using RPi5 8Go

Hi, I've just purchased a RaspberryPi5 8Go on which I've tried both RaspberryPi OS 64-bit and 32-bit. Those are my first steps and I already have issues with the product. I've done nothing more. Just turned it ON, started connection to my Wifi then : """ sudo apt update && sudo apt upgrade -y """" The Pi crashes before the end of the upgrade. Even after reboot and finally updating the Pi, the problem remains. At first, I thought these crashes were related to the devices, but even without them [No keyboard, no mouse, no screen] it crashes. This post is to make sure I've tried all I can before returning it. Thanks for your help.
hopzy3269
November 30, 2024, 20:15

nextcloud BadRequestExpected filesize

hi i am using pi hosted portainer for nextcloud on my pi 5 but i get this error when i try to upload files larger than 1 gb. Is there any fix?
newbieguy
November 29, 2024, 10:32

How do you use the individual busses of the TCA9548A multiplexer?

I'm not really familiar with rpi as I'm currently doing this for a school project, but I'm trying to connect 3 VL53L0X tof sensors on my RPI 4B and I have a hard time understanding forum posts online. I want to create individual busses on the multiplexer to control the sensors but I don't know how, where to start, and if i need other hardware.
halen1984
November 29, 2024, 01:51

Rocket flight computer

Im an amatuer rocket engineer and want to build my own flight computer. It needs to be able to track speed, pitch, yaw, roll, and movment across the x, y, & z axis (lots of focus on the y), in very quick succession. all of this, while under high g-forces, and moving very fast. I know next to nothing about computers and coding though. Does anyone have good recommendations on places to start learning the skills i'll need for doing this? (I fully understand this will be very challenging, but im up for it.)
magichombre
November 28, 2024, 15:30

AWS SageMaker -> Ollama -> Raspberry Pi Fail

Halp! I've used AWS SageMaker to fine tune Llama 3.2 1B with a set of questions and answers, downloaded the output from S3, but when I try converting it to run in Ollama it seems that an extra two tokens have mysteriously appeared and stop it from working:
% ollama create llama-q-and-a
transferring model data 100% 
converting model 
Error: vocabulary is larger than expected '128258' instead of '128256
If I trick it by modifying the downloaded config.json by changing "vocab_size": 128256 to "vocab_size": 128258` it will then create it, but then running it breaks because the architecture is out by two:
% ollama create llama-q-and-a
transferring model data 100% 
converting model 
creating new layer sha256:27cc8e47a5b0677b27796952267dc8a821d478de44482bee52a2860f01a2d380 
creating new layer sha256:e4e2d5fb1c3129b5ccc8fc5c19d1c06f6e8421f28d7dcfc3e80a081e34ecffdf 
writing manifest 
success
% ollama run llama-q-and-a
Error: llama runner process has terminated: error loading model: check_tensor_dims: tensor 'token_embd.weight' has wrong shape; expected  2048, 128258, got  2048, 128256,     1,     1
I've tried various ways of converting the model to GGUF and ONNX with a spot of Python first, none have worked so far. Any advice greatly appreciated. Ultimately I want to be able to use Ollama + my model on a Raspberry Pi 5 8GB. Thanks šŸ™‚ PS For reference, when I load and run the model with HF transformers in Python it's fine and I can run inferences fine - it's just transformers is too meaty for my needs whereas Ollama is inference-only optimised.
adiii0815
November 27, 2024, 11:19

ispy (agent dvr) on pi5

i tried installing ispy on my headless pi5 (debian12) following this guide: https://peppe8o.com/ispy-and-raspberry-pi-installing-the-open-source-agent-dvr/ installation is successful, but i cant connect to http://my-pi-ip:8090 over web browser in same network. still kind of a newbie on raspberry, any help or tips would be appreciated
.jedas
November 26, 2024, 21:48

Touchscreen with Raspberry pi 5 Kiosk Mode

Hi all, I've got a raspberry pi running HA. I've recently purchased another raspberry pi 5 and a 18.5" screen: https://www.amazon.co.uk/dp/B0CT55BRBC?ref=ppx_yo2ov_dt_b_fed_asin_title Followed the guide to install OS Lite, Kiosk mode and Chromium but at boot I get the following screen. Does it mean screen is not compatible or do I require drivers/where to get them? Any help appreciated!! Thanks
introser
November 26, 2024, 16:32

Basic button press with Pico and CircuitPython

Hey, Im new to programming Pis and never did it before. Bought myself a Pico 1 (https://www.amazon.de/dp/B08TZX8X9V?ref=ppx_yo2ov_dt_b_fed_asin_title ). Read some HowTo`s and guides and wanted to start. First thing, very easy. Put in a button and print out the state of the button (True/False). Just be easy peasy, but I cant get it working.... I have the Pico, connected it via USB to my PC. As an IDE I am using Thonny and I installed CircuitPython 9.XX on it., by clicking on the bottom right corner. Selected CircuitPython, selected Pico 1 and pressed install. So far, so good. Everything worked. First test was to turn on the onbuild LED. That worked. Easy Next step was the button. In my head (and in all tutorials), I just had to connect one side of the button to 3.3V OUT, the other side to any GP Pin. So I selected GP13. Then I ran the following code: (check the first pic, else the message is to long) easy code. It prints out the value of the button all the time and it should turn on the LED while pressing. But that does not work... If I press the button, nothing happen. The button.value is still False. Rechecked my wires, everything looks good. My first thought was a bad button. But no, I measured it, it works. I measured the outgoing voltage of the 3.3V Output (Pin 36) and it was 3.3V. Measured the resistance between the 3.3VOUT and the GP13. No connection, then I pressed the button and there was a connection. So my wires are fine. So it has to be either the code or some kind of setting. Since I pretty much copy+pasted the code from here (https://learn.adafruit.com/getting-started-with-raspberry-pi-pico-circuitpython/blinky-and-a-button ), I dont think it is the code. First I thought it is probably some kind of bad connection/wrong circuitPython version/wrong port etc, but since I can control the onboard LED, it has to be the code. Anyone can help?
nestedbytes
November 26, 2024, 15:55

Pi zero w nmcli hotspot

I flashed raspberry pi os lite (32 bit) onto my RPI zero w and following this guide - https://www.raspberrypi.com/tutorials/host-a-hotel-wifi-hotspot/ I ran the command sudo nmcli device wifi hotspot ssid myhotspot password 12345678 ifname wlan0 and it created the hotspot, whenever i connect to it on my laptop it keeps asking me for the password and it doesn't connect to it, on my phone it keeps disconnecting whenever i connect. I have tried this multiple times on 2 installations on the same zero W, is this a hardware problem or something? Or is it because i am running the lite version of Raspberry pi os
srcshelton
November 25, 2024, 21:52

Raspberry Pi 5 + HatDrive! NET SSD boot hanging

I have an RPi5 with a HatDrive! NET (https://pineboards.io/products/hatdrive-net-1g-nvme-2230-2242-gen-2-gigabit-ethernet-for-raspberry-pi-5), which boots entirely as expected from MicroSD - and booted like this the SSD is visible and completely usable. Switching over to boot from the SSD, though (by removing the SD card) the bootloader does its thing, the kernel loads and progresses as far as outputting Run /sbin/init as init process (with no following lines regarding arguments, etc.) at which point the machine hangs with the fan spinning at full speed, and not responding to any further input via serial console or USB keyboard. Iā€™ve seen machines be unable to find their root filesystem or have their init sequence fail, or simply kernel-panic - but Iā€™ve never seen this kind of failure before! Could anyone offer any hints as to what I should check next to try to diagnose this furtherā€¦ Iā€™m currently rather stumped šŸ˜µā€šŸ’« (This has been a problem with at least the most recent three firmware/official RPi kernel pairs)
_krazy.
November 25, 2024, 10:48

I2C Module not Found

Hello, I'm trying to get a 9DOF IMU to work on ESP32, I've been trying to run 2 different ones but I can't get them to be found, tried the default SCL and SDL GPIOs and tried different ones too, but it's not working, any ideas why?
mammaarb
November 24, 2024, 19:48

UART / Fingerprint Sensor not working by Simple Test

Out of my depth here. Trying to connect the RPi to a fingerprint sensor. Tested some code which didn't work. Tried to connect the 2 UART pins together (GPIO 14 and 15) and gives me a blank response. Even if I connect the fingerprint sensor on those pins, I get a blank response.
liquidtec
November 24, 2024, 13:33

Raspberry Pi Pico 2 and PWM FAN

I need to create a simple PWM controller using a Raspberry Pi Pico 2 to control a Arctic S8038 - 10K fan. This is my current setup: 1. The fanā€™s GND and VCC are connected to my lab power supply, set to 12V. 2. The fanā€™s PWM pin (pin 4) is connected to GPIO 2 on the Pico. 3. A 10k pull-up resistor is added between the fanā€™s PWM pin and the Picoā€™s GPIO 2. 4. The Pico is connected to my Mac via USB for programming. The C Code: https://pastebin.com/5NFTsGRE When I compile and run the code, the serial monitor shows the message "Fan set to 25% speed". However, the fan runs at maximum speed. Arctic documentation for PWM:
PWM Frequency: Target frequency 25 kHz, acceptable operational range 21 kHz to 28 kHz 
Maximum voltage for logic low: VIL = 0.8 V
Absolute maximum current sourced: Imax = 5 mA (short circuit current)
Absolute maximum voltage level: VMax = 5.25 V (open circuit voltage)
Does anyone know what I might be doing wrong? Fan spec: https://www.arctic.de/en/S8038-10K/ACFAN00279A https://support.arctic.de/s8038-10k
callexpa
November 24, 2024, 13:23

Problem with magic mirror eink

Ok, so I am using a Pi zero 2 w, and a 7.5in e-ink display from waveshare. I hope I connected everything right. ( see images) I installed magic mirror and this project: https://github.com/winstonma/RPi-MagicMirror-Waveshare on the almost last step, where I should install sudo pip install -r requirements.txt I always get an error externally-managed-environment When I try to start the script with pm2 start main.py --name "eink-update", it shows 0 | eink-update | fork | 45 | online | 0% | 2.9mb and also a second line for "node". then I use pm save, but nothing shows on my screen. When I use pm2 list it gives me an errored status 0 | eink-update | fork | 60 | errored| 0% | 0mb according to my other windows, the magic mirror programm itself should have been started, and accassable with localhost:8080, but idk how to troubleshoot if the error may come from there ( I dont think so ) I also attached images of the board and screenshots , as this is my very first time handeling a Pi and I might have donesomething wrong (?) I'd apprechiate any help

wildesnettesgrubby
November 24, 2024, 11:38

Pico power supply help

hey, Can I solder the 4 USB cables to these connections here and will it work?
protitprollegro
November 21, 2024, 18:24

Webcam microphone wonā€™t work Zoom with Debian or Ubuntu Studio will it work on a Pi

Soo I have tried my Logitech Brio 4K in Debian and Ubuntu Studio and for some dumb reason it will show audio is feeding into zoom but it doesnā€™t actually show that there is audio coming into the microphone in Debian. I know this isnā€™t a Pi specific question but when I move into a van on the road Iā€™m planning on doing most of my internet heavy tasks via a pi remotely #1 for power consumption and #2 soo I donā€™t have to rely on a laptop all the time. Iā€™m wondering whether anyone has had success with Zoom audio and video with a Rasberry Pi with Zoom Audio with Ubuntu on the pi at all?
augu900
November 21, 2024, 14:26

Raspberry Pi 4 display issues

I have a Pi 4 which refuses to display anything on both HDMI ports, on both of my monitors. Weird considering it DID output to my computer monitor AND on my TV before they just don't see the Pi altogether. No amount of reinstalling the OS or changing the boot config.txt file solved things. I even tried using different ports on my TV and STILL nothing! Not even a "Welcome to Raspberry Pi" screen or even the bootloader screen! Specs (if you need them): |--- Hardware |------ Raspberry Pi 2GB RAM |------ Vortex 32" TV |------ Proview 21" monitor |------ Booting the Pi from USB |------ USB C to C cable connected to a 3 amp power supply (not the official one) |--- Software |------ Raspberry Pi OS 12 (Bookworm) |------ Latest Raspberry Pi bootloader
ezlanding
November 20, 2024, 17:43

Secure Data with Zymkey HSM on Raspberry PI

I'm trying to do secure data encryption/storage through a raspberry pi and the zymkey HSM. The program should: 1. Store data in a secure, encrypted, format 2. Require a master password at startup to decrypt the data. Doesn't require a password throughout the lifetime of the program to deccrypt data 3. During the lifetime of the program, no other program should be able to decrpyt the data, even if it tries to read the program's memory. (maybe the program should run in a TEE for this?) Looking at the Python API (https://docs.zymbit.com/api/python_api/ ) I can only find functions to lock/unlock data for the whole system, whereas I want data to be unlockable only for the specific program Is this possible, and if so can someone help me with this?
scampered.
November 16, 2024, 18:54

Microphone for Raspberry pi 4

I have been trying to use a microphone for the raspberry pi aux port but it hasnt been working, the jackd server does not work and i dont know what to do to use the mic, is there any solutions? anyway to maybe use phone as microphone..? any help, really needed
scampered.
November 15, 2024, 11:47

Issues with Installing Faster-Whisper on Raspberry Pi 4

How can I successfully install faster-whisper on my Raspberry Pi 4 Model B, considering the challenges with installing dependencies like onnxruntime? Are there any specific steps or workarounds to overcome this issue? Additional Information: Raspberry Pi Model: Raspberry Pi 4 Model B Architecture: armv8l Operating System: Raspberry Pi OS Legacy Error Message: ERROR: No matching distribution found for onnxruntime Attempted Solutions: Using pip to install onnxruntime directly Could this be related to raspberry pi only? since I tried pip install faster-whisper on my windows computer and it worked fine, but it does not work properly and gives errors like: cannot install faster-whisper, This conflict is caused by faster-whisper 1.0.3 depends on onnxruntime<2 and >=1.14 etc
astrydax
November 14, 2024, 12:33

Powering a heater with pico

I have small 8w 5v heater films for a project. I vaguely recall someone saying powering things on the pico like this would damage the pico. My project would need to power this heater based on an attached temperature sensor, while also powering a 5v LED on a timer. Should I be concerned about the power draw damaging the pico.