Configuration in nanowii fail,for roll servo

Hi everybody !

I had, since long time two hextronik nanowii v1 from hobbyking :

hobbyking.com/hobbyking/store/__22322__MultiWii_NanoWii_ATmega32U4_Micro_Flight_Controller_USB_GYRO_ACC.html

I wanted use it for underwater rov project, but always failing, due i think to my very bad comprehension in multiwii configuration tool in arduino IDE .

I tried use this nanowii parts as a simple Ppm sum to pwm servo out, without any success…
And I don’t know why, without any hextronik exemple…

So i prefer use these part as a gimbal controler ,and see this post :

robotshop.com/blog/en/multiwii-servo-gimbal-stabilizer-14102

I tried to use your gimbal code for my hextronik nanowii , thinking which is the same as
your multiwii board used in project .

I just change in config.h code ,the multiwii board name where "flyduino " by “nanowii”

And when I open the multiwii conf tool ,I see the two servo out ,roll and pitch where the graphical roll bar, don’t seem moving although, the pitch yes ,when I moving my card .

Your gimbal Is there compatible with my card ?

My cards are new and never connected to any servo ,I just use multiwii conf tool before connect one.

If any help possible ,I thank you a lot .

Can you post a picture of your wiring to the board ?
The code should work and, both the PITCH and ROLL values should move.
Have you calibrated your ACC at least once ?

Hello ,dialfonzo

Happy from your help .

" Can you post a picture of your wiring to the board ? "

That is pretty simple, nothing is connected, apart the usb to my computer .

Before connecting any servos ,i observe on multiwii configurator 2.2, the two bargraph for roll and pitch gimbal servo .

" The code should work and, both the PITCH and ROLL values should move."

Of course ,that is what I want !

" Have you calibrated your ACC at least once "

If i understand the process ,i need to select " acc " "calibrate " with my mouse on the configurator ,and let my nanowii on a horizontal line during 5s.

If yes ,i calibrate always …

My basic connection.

  • 5v power is from usb port ,
  • My two nanowii work in the same problem configuration…

I consider ,the multiwii configurator, as a virtual drone where the values applied on pins were displayed.

I’m very newbie in multiwii world ,and can forget any connection or particular configuration .

At this time ,I never succeeded any programing on my nanowii board even ,for control.

I thought when I bought the two card ,the multiwii configurator enough for the parameter setting , but effectively no …

What happen when you move your board in the MultiWiiConf software ? Does the Horizon work as it’s supposed to ?

Hi Dialfonzo,

I think ,yes .

When I move my board ,like in space situation ,the artificial horizon indicator ,work in the two axle, both roll and pitch .

I attach on this post ,pictures of Multiwii Gui and Multiwii conf.h, which I modified (Flyduino to Nanowii ).

If it can help you .
Nanowii gimbal.zip (503 KB)

In the “setting” page you have a lot of boxes checked so we would suggest removing those and “save” once done.
You are using WinGUI instead of MultiWiiConf and after testing that, it seems like the ROLL output is not moving for us neither. Try using the MultiWiiConf software that is included in our zip file. But we do think your board does work as it should.

Hi Dialfonzo !

All my thanks ,for your help !

Effectively, I was letting Wingui, for winconf, and see my two virtuals servos moving .

I can’t test directly ,with any hardware servo ,at this time ,but I see on A0 and A1 two pwm signal , I think will do it this week end .

For the little history ,I never used multiwiiconf ,cause it always won’t launched.
Java had to need to be installed…

I installed it ,and launched multiwiiconf for win32, and used it …

Thanks very much for your help Dialfonzo !

Let us know whey you try with real servos… :wink:

Hi !

And many apologize ,for my slow reply at you last post, Dialfonzo .

I connected quickly ,two hard servo on A0 and A1 ,for the roll and pitch axle…

And the twice servo , respond correctly at the imu movement, in space .

It’s working

Nice… :wink: