Hi all,

It seem that my output # 1 on my new APM2 just fried, I have an hexa and the board has 8 output channnels.

May I change the code with arduino so that I used channel 2-7 instead of 1-6 ?

I'm using Arducopter v. 2.5.5 and I look at the code and did not find any relevant info yet.

Thanks for any advice.

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

Join diydrones

Email me when people reply –

Replies

  • On APM 2.0, the outputs come directly off of the mega 2560 chip, where in the APM 1.0 there was a multiplexer IC between the mega and the actual outputs 1-4.

    Knowing that the main mega has been damaged, I would replace it since you never know if the damage could migrate or lock up the mega mid flight. I know DIY drones can repair the boards or if you had access to a hot air rework station, you could fix it for the cost of the chip.

    I would think you could modify the code if you really wanted, but again, I just wouldn't go that route. Further, I think what you want is to leave the rest the same and assign output 1 to channel 7 and not touch the numbering on 2-6. That would be the easiest and most logical change.

     

    I didn't have a copy of 2.5.5 handy, but in the zip of 2.5.3 motors_hexa.pde is the config I think you want to change. Not 100% sure but it's a place to look.

    Nope, my fault, APM_Config.h is the file to edit.

    // Custom channel config - Expert Use Only.

    // this for defining your own MOT_n to CH_n mapping.

    // Overrides defaults (for APM1 or APM2) found in config_channels.h

    // MOT_n variables are used by the Frame mixing code. You must define

    // MOT_1 through MOT_m where m is the number of motors on your frame.

    // CH_n variables are used for RC output. These can be CH_1 through CH_8,

    // and CH_10 or CH_12.

    // Sample channel config. Must define all MOT_ chanels used by

    // your FRAME_TYPE.

    // #define CONFIG_CHANNELS CHANNEL_CONFIG_CUSTOM

    // #define MOT_1 CH_6

    // #define MOT_2 CH_3

    // #define MOT_3 CH_2

    // #define MOT_4 CH_5

    // #define MOT_5 CH_1

    // #define MOT_6 CH_4

    // #define MOT_7 CH_7

    // #define MOT_8 CH_8

  • how did you fry an output? could it be a bad connection or dry solder joint on the IC?

This reply was deleted.

Activity