New answers tagged

0 votes

It is safe to connect the PWM pin of a 4-wire FAN directly to the Raspi PWM output?

The Pi has NO protection. With a 47k resistor (which will limit the current flowing through the parasitic substrate diode) it probably will be low enough not to cause permanent damage. This is your ...
Milliways's user avatar
  • 58.7k
1 vote

GPIO input pins high at 3V, and detect when ground is connected when I want it to detect when 3V is connected

ALL GPIO input pins will be HIGH if >2.2V and LOW if <0.8V. By default GPIO 0-8 have pullup, so will be HIGH by default. Others have pulldown, so will be LOW by default. As joan has pointed out ...
Milliways's user avatar
  • 58.7k
2 votes
Accepted

GPIO input pins high at 3V, and detect when ground is connected when I want it to detect when 3V is connected

You have made a bad choice of GPIO. GPIO 2/3 are I2C SDA/SCL and both have hardwired pull-ups to 3V3 (so they operate properly as an I2C bus). If you must use those GPIO you will need to add stronger ...
joan's user avatar
  • 70.6k
0 votes

Is there any to address the GPIO pins in Windows 11?

Was a solution found? I'm running windows 11 fine on the raspberry pi (On a SSD), but now would like to be able to access the GPIO pins via C / C++ / Python I see there is a windows driver for the ...
Peter Hobden's user avatar
0 votes

Undervotage detected while using UPS hat (b) on wheel robot

You're over-loading your UPS-HAT. You haven't actually asked a question, but that is your problem. If you want help, you're going to have to do a better job of illustrating your setup/configuration. ...
Seamus's user avatar
  • 21.2k
0 votes

Slow pigpio, much slower than RPi.GPIO

Thanks or your answer. So I decided to write a shared library in C with functions from pigpiod (in C), so that I can call them from Python. Overall the performance is much better now, but every second,...
kubajed's user avatar
  • 21
0 votes

Is the gpio readall command compatible with RPi 4?

raspi-gpio is reported not to work on Pi5 (although it continues to work on Pi4/Bookworm) The following is an updated version of gpioreadall using pinctrl which should work on all Bookworm. It is ...
Milliways's user avatar
  • 58.7k
0 votes

Problems connecting a servo to raspberry pi 5

As joan has stated none of the existing libraries will work on Pi5 (including my own pi-gpio) and the gpiochip interface only permits basic functionality. I am working to adapt my existing I²C and SPI ...
Milliways's user avatar
  • 58.7k
0 votes

Problem with reading 433MHz RF receiver

Same here. Receiver works, tested with an LED and raw reading of the GPIO input, though rpi-rf script does not seem to proces it. Could it be that rpi-rf does not recognize the rf coding?
Jeroen's user avatar
  • 1
0 votes

Problems connecting a servo to raspberry pi 5

The Pi5 uses different hardware to implement the GPIO. This different hardware is likely going to be used for all future Pi models. Existing established GPIO libraries such as wiringPi, RPi.GPIO, and ...
joan's user avatar
  • 70.6k
1 vote

Slow pigpio, much slower than RPi.GPIO

You are reinventing the wheel. If you did any research you would realise pigpio uses a socket interface which inevitably has a significant overhead BUT if you use it appropriately it is the most ...
Milliways's user avatar
  • 58.7k
0 votes

wiringPi giving "Unable to determine board revision from /proc/cpuinfo" error after kernel 6.1 update

Did you not see a warning when you ran rpi-update? Why did you ignore it? sudo apt update; sudo apt install --reinstall libraspberrypi0 libraspberrypi-{bin,dev,doc} raspberrypi-bootloader raspberrypi-...
Milliways's user avatar
  • 58.7k
0 votes

Can I use the Adafruit PiOLED while using the fan pins on the RP4?

These both appear to use I²C which is a shared resource so they could in principle be shared. Whether this is mechanically possible is doubtful although you could solder the pins. You certainly don't ...
Milliways's user avatar
  • 58.7k
0 votes

Sonic Pi control

You have to install the necessary libraries for both Sonic Pi and GPIO control in Python. You can use the python-osc library for sending OSC messages from Python. You can write the following python ...
liaifat85's user avatar

Top 50 recent answers are included