Hot answers tagged

4

When your custom user fails to play the audio, are you also logged to the system as the pi user? audio group is tricky, it allows users in that group to get exclusive access to audio HW, preventing other users from using it: Adding users to the audio group allows direct access to devices. Keep in mind, that this allows applications to exclusively reserve ...


3

Any program started in the foreground within the ssh session will terminate when closing the ssh session. You have to ensure to send the program to the background before closing the session. have a look at the command nohup (man nohup). You can also use screen within the session. This looks like a normal ssh console and you can run programs. But you can ...


3

I created a gist to show how to disable power+activity+ethernet LEDs on Raspberry Pi 3, here's: https://gist.github.com/andrewssobral/840c5be9aff3347d358a43bb5deb1a9e Check model cat /sys/firmware/devicetree/base/model # Raspberry Pi 3 Model B Rev 1.2 Disable Power (red) and Activity (yellow) LEDs sudo nano /etc/rc.local Add the following lines before exit ...


3

Most relay modules are active LOW and you need to set the pin HIGH to turn the relay off


3

There are two answers to your question of "need": Yes - you need a resistor between the base junction of the transistor and the GPIO pin. Otherwise, the current flowing into the base junction of the transistor will exceed the GPIO's "safe" limits. In other words you may damage your RPi - you'll certainly not be following best practices. ...


3

You might begin by verifying the pin numbers. WiringPi uses a numbering system that is different from other libraries. A good source for wiringpi pin numbers is the Raspberry Pi Pinout website. Clicking on a pin - for example GPIO 4 will reveal the numbering system specific to the wiringpi library. You should also take a look at the documentation for the ...


2

I found an online simulator here, but you can't modify the hardware: https://create.withcode.uk/python/A3 https://fritzing.org/ has hardware and code, but I have not tried the coding yet. It costs about $9 but is worth it in my opinion. They also have the option to create and upload your schematics and will send you a PCB board (for a fee).


2

I have an 8.8" LCD with 480x1920 as well. I have looked at this post as well as another one that is similar. I have the same issue as you had with it no being full screen. I added your buffer lines but it's still looks like this https://ibb.co/0GrkJpF Here is my config. The timings line is commented out as I was playing with different settings. Were ...


2

The existing two answers only handle the power LEDs and say nothing about the LAN LEDs. I tried this often linked tool: https://www.raspberrypi.org/forums/viewtopic.php?t=72070 …and also this one using /boot/config.txt: https://www.raspberrypi.org/forums/viewtopic.php?p=1445502&sid=f0624b638874faf337f71c23b969e326#p1445502 Neither worked for me. What did ...


2

Is there a way to make my raspberry to boot from USB and only if there isn't USB connected or bootable it will try to boot from SD Here you can find details about the Boot sequence of the Raspberry Pi. It is described in detail there but in short you will find, that the Raspberry Pi will allways first boot from the SD Card if one is inserted with at least ...


2

The command "sudo" nano fixes the problem. Like this one goes around the "Permission denied" issue. Thanks @Unsigned_Arduino for the solution!


2

If you want to restore default settings for Raspberry Pi OS, just flash its image to the SD Card.


2

Any power source can work with the RPi - as long as it delivers 5 volts to the input, and it can supply enough current. If your battery is not 5V, it can still work, but you'll need to add a voltage regulator. Your run time will depend on the battery capacity rating; e.g. amp-hours. There are some simple calculations in this other answer to help you estimate ...


2

This is kind of a python question, but is dependent on the Pi specific RPi.GPIO. The GPIO.PWM creates a thread which is responsible for the PWM operation. This stores data in a structure, which is (eventually) destroyed when you call PWM.stop(). You don't do this, but it will happen when the variables are garbage collected on function exit. Effectively the ...


2

Is there a method where I could host a Discord bot without having to connect the Raspberry Pi to a monitor, keyboard, and mouse to manipulate it? Just enable ssh and use a ssh-client on your management computer to connect to the RasPi on your network. How to enable ssh look at SSH (Secure Shell). Then you can login to the RasPi and have a text console ...


2

Revised Answer: arecord needs an environment variable called XDG_RUNTIME_DIR to locate the resources it needs. By default our cron jobs run in a different environment than (for example) the one in our interactive shell, and the cron environment won't (by default) include the variable XDG_RUNTIME_DIR. The solution then is to add this environment variable in ...


2

Caveat: I know nothing about aplay or espeak. However, I can sometimes read & comprehend a man page. Simon's answer may be generally correct in that your "other-user" needs to be added to the group audio, but I don't believe you can add a user to a group with the command he's given: sudo useradd -G audio. To be completely fair, group and user ...


2

The way I would approach this problem, if it is just one specific/consistent log message causing trouble, would be to use the filter conditions built into rsyslog. Here is an example of an expression-based filter structure I've used from the relevant rsyslog documentation: if expr then action-part-of-selector-line Use the expression arg to capture the ...


2

First off, you don't need to blacklist any of the sunxi stuff on a Pi, which uses exclusively Broadcom chips. More to the point, you should check if your blacklist files actually have an effect, by running lsmod | grep ir after a reboot. If the blackisted modules are still there, they are loaded early at boot (specifying rdblacklist=module in the kernel ...


2

It is unlikely that the DNS-package that you gave in the question is the reply packet from something coming from Pi1. There is too little information in the question to tell you where the problem is. So we resort to some general fault-seeking. I assume the following: Pi1 is 192.168.68.1, since you suggest that this would need to be the destination of the ...


2

As mentioned in the comments, your choice of words suggests that a clarification is needed: Batteries are charged - a RPi is powered A USB power supply that plugs into a wall outlet will work fine if it can source 2.5 Amps. The power supply should have this specification printed on the housing, or embossed in the plastic body. You don't necessarily need a ...


2

The 433Utils Library is probably what you're looking for. The author even provides example arduino sketches. If you want the Arduino to listen the RF-Sniffer is what you need! There are also more great tutorials online just like this one.


2

Yes, there is a way to reset the serial port, by closing it and opening it again. This will also reset the Arduino. However, I would rather try to understand what's wrong with the communication. You already have a timeout which should apply to all read/write operations. Print raw strings (make sure you can distinguish strings with and without \n) which you ...


2

The short answer is YES. The longer answer is it depends. In a common emitter configuration (the most common) you NEED to limit current. This needs to be sufficient to saturate the transistor. For a light load of 20 mA this is not critical. A value of 1kΩ would limit current to the nominal 3.3mA and drive loads of several hundred mA with most transistors. In ...


2

If in doubt with power consumption the first step is to use a powered USB hub for all USB devices.


2

If you do not have access to any device except the RasPi the only way I see is to use another portable device with a WiFi connection and preferred Linux Operating System, for example a second Raspberry Pi or a Laptop. Then you can walk to the location of a esp8266 and measure the signal strength. You can use the iw, for example: ~$ sudo iw dev wlan0 scan | ...


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 ...


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.


1

I suggest you to try out this guide: setup-raspberry-pi-for-kiosk-mode This guide starts with the installation of Raspbian Lite and then installing X11. Steps: Flash Raspbian Lite. Install X11 and related packages. sudo apt-get install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox In the file, /etc/X11/xinit/xinitrc, write the ...


1

Is it possible to replace it to save this rpi? Maybe... But it is literally impossible for anyone here (remote, no hands-on) to tell you if your board is repairable or not. I don't know if the odds improve significantly if we were "hands-on". All you can do is try replacing the component that you blew off the board, and see what happens. The RPi ...


Only top voted, non community-wiki answers of a minimum length are eligible