Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [interrupts]

In computing, an interrupt is an asynchronous signal indicating the need for attention or a synchronous event in software indicating the need for a change in execution.

0
votes
1answer
37 views

PID control loop and feedback acquisition synchronization

In many real-time PID control loop application I have seen that the control loop is triggered exactly as the ADC interrupts arrives in order to achieve maximum synchronization between feedback ...
2
votes
1answer
225 views

How to split tasks between interrupts and the main loop on a bare metal controller?

I'm working on a robotics project where I have 3 services running. I have my sensor DAQ, my logic ISR (motor controller at 20kHz) and my EtherCAT slave controller. DAQ and EtherCAT run in the idle ...
1
vote
2answers
1k views

How to interrupt on a data ready trigger when communications to the sensor are interrupt driven?

Background: I'm using the L3GD20H MEMS gyroscope with an Arduino through a library (Pololu L3G) that in turn relies on interrupt-driven I2C (Wire.h); I'd like to be able to handle each new reading ...
2
votes
1answer
893 views

Programming 4-digit seven segment display using interrupts only

I have to program an autonomous bot (using an ATmega2560). It has a 4-digit seven segment display attached to it. I have to make the bot traverse through arena while continuously displaying the time ...
4
votes
2answers
1k views

Wheel encoder triggers interrupt too many times

I am building a simple robot with two driving wheel. I want to control the wheel rotation using a wheel encoder like this one. Here is a code I have on Arduino to try to understand the problem I'm ...
7
votes
5answers
3k views

Polling or Timer interrupt?

We hope to build a simple line follower robot and we got a problem when we were discussing about PIC programming. We planed to write a endless loop, check the sensor panel reading and do the relevant ...
5
votes
3answers
6k views

Limits of PWM, Timers and Interrupts?

I have a robot with two wheels/motors and each has a quadrature encoder for odometry. Using the wheel/motor/encoder combo from Pololu, I get 48 transition changes per rotation and my motors give me a ...
5
votes
3answers
3k views

How to manage interrupts on an AVR?

I have a number of interrupt service routines on an AVR. These include interrupts for USART serial communication, timers, and SPI communication. For all of these, I use circular queues (using a start ...