Interrupts on digital pins

Hi all,

Ok I've spent most of the day on this and I'm still struggling so am going to ask here.

I want to use an interrupt to take information from a digital pin on the Ardupilot.

My questions are:

What interrupts are used by Ardupilot, or, more importantly, what ones aren't and are free for me to use without messing up the existing code?

-and-

What digital pin is best to use?

I've looked on Arduino.cc and in iom328p.h; external interrupts exist for digital pins 2 and 3, but I can only see digital pins 6-8 and 11-13 on Ardupilot, is this correct?

It looks like I can change the pin of an interrupt but I'm not quite sure how to do so.

Any information would be greatly appreciated.

All the best,
Nick

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Elevator and rudder..I see..fairly important then..
  • I am still stumped by this.

    What is Ardupilot using digital pins 2 and 3 for?

    Has it used up all the interrupts or can I re-assign one?

    Thanks.
This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…