NanoWII Change of Motorpin

Post Reply
Goetz
Posts: 82
Joined: Sun Mar 04, 2012 3:40 pm

NanoWII Change of Motorpin

Post by Goetz »

I have an NanoWII whitch worked well until an Crash. The Connection of D6 where I used to plug the Servowire is broken on the Nano, there is no Signal coming out any more.

I need only 4 Motorpins, so my hope is that I can use another Pin (e.g. D11)

Where can I change the Pinaasignment in the Code to work with D11 instead?

In Output.cpp I found

Code: Select all

/**************************************************************************************/
/***************                  Motor Pin order                  ********************/
/**************************************************************************************/
// since we are uing the PWM generation in a direct way, the pin order is just to inizialie the right pins
// its not possible to change a PWM output pin just by changing the order


as remarked in the Code this seems not to be the right place, but where is the right Place, I'm not a Coder and for me it is hardly possible to follow the Code.

Can anybody help please?

Goetz
Posts: 82
Joined: Sun Mar 04, 2012 3:40 pm

Re: NanoWII Change of Motorpin

Post by Goetz »

I already found an solution in an german forum:
http://fpv-community.de/showthread.php? ... orport-(D5)-tot-NanoWii2-Kupfer-Leiterbahnen-zweier-Motorports-hin&p=514286&viewfull=1#post514286

The idea is: call it an hexa in the sketch and change the motormix in hex so it behaves like quad on the new pin :-))

Thanks to Felix for this genius idea.

Post Reply