2
votes
Accepted
How to check on which OS system the python program is running to import rpi.gpio?
Try sys.platform.
import sys
print(sys.platform)
On my Linux laptop it reports linux2.
2
votes
Reading data from GPS module using Python on Raspberry PI
I tend to use the pynmea2 library to parse the GPS data:
import serial,time,pynmea2
port = '/dev/serial0'
baud = 9600
serialPort = serial.Serial(port, baudrate = baud, timeout = 0.5)
while True:
...
2
votes
Accepted
How to install wiringpi on Raspbian
The question shows different architectures armhf vs. arm64 for the packages.
dpkg: dependency problems prevent configuration of wiringpi:armhf:
wiringpi:armhf depends on libc6.
^^^^^
...
2
votes
How to install wiringpi on Raspbian
EDIT: wiringpi is now in the apt ports repo; so:
sudo apt install wiringpi
Contrary to some opinions, wiringpi is not a waste of time for everyone. And as long as we are expressing opinions, here's ...
2
votes
Accepted
VNC connection refused
Auth error: /: permissions are not restrictive enough
Ensure that the / folder is owned by root and its permission mode is set to 755:
chown root.root /
chmod 755 /
You may also need to check these ...
2
votes
Simple float switch sensor frying GPIO pins, while the other doesn't? Hydroponics system
You likely have another power supply in your system (for the pumps, etc.) and it's likely much higher voltage than 3.3V. You need to make sure there's no way for the current to go from this power ...
2
votes
Accepted
Simple float switch sensor frying GPIO pins, while the other doesn't? Hydroponics system
This is not really a Pi question.
You are ignoring most of the environment - what else is connected; I assume the solution is connected to some kind of pump and is conductive - this is almost ...
1
vote
CAN BUS communication issue
I would suggest you read a bit more on CAN. Also posting a schematic of your system would help answer your question. You mention the 120 Ohm resistors, there should be two, one on each physical end of ...
1
vote
Simple float switch sensor frying GPIO pins, while the other doesn't? Hydroponics system
I will take a SWAG: You have no protection on the GPIO pins which is bad especially with the long wires connected to them. The leds are close to the motor power leds which are great radiators of ...
1
vote
Watchdog on the RPi4
For the RaspberryPi4 it's more straightforward than for earlier software as much of the configuration scaffolding is already in place.
Edit /etc/systemd/system.conf adding the line
RuntimeWatchdogSec=...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
pi-4 × 1726raspbian × 275
wifi × 105
ubuntu × 96
raspbian-buster × 94
gpio × 89
networking × 82
boot × 82
hdmi × 70
usb × 69
python × 67
boot-issues × 64
power × 57
raspberry-pi-os × 57
power-supply × 51
sd-card × 49
bluetooth × 49
display × 43
python-3 × 39
audio × 38
pi-3b+ × 36
hardware × 36
pi-3 × 35
i2c × 35
ssh × 33