Hello everyone,
Greetings of the day, i have been working with embedded systems for quite a while now, currently i am working on a project that dispenses water depending upon the balance from rfid card, however the system has start stop and recharge buttons connected to interrupts of microcontroller Atmega2560 with internal pull-ups driven from falling edge. The system works fine mostly however in some cases false interrupts are detected that causes functions to be activated for respective buttons i.e. start stop or recharge. I tried adding a coupling capacitor and a schmitt trigger circuit to stabilize the input but it still detects the false signals of noise.
Moreover a small touch on the interrupt terminals(buttons not connected ) also causes the interrupt to be triggered, any suggestions are appreciated.
I am using arduino for declaring and defining the interrupt pins and their respective routines. The function just hosts a flag which is then checked in the main loop.
Thank you in advance.
EDIT:-
As suggested I tried:-
1. Adding an external pullup of values ranging from 1.5k-10k but the issue persists
2. Adding the decoupling capacitor
3. Power supply is fixed and using a bench supply of 24volt stepped down by a MORNSUN buck converter.
4. Not tried the debouncing test since the problem is not related to button press. Even if the button is not pressed, if I touch the open end of wire connecting the interrupt terminal then also it triggers the interrupt.
5. the pin is not routed near a power rail or a high frequency coil/trace.
interrupt problem interrupt arduino avr product design
Message was edited by: shwetank vishnu