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

New answers tagged

0 votes

Pigpio Hardware PWM_unable to write frequency above 5Khz

There are known problems on the Pi4B and later (the Pis with the BCM2711). We have not discovered the reason and currently there is no known fix. https://github.com/joan2937/pigpio/issues/517
user avatar
  • 66.3k
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

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
  • 727
3 votes
Accepted

AttributeError: module 'RPi.GPIO' has no attribute 'ChangeDutyCycle'

Those functions are part of GPIO.PWM. Instead of motor_1_f = GPIO try motor_1_f = GPIO.PWM(channel, frequency)
user avatar
  • 46

Top 50 recent answers are included