Linked Questions

0 votes
1 answer
1k views

Mega attachInterrupt on pins 18 or 19 require EIFR bit set first (to clear it)?

Experimenting with external interrupts on a Mega. Pins 2 and 3 work with standard attachInterrupt(digitalPinToInterrupt(iPin),ISR,FALLING); coding and call my ISR. With pins 18 and 19 I had to add ...
4redwings's user avatar
  • 103
2 votes
1 answer
731 views

Waking up async the Arduino while it's sleeping periodically [duplicate]

I´m using LowPower.h and PinChangeInt.h libraries to put my Arduino into the sleep mode every 8 seconds and then it wakes up, modifies a counter and it goes to sleep again, but also I need to wake it ...
cpinamtz's user avatar
  • 175
0 votes
1 answer
690 views

I2C Interrupting Loop? [closed]

Imagine i have a code, that loops, and at one point there is i2c request. Is loop() paused right away when there is Wire.onReceive() or loop is finished then Wire.onReceive() is called?
Nicky's user avatar
  • 11
1 vote
2 answers
511 views

Make one Arduino fire interrupt on another

Problem I have an Arduino Duemilanove which needs to communicate with an Ardiuno Mega. The only pin available on the Duemilanove is D13. The Duemilanove is in charge of driving state on my robot, ...
trademark's user avatar
  • 111
0 votes
1 answer
490 views

ISR Issue: Arduino Pro Micro

I'm trying to do a small test where I am using the ISR on the Arduino Pro Micro it up from sleep mode. I'm using a Force Sense Resistor (FSR, a resistor that changes it's resistance depending on how ...
Jay's user avatar
  • 135
1 vote
1 answer
121 views

Checking a thing about interrupts

If I disable interrupts (for example noInterrupts or cli) and enable them (interrupts or sei for example) later, would interrupts which would have executed in the window in between fire by the ...
markoj's user avatar
  • 43
1 vote
3 answers
146 views

Using Interrupt on Arduino

I'm currently working on a project in which I'm supposed to make an Arduino car dodge any kinds of obstacles. I know how to do without using Interruptions but as I was searching online I found out ...
AFelip's user avatar
  • 11
0 votes
2 answers
82 views

I can't get my interrupt to control my project

I'm building a programmable resin pump for my resin printer. The goal is to enable the ability to set a print volume and print time provided by the printer. The pump would then pump at full speed to ...
TheCodeGeek's user avatar
2 votes
1 answer
62 views

Arduino Serial Output Gone Wild!

I'm having a slight problem that I'm unable to work out. I am using an arduino Uno to print an incremental, but predefined wheel circumference. This is all working beautifully except it gives a ...
user4163554's user avatar
1 vote
0 answers
155 views

Problem with counting inside INT0 ISR while in PowerDown

The issue that I have is in INT0 service in which it doesn't perform properly when MCU is set in PowerDown mode. I declared a global variable as "counter" and put it inside INT0 ISR but its value ...
Nima Sajedi's user avatar
-1 votes
1 answer
107 views

Arduino Sleep to conserve battery - How to intergrade it to existing sketch - HELP pls

My sketch below is simply using a touch sensor to activate a servo motor to go from from initial position 0 to 180 then back to 0. then I want the Adruino NANO to go to sleep to conserve some battery ...
Anthony's user avatar
1 vote
1 answer
79 views

Arduino program has suddenly stopped updating

I am writing a speedo/odometer program which was all working beautifully until I introduced an LCD screen and code for the LCD. The screen works on power up, displays the distance recorded on an SD ...
user4163554's user avatar