New answers tagged

0

You don't have to write ANY code to shutdown the Pi - the gpio-shutdown functionality is already in the kernel. You CERTAINLY don't need a second power source. NOTE this will NOT turn power off - the only way to do that is to turn the power off although there are devices which implement power control using external hardware. Also note that when shutdown ...


0

This does not answer your Question, but RPi.GPIO only has software PWM, which is not recommended for servos. My Pi.GPIO has hardware PWM, but if you want to use a servo you would be better to use pigpio which has explicit servo support.


0

Although there was not much help coming from here what to check/try to come closer to the root cause (especially for the black screen), I want to give my findings back so someone else might find it useful. To make it short: it is possible. I had to use serial debugging though to find out, why there wasn't even the rainbow block showing up - but just a black ...


1

You can install ANY image. The Raspberry Pi imager (any version) will only offer to DOWNLOAD the latest, but can be used to install any you have. There is a "custom" option. I use it to restore my backups.


0

BBN Open Source Marine Linux OS for Raspberry Pi by Bareboat Necessities is customized for best touchscreen support (due to need to support cockpit touchscreen chartplotter) On screen keyboard, Two finger zoom, Long touch, Double finger tap, Three finger scroll No finger rotate, Copy/paste is via on-screen keyboard It’s basically raspberry pi OS, with 64-bit ...


2

I have noticed similar issues since the Pi OS switched to Pulse. Are you using PulseAudio? If so, try switching off the time-based scheduler by adding the following line to /etc/pulse/default.pa load-module module-udev-detect tsched=0 You could also use a different sound system altogether (e.g. ALSA or JACK) if your software supports it. ALSA is one level ...


1

Two USB-powered HDDs connected directly to the Pi 4 are ought to be underpowered, you can only get 1.2A from USB, which is 600 mA per HDDs. Most of external HDDs I've seen require 800-1000 mA to work properly. HDD resets due to unvervoltage is what makes them cycle through device names, but I'll hazard a guess that even if you switch to persistent device ...


0

This has NOTHING to do with the Pi or GPIO. These lousy modules are unsuitable for use with the Pi (they are poor for Arduino). They can only be turned off by putting 5V on the inputs (or by setting GPIO to INPUT)! Using with the PI risks damage! NOTE there are hundreds of similar Questions by others who have problems with these. See Can you use a 5V Relay ...


0

All the GPIO are pulled high or low at power-up. GPIO 0-8 are pulled high to 3V3 the rest low to ground. The pulls are quite weak (about 50k). If you need a different default you need to add external pulls. See page 102 of datasheet for the default pulls. See pinout for the mapping of pins to GPIO.


1

The circuit you have chosen represents a bidirectional level shifter: each side (3.3V and 5V) can simultaneously drive the line. This is sometimes necessary, e.g. with the I2C communication standard where both SDA and SCL lines are driven by the master and the slave at the same time, or with the half-duplex UART which uses a single bidirectional line for ...


1

The module "Arduino Power Supply Module" is just a Module that contains two "voltage regulators", so its a Dual voltage regulator module. If you are going to connect electrical devices they need a common ground. If you want to drive LEDs from a Raspberry Pi, then you can do it in a much simpler way with just a transistor or directly. ...


2

If the kernel is still running, you can perform a more gentle reboot by holding Alt+SysRq keys and typing "REISUB". The "S" and "U" parts will attempt to do sync and umount on all filesystems, before "B" (for re-boot) takes place. If the system won't reboot then, you have to pull the plug. Whatever damage your data ...


0

I got mine working with an installer for Java 17 following this video: https://www.youtube.com/watch?v=bT-siImC0tM


1

How generic does your script need to be? Are you going to support non-standard partition configurations, encrypted partitions, overlays, LVM and such? If not, you can trivially run `mount | grep 'on / '| cut -d' ' -f1` This will substitute to /dev/mmcblk0p2 (in general, /dev/mmcblk0pX) if you boot from the built-in SD card reader, or /dev/sda2 (in general, /...


-1

In case you are using Ubuntu Mate 20.04, what worked for me was editing /boot/firmware/usercfg.txt and adding: hdmi_safe=1 hdmi_force_hotplug=1


1

I have encountered the same problem as well. Therefore I´ve following reasons which has resolved my issue and could be helpful for you as well: Latest Kernel update (If you have made any updates try a rollback first) Docker Container Ressource mismanagement and misconfiguration run docker stats https://docs.docker.com/engine/reference/commandline/stats/ ...


-1

I have encountered the same problem. I have multiple docker containers running on my pi such as pihole, a proxy server, wireguard and a few more personal services I created. As long as I don't touch any container my raspberry pi works like a charm. However, when e.g. redeploying a container, it often hangs the whole pi, as you already described. I have not ...


1

So Adafruit makes a dev board with this part on it already. As such they also have a very public very useful github repo. Using this I can now communicate with the device, exploring the rest of the repo I see how one can use the underlying I2C code to create their own objects. This is helpful for the project I am working on in which I have to interface with ...


2

Yes - the "official" RPi power supply is capable of providing enough power. However, overclocking the RPi is not a reliable mode of operation for several reasons - all of which come back to the fact that several aspects of the RPi 4 design are marginal. If you want a second opinion, and some actual experiences, this article - from the "...


2

Try running sudo apt update; sudo apt dist-upgrade -y; sudo reboot there's a brand new update to the WiFi firmware packages to resolve this failure.


2

It could be that DFS/TPC channels were disabled because they used to cause issues such as this one. If you weren't affected by these problems, try getting WiFi chip firmware from an older Pi OS image. The files you need are located in /lib/firmware/brcm/, on my Pi 4 the brcmfmac43455-sdio.* files are used. Changing the country might also help, but this may ...


0

I had this same problem, but found that the service would work if I plugged the pi into an HDMI monitor while it booted. To get around this I found help with the issue on the raspberrypi.org forums: https://www.raspberrypi.org/forums/viewtopic.php?t=253312 Simply edit /boot/config.txt to add (or uncomment) this line: hdmi_force_hotplug=1 Once I rebooted I ...


0

Yes, it is possible, I just did it a few hours ago, all with the latest Raspberry Pi OS Lite image. I just created a GPT on the external disk, a 256MB partition formatted with vfat and labeled boot, and an 64GB one formatted with ext4 and labeled rootfs, just like the SD card. Then I copied all the files from the SD card boot partition into the disk boot ...


0

Did you try doing: wget -qO- https://raw.githubusercontent.com/Botspot/pi-apps/master/install | bash


0

Which version of Pi4J are you using? Examples with SPI can be found here: V1: https://github.com/Pi4J/pi4j/blob/master/pi4j-example/src/main/java/SpiExample.java V2: https://pi4j.com/documentation/io-examples/spi/


0

In the Python code you are using SPI bus 1 and chip select 2. In the Java you are using the default SPI bus (0) and chip select 1. You need to use the bus and chip select appropriate for your wiring.


0

Setting dtparam & dtoverlay in a program is futile. These are instructions to Device Tree to configure the operating system at boot time. Edit your config.txt. https://www.raspberrypi.org/documentation/computers/configuration.html#part3.1


0

After digging a little more into the network, I was able to find out that the problem lies in the packets being dropped because the time server didn't respond in time. By increasing the RootDistanceMaxSec to 15 seconds I was able to get it to synchronize


1

From what I've heard, Linux SPI drivers are quite sensitive to CPU frequency changes, and on some systems they are plain broken if you use them together with dynamic frequency scaling. Try setting the CPU governor to performance and see if that helps.


1

I couldn't find a valid answer to this question but I found some hints suggesting that I might not need pulseaudio installed at all. sudo apt-get purge pulseaudio was all I needed to make the 3.5mm jack in RPi4 working even without HDMI plugged in. Both VLC and chromium now play sound without any problems. As pavucontrol has been removed with the pulseaudio ...


Top 50 recent answers are included