Interrupt in Arduino without Library
In this project, I will make External Falling interrupt in Arduino UNO without a Library function.
Interrupt in Arduino without Library
Boards and Digital PINs Usable for Interrupts
Uno, Nano, Mini, other 328-based - PIN 2, 3
Uno WiFi Rev.2, Nano - Every all digital pins
Mega, Mega2560, MegaADK - PIN 2, 3, 18, 19, 20, 21
Circuit
Summary
Interrupts in Arduino is a hidden feature,
In this project, I used PIN 2 (D2) as an interrupt PIN
The type of Interrupt used here is Falling Interrupt
You can get the code from here
After uploading the code to board, when the button is pressed an interrupt occurs when glows the in-built LED
That’s it for now..
This post is licensed under CC BY 4.0 by the author.