Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Hot answers tagged

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.
user avatar
  • 66.3k
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: ...
user avatar
  • 6,136
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. ^^^^^ ...
user avatar
  • 138
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 ...
user avatar
  • 17.4k
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 ...
user avatar
  • 36
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 ...
user avatar
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 ...
user avatar
  • 53.3k
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 ...
user avatar
  • 717
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 ...
user avatar
  • 717
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=...
user avatar
  • 111

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