apm2.5 pinout

Hi all,

I am writing my own code for the ardupilot 2.5 board and have the eagle files and schematics, however I am totally confused as to the pinout. (my vehicle is a bit different from a standard vehicle and connected with my work so I am not allowed to use the open source code or library). If the project works I will publish details.

I am working on the 8 outputs, using 1-4 as servo outputs and 5-8 as digital outputs.

The schematics would give the following:

o/p8 - pin 5
o/p7 - pin 6
o/p6 - pin 7
o/p5 - pin 15
o/p4 - pin 16
o/p3 - pin 17
o/p2 - pin 24
o/p1 - pin 25

By trial and error I have arrived at the following:

o/p8 - pin 5
o/p7 - pin 2
o/p6 - pin 3
o/p5 - pin 6
o/p4 - pin 7
o/p3 - pin 8
o/p2 - pin 11
o/p1 - pin 12

I am using servo.attach and PinMode to assign the pinouts, I have mega 2560 selected in arduino and device manager identifies my board as a mega 2560. Given my board is a genuine ardupilot apm 2.5 where does the difference come in?

Anyone any ideas?

Regards

Richard.

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

Join diydrones

Email me when people reply –

Replies

This reply was deleted.

Activity