We’re rewarding the question askers & reputations are being recalculated! Read more.

New answers tagged

0

If you only want to change the static ip address on an interface you can just do it with ip address in two steps, for example: rpi ~$ sudo ip address del 192.168.0.1/24 dev eth0 rpi ~$ sudo ip address add 192.168.0.2/24 dev eth0 ip address has also options change and replace but these will not modify the ip address, but only the flags of an existing ip ...


0

I have the same problem using branch v2 of this RPIO fork (https://github.com/JamesGKent/RPIO/tree/v2) on a Pi Zero W. RPIO builds successfully and the error occurs already when importing PWM from RPIO. Solution: Include sys/sysmacros.h in file source/c_pwm/mailbox.c was missing.


1

You don't say what OS or list any code, but do tag ssmtp which is deprecated in Buster and hasn't been updated in years. There are replacements. I use msmtp (although not Python). See https://raspberrypi.stackexchange.com/a/100704/8697


1

There is a chance that some connections in your rpi is shorted somehow. It seems your board is not working again so I am leaving some suggestions for others. Always clean your raspberry pi with a brush. The main problem of unused raspberry pi is they have dust on them and conductor particles can easily burn everything if not cleaned properly.


2

SMTP, or Simple Mail Transport Protocol is the mail delivery mechanism in use currently on the Internet. You can't send email without using SMTP in one way or another, either directly, or via a script or program that accesses a tool (for example an API or email-based website) that ties directly with SMTP on its back end.


0

In case anyone else runs into this problem, I discovered WHY - the /lib/systemd/system/pigpiod.service was set to Disable remote socket interface! How to fix it - either fix the faulty pigpiod.service script - remove the -l switch in ExecStart=/usr/bin/pigpiod -l OR Run raspi-config and Interfacing Options will allow you to enable or disable remote ...


1

So, it turns out I did not have enough power and I was using a lot of the pins. I also may have accidentally damaged something as well. I have decided to get a refund (which was successful) and just buy a new one from canakit. I will try to be more careful. Usually, Amazon is good with returns.


2

i've had a further look at it. My RP3's SD card had popped and split in half. Turns out i'm not the only one. There's a lot of people online that have had the same issue as me. They take it down after months, turn it on. And within a minute its unbareable to touch


0

You Don't flash a SD card with NOOBS you have to format the SD card then copy NOOBS on to it. NOTE this is harder, takes longer, wastes 1.3GB of your SD card and is almost impossible to update, which is why most of us DON'T use NOOBS NOTE the The Boot Problems Sticky doesn't really apply to NOOBS - it is geared at Raspbian boot problems.


0

This solved my problems or is this just my setup? With a prebuilt custom version of Raspbian Buster on Pi 3 the dhclient was a problem interfering with dhcpcd so first had to remove the isc-dhcp-common and isc-dhcp-client packages. Then /etc/network/interfaces with the wpa-conf for /etc/wpa_supplicant/wpa_supplicant.conf and desired /etc/dhcpcd.conf ...


0

The fundamental problem is that Ctrl + Z DOES NOT halt the program - it just stops it from executing. You should use Ctrl + c to kill the task, but you should actually fix the program and include some tests rather than letting an unresponsive task block execution.


0

I would confirm a few things first, before assuming it’s all wrong. is the empty ssh file inside the main sd card folder? Also known as the root folder. remember that when you boot once, the ssh file disappears unless you enable ssh through raspi-config is the IP really the one you say it is? do you have a cat5e or cat6 cable and an available port on your ...


1

I think the board is hardbricked, and needs to be replaced. Nothing I tried made it work. I do find it weird that the system still has power, including the GPIO, on which I've connected a small cooling fan. The fan still spins when connected, but the RPI doesn't even get to the point where it reads the ssh file on the boot partition.


3

In your netplan folder try deleting or commenting in your .yaml file the lines related to the MAC info: network: version: 2 ethernets: eth0: addresses: [yourIP/24] gateway4: yourGateway match: #Comment or delete macaddress: yourMacAddress #Comment or delete set-name: ...


3

man 5 btrfs shows mount options and gives one possibility for systems where the device manager doesn't execute a btrfs device scan on its own. device=devicepath Specify a path to a device that will be scanned for BTRFS filesystem during mount. This is usually done automatically by a device manager (like udev) or using the btrfs device scan command (...


0

pigpio uses one of the PWM or PCM peripherals to time the sampling of GPIO (defaults to PCM). If waves are used then the other peripheral will be used for their timing - so there will be no audio support. See pigpio sound isn't working.


2

Power bank is a poor choice for raspberry pi. It will work but I don't think it will work that fine. You have to make something that gives you 5V 3A power. Here is how you can make one, 1. 12V lipo battery 2. UBEC/BEC(5V-3A) With these two you can do both of your things(car+pi) BEC is the important part here. This is the part that converts 12 V to 5V with ...


2

You can run the script as service using systemd. Just create a Unit file with: rpi ~$ sudo systemctl --force --full edit myscript.service In the empty editor insert these statements, save them and quit the editor: [Unit] Description=My Python Script After=multi-user.target [Service] RestartSec=10 Restart=always ExecStart=/full/path/to/myscript.py [...


1

Consider using the continue statement to restart the while loop if you can detect the error with an "if" statement: while True: <all your code> if <some error occurs>: time.sleep(10) continue The continue statement will bring control back to the top of your while loop


0

You can not do it with a software from inside you OS. You have to do this with a multimeter externally.


0

The L293DNE is a chip and provides no voltage regulation. It requires two voltage INPUTS. One at 5V (Vcc1) for its internal logic and one at the motor voltage (Vcc2) you plan to use. Of course you could power the Pi from the same source you plan to provide 5V to the chip.


1

You can use the L293D for driving motor. It is possible to use it with L293D IC. you must provide the IC power from external source. Using raspberry pi and L293D with a same adapter is not recommended


0

It seems it was a problem with the router itself. After a full power cycle of the router it magically got fixed... Thanks to everyone for your help!


1

If you are working with a sensor there are two major options: 1. You have to handle it through I2C 2. You have to read the analog or digital signal from that sensor(basically Vcc,Out,GND) What ever you do if you are going to use this on Raspberry GPIO then you must maintain a voltage of 3.3V on each pin. Otherwise the board will burn. Maybe this answer will ...


1

When you have solved the firedatabae you will meet another. The URL you refere to have a serious error. The "801s vibration sensor" have one digital output that is triggered depending on the level of vibrations. Not suitable for meassurements but well suited for infication/alarm. The outher output is a analoge level the indicate the level of vibrations, ...


0

Raspbian is using systemd as init system and to manage services and to emulate old style daemons from the deprecated SysV init system. For compatibility issues look at Compatibility with SysV. crontab is such an emulated system in particular its @reboot function. systemd uses its own *.timer services and Unit files to start services. In man 5 crontab you ...


2

After this filter is applied I cannot connect to my access point. It fails to obtain IP. As in, the AP fails to get an IP or what you are trying to connect? I'll assume it's the latter. I tried to whitelist port 68 and 69 but that that didn't work. If you intended to allow traffic to a dhcp server, subtract one from both those numbers.. You haven't ...


0

To mitigate against unwanted events I suggest you use code similar to the following. Basically read the level of the GPIO in the callback to verify it is not a short term transient. #!/usr/bin/env python import time import signal import os import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) buttons=[24, 25, 13, 12, 16] def cb_buttons(channel): if GPIO....


3

I did the exact same thing: Shortened the 5V and 3V3 rail by accident (with a probe). In my case it was sufficient to replace the Power-Management-Chip, which is indeed available. I used aliexpress to order it (MXL7704-R3). You will however need a hot air rework station. A cheap one as in my case will do, but a simple hot air blower from the hardware ...


Top 50 recent answers are included