2022 Developer Survey is open! Take survey.

New answers tagged

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
  • 717
0 votes
Accepted

GPIO detects rising edge but does not change status to 1

Thanks for your answers. FYI: it turned out that it was a hardware problem. The code works perfectly fine and does exactly what it should.
user avatar
0 votes

GPIO detects rising edge but does not change status to 1

Your callback blocks and never exits! Callbacks should do minimal processing. Callbacks operate on a single thread. It will NEVER be called a second time (or more accurately the 2nd call will be ...
user avatar
  • 53.3k
0 votes

DS18B20 reading double after long use

DS18B20s are cheap sensors that are useful for setting up and testing. They are prone to failure after extended use. If you are fine with simply replacing them with new ones then do this - they are ...
user avatar
  • 1

Top 50 recent answers are included