Getting Error: Failed to add edge detection on DFrobot 3.7 Li Battery Fule Gaugge

userHead Pojitha.Hettiarachchilalage 2024-06-20 04:37:49 786 Views2 Replies

Recently i have bought 5 Fuel Gauge for my project , Im trying to connect with my pi but am ending up with this error ;

 python3 demo_read_and_int.py
Traceback (most recent call last):
 File "/home/pi/DFRobot_MAX17043/python/raspberry/examples/demo_read_and_int.py", line 29, in <module>
   GPIO.add_event_detect(7, GPIO.FALLING, callback = interruptCallBack, bouncetime = 5)
RuntimeError: Failed to add edge detection
 

 

Please Help me to solve this problem thank you.

2024-06-20 07:20:30

The bouncetime parameter specifies the length of time (in milliseconds) for which the script ignores further edges after the first edge detection. Ensure that bouncetime value (5 in your case) is appropriate for your application and hardware setup.

userHeadPic lia.ifat