Skip to main content

Questions tagged [interrupt]

Interrupts allow the processor to suspend normal operation temporarily so that a high-priority software or hardware event can be handled instead.

-1 votes
1 answer
225 views

I have to simulate an ADC that behaves as an I2C slave. The simulated values that the ADC shall expose are sent over serial, saved on an attribute and are requested by a master device over I2C. A ...
0 votes
1 answer
513 views

I’m exploring ultra–low-power sensing designs where the Arduino should remain in deep sleep until a specific analog voltage threshold is reached — for example, when a sensor output rises above 1.2 V. ...
1 vote
1 answer
254 views

I'm trying to control the speed of a DC current motor with PWM. I use an arduino UNO to send PWM signal to a mosfet Velleman vma411 to change the average tension of a my motor which is wired to ...
1 vote
1 answer
36 views

I want to sample an ADC at very regular intervals. Right now, using millis/micros (which are driven by the internal RC oscillator), I'm off by around 3000 ppm, and it drifts. Here are some things that ...
1 vote
1 answer
351 views

For clock synchronization I want to implement a pulse counter on the Arduino Nano Every. There are two clock signals at 40-100 kHz, the Nano runs on 20 MHz. Nyquist says we need at least 2 times the ...
2 votes
1 answer
115 views

volatile uint32_t counter_timer = 0; void __USER_ISR myISR() { counter_timer++; clearIntFlag(_TIMER_3_IRQ); } void __USER_ISR myISR_timer_four() { clearIntFlag(_TIMER_4_IRQ); TMR4 = ...
18 votes
1 answer
28k views

Please explain how interrupts work on the Arduino Uno and related boards using the ATmega328P processor. Boards such as the: Uno Mini Nano Pro Mini Lilypad In particular please discuss: What to use ...
1 vote
1 answer
139 views

I am trying to start a camera firing at a fixed interval on a long servo pulse, stop it firing on the next long pulse, start it again on the next long pulse, etc. I use an interrupt to detect if the ...
4 votes
2 answers
1k views

I have an Arduino Mega, and I run out of interrupt pins. I have only pin 18 available, but I need 2 of them. What can I do? pin INTx digitalPinToInterrupt(pin) 3 INT5 1 2 INT4 0 18 TX1 INT3 5 19 RX1 ...
0 votes
2 answers
357 views

I need to synchronize two separate circuit boards working with Arduino Nano. The need is to activate one relay using Arduino-1 after 45 minutes, and another relay using Arduino-2 after 45.36 seconds. ...
0 votes
1 answer
1k views

As I am learning the Arduino coding, I want to see if my program can turn on the LED light. I have tried all the things, but the code does not start the LED light I have installed on the board. The ...
2 votes
2 answers
737 views

With Arduino Uno Rev3, I am trying to maintain a delicate timing while handling data transmission. I want to send 6 bytes at a time, which takes around ~44 us when I time Serial.write(). The time it ...
1 vote
2 answers
60 views

I am trying to read values from 2 separate DRO scales ( Digital Read Out ), most commonly used on lathe and milling equipment, CNC, or any X,Y,Z table. These scales need to use 2 interrupt pins per ...
0 votes
1 answer
100 views

I am wondering how I can precisely count time delays between rise events happening on 4 different lines/pins using Input Capture of Arduino Mega 2560. How can I synchronize timer/counters? Appreciate ...
3 votes
1 answer
304 views

An interrupt routine is executing unexpectedly, and I can't figure out why. Can you please have a look? Hardware is a generic (knock off) Arduino Mega, with an unused Ethernet shield, and a touch ...

15 30 50 per page
1
2 3 4 5
41