Yet another Android based naze32/multiwii 2.0 configurator

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Yet another Android based naze32/multiwii 2.0 configurator

Post by nicodh »

Hello,
I'm fairly new in the multiwii community. I recently got a naze32 FC, wich use a 32bits ported based on the multiwii 2.0 firmware.

Since I had some time, I decided to give a try to android development world and start a new configurator (when I started, the existing one from icewind was not compatible with 2.0 protocol).

After A couple of weeks I finally got something that is working (at least for me). I know there are some bugs here and there and it is not very artistic. It's more in the user experience side (again, at least for me).

Some of the features are:
- userfriendly sliders to change values
- different tabs for pid, radio and switchs settings
- Aux1 to Aux4 switch panel (I'm going to try to add the lamp colors like in mw wingui)
- For naze32 users (I don't know about multiwii users, but I will do some research) features from cli can be changed over bluetooth. I'm going to look at the cli from multiwii code, so I can adapt also the same stuff.

It's completely free, it will keep that way. I will try to listen and code some of the user wishes. For starter here are some images:
screenshot_2012-04-07_1750.png
screenshot_2012-04-07_1750_1.png

screenshot_2012-04-07_1750_2.png
screenshot_2012-04-07_1751.png

screenshot_2012-04-10_1732.png
screenshot_2012-04-12_0942.png


I attached a zip file with the latest apk.
Feel free to test it and abuse it. And of course, if you found errors, mistakes, crap stuff, tell me, i will do the best to repair it as soon as possible.

I will update as soon as possible with the changes.

UPDATE: 1.0.5
-Added RCchannel feed
-Some UI improvements.

UPDATE 1.0.6
- Realtime sensor display on graph.
- Connect/disconnect touching the center label (red/green)


It seems that some people has downloaded 1.0.4 and 1.0.5 versions, I would like to have some feedback from your tests.
Is it worth to continue updating or just forget about it?



Have a nice day!
Attachments
naze32configurator1.0.6.zip
(168.92 KiB) Downloaded 615 times
Last edited by nicodh on Thu Apr 12, 2012 8:46 am, edited 2 times in total.

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

Hello again, I'm trying to see if there is a cli, and I think I found my answer. It's no. so normally the cli_settings shouldn't do anything for multiwii firmware.

The rest of the features setteables via gui are working, at least I assume it does until someone will tell me not.

So have a nice tryout!

icedfusion
Posts: 12
Joined: Tue Jan 24, 2012 2:18 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by icedfusion »

What BT module are you using? I have seen a few on ebay - just wondering if I need the one which also comes with a dongle to configure it - or if I just need the 115600 or the 9600 baud rate modules?

Cheers

ice.

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by timecop »

You can use something pre-configured to 115200.

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

Dongs is right an is the simpler solution.

Other solution is doing this:
viewtopic.php?f=6&t=133&p=11075&hilit=bluetooth#p11075

that's what I followed to make my bluetooth transceiver.

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

The new protocol has been updated, Naze32 configurator is compliant with the new mwc firmware. Faster refresh rate on realtime graphs (50 hz).

Auto save modifications inmediately.

On play google.

alexrj
Posts: 2
Joined: Tue May 08, 2012 6:26 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by alexrj »

just signed up to say nice work! really like being able to adjust the CLI settings without a laptop. graph is working in the new version as well. if i have the app open, then close it and reopen it I get this error:

main_read_olick (java line:1776)
java.io.IOException: socket closed

if I open again after the error it normally works. I have a wildfire s using android 2.3.3

cheers for making it :)

all the best
Al.

alexrj
Posts: 2
Joined: Tue May 08, 2012 6:26 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by alexrj »

if I press disconnect before quitting the app it opens and closes fine everytime :) A

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

Yes, thanks, that's something I haven't yet corrected, it will be soon, but it's doesn't harm. Glad you like it.

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

New small update. (it's found in the play.google market under naze32)
https://play.google.com/store/apps/deta ... XJhdG9yIl0.

I found (doing a windows based gui for dev, since naze32 has the new protocol) that aux3 and aux4 had some strange behaviour, so I correct that and add a nice feature, at least for me. The status in the switch panel is shown as in the multiwii gui. The label becomes green when enabled, transparent when disabled. Hop you like.

If someone is interested in a windows minimalistic gui (it has no graph for now) I will upload it.

Enjoy.

mahowik
Posts: 332
Joined: Sun Apr 10, 2011 6:26 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by mahowik »

Hi,

At first thanks for you project! ;)

Are you planning to make some switching between real-time graphs for all sensors (ACC,GYRO, BARO etc.)? I.e. not only ACCx/y/z and Gx...
Also it would be very useful to have debug1/2/3/4 graphs when developing/testing some new modes outside. E.g. alt-hold baro/sonar, optflow position hold etc.

thx-
Alex

sismeiro
Posts: 173
Joined: Tue Feb 21, 2012 12:33 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by sismeiro »

Hi,

First of all, congrats and thank you for the Android app. Second, the tab Radio on the app that I download from the Google Play is different from the one on the initial post (sorry about the quality). Is this new to this version?

IMG-20120524-00007-s.jpg


Regards,
Luis Sismeiro

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

Hi, yes is the new version, since i add the throttle mid and throttle expo.

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

mahowik wrote:Hi,

At first thanks for you project! ;)

Are you planning to make some switching between real-time graphs for all sensors (ACC,GYRO, BARO etc.)? I.e. not only ACCx/y/z and Gx...
Also it would be very useful to have debug1/2/3/4 graphs when developing/testing some new modes outside. E.g. alt-hold baro/sonar, optflow position hold etc.

thx-
Alex


Hi alex, of course I'm planning to add them. I had some problems with data until now, but I resolved them so I will add the graphs posibilities very soon (maybe tuesday).

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

A new version has been updated to play.google, with the ability to show debug data in the graphs.

Mahowik. Just touch the bottom left label (ax) and see what it does. :-)

Fried_Onion
Posts: 5
Joined: Wed May 30, 2012 11:29 am

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by Fried_Onion »

Hi, thanks for making this app its really great.

I wanted to suggest a feature which I would find very useful. In the Multiwii GUI, it displays vbat voltage, so would it be possible for you to make alarms on my phone based on that? e.g. vibrate, ringtone. I would find it really useful if you could make it.

thanks

Tommie
Posts: 438
Joined: Sun Apr 08, 2012 9:50 am

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by Tommie »

Please make sure to only write valid values back into the copter. I tested the app and it promptly set my roll/pitch rates to 0. Yes, ZERO, Niente, Nix. Had a hard time flying.

ta1dr
Posts: 1
Joined: Fri Apr 27, 2012 7:45 am

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by ta1dr »

I tried this software my samsung ace telephone and multiwii crius se board via BT modul but software connet BT modul when I star (grafik mode) or read button give error "java ....... error" and close.

adam
Posts: 15
Joined: Sun Oct 02, 2011 4:26 pm
Location: Taiwan

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by adam »

I tried this software tonight and got a problem, i connected X4 via BT to Android phone , switch/vaule reading are right, when i write it to EEprom finished ,the X4 can take off , but pitch/roll/raw are loose controlled. only throttle can used.
I am used thisversion "multiwii development version - 5 May 2012"

fiendie
Posts: 151
Joined: Fri Apr 20, 2012 4:22 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by fiendie »

adam wrote:I tried this software tonight and got a problem, i connected X4 via BT to Android phone , switch/vaule reading are right, when i write it to EEprom finished ,the X4 can take off , but pitch/roll/raw are loose controlled. only throttle can used.
I am used thisversion "multiwii development version - 5 May 2012"

Set RC Rate and RC Expo back to 0.9 and 0.65 respectively with MultiWiiConf.
It's a pretty nasty bug that almost everyone using this app seems to have run into ;)

adam
Posts: 15
Joined: Sun Oct 02, 2011 4:26 pm
Location: Taiwan

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by adam »

fiendie wrote:
adam wrote:I tried this software tonight and got a problem, i connected X4 via BT to Android phone , switch/vaule reading are right, when i write it to EEprom finished ,the X4 can take off , but pitch/roll/raw are loose controlled. only throttle can used.
I am used thisversion "multiwii development version - 5 May 2012"

Set RC Rate and RC Expo back to 0.9 and 0.65 respectively with MultiWiiConf.
It's a pretty nasty bug that almost everyone using this app seems to have run into ;)


Great ! It's a good news, I will try it later,
Thanks for your help!

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

I think I corrected that in the last update (today). If keeps happening I will try to find out why this happens. Thanks for your comments.

Ok, I just found the error.

It happens when you connect and go directly to switches without opening the radio tab. Since no data was loaded it send 0 to everything.

I will correct that right now so the update would be up in play google in a couple of hours. Sorry for the inconvienience.!
Last edited by nicodh on Wed Jun 06, 2012 1:47 pm, edited 1 time in total.

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

Fried_Onion wrote:Hi, thanks for making this app its really great.

I wanted to suggest a feature which I would find very useful. In the Multiwii GUI, it displays vbat voltage, so would it be possible for you to make alarms on my phone based on that? e.g. vibrate, ringtone. I would find it really useful if you could make it.

thanks


It is possible, I will look after and try to update soon.
Thanks for the idea.

Done, uploaded to play google. Should auto update soon, but if you don't want to wait. http://baradrone.free.fr/naze32/naze32configurator.apk

Again sorry for the annoying bug.

Tommie
Posts: 438
Joined: Sun Apr 08, 2012 9:50 am

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by Tommie »

Hm, I've added the new AUX switch items included yesterday to your code, but since you are using this strange basic stuff, I cannot or test it. I'm sending you a patch, so be aware that the code is untested :-)

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

Will update as soon as possible.
Thanks.

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

UPDATE 1.37: Battery level addtion. 2 levels available and setteable. Level 2 (critical) will beep and vibrate (if available). To set values just touch the level 1 and level 2 labels. A number picker will be display. Click ok. (refresh rate is 100 ms)

sandmen
Posts: 24
Joined: Mon Feb 21, 2011 3:26 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by sandmen »

Do this version work with the 0606-dev version?
Thanks Peter

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

it should. If not drop me an email with the error.

sandmen
Posts: 24
Joined: Mon Feb 21, 2011 3:26 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by sandmen »

Thanks, I will try and give you a feedback.

sandmen
Posts: 24
Joined: Mon Feb 21, 2011 3:26 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by sandmen »

works.
Thanks

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

version 30 save alarm settings in file. Every time you start alarm bat it will display your settings.

Tifani
Posts: 63
Joined: Sun Nov 06, 2011 5:15 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by Tifani »

Hi !
I have strange behavior on my Samsung Galaxy S (2.3.5) - MultiWii 2.0 BlueSky RC BT module @11520Wii
http://www.youtube.com/watch?v=aeaAe3pCEzg
As You can see all graphs jump without touching radio.
Ice Wind MultiWiiConfigurator work fine on the same setup.
Regards
Tom

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

Ok, that's because the refresh rate is too high, I should try to add a setting for that. Maybe in a few days. You have the latest version? 1.37 version 30?
Send me a mail I will try to do a testing version for you to try.

Tifani
Posts: 63
Joined: Sun Nov 06, 2011 5:15 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by Tifani »

Hi !
Thanks a lot.
Yes it is v1.37 30.

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

Easier than I thought, I finish adding a combobox for choosing the refresh rate on rc data, will do the same in motors, test it tomorrow, and upload to play google as version 31.

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

Hey Tom, I just added a spinner to choose the refresh rate on rc display and motors display. You can choose between 5 Hz and 100 Hz (and some in between of course)

version code 31. updated in play.google.

Tifani
Posts: 63
Joined: Sun Nov 06, 2011 5:15 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by Tifani »

Hi !
Thanks !!!
Downloaded. Will test when comeback from work.
Regards
Tom

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

in fact code 32 I think, i made a mistake on 31. :-)

Tifani
Posts: 63
Joined: Sun Nov 06, 2011 5:15 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by Tifani »

Hi !
Yes it is 32.
Just reporting.
I had very little time so maybe I did something wrong - I can not make it work at all.
Will try again tomorrow with controller only and different copter.
Tom

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

I just released the new version wich is compatible with the latest serial protocol. Now, 3 protocols are available (old, 2.0 and the 2.1 protocol).

It's set on newest protocol.
Available at play.google and my blog here: http://www.rcgroups.com/forums/showthre ... st21832271

User avatar
UndCon
Posts: 293
Joined: Mon Feb 21, 2011 2:10 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by UndCon »

This is nice - I will try it when I get home from work.

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

UPDATE 35:
Minor retouching concerning popups.
New feature: no more need to hit the write button when you change the switchs. Every second it will send the configuration.
The write button is now useless (it works of course but no need to use it)

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by PatrikE »

It is very easy to send invalid settings to the copter!
Several times when i connected and changed PID's the radio settings have been written as zeros.
And same with the switches.

Is it possible to send only the data from the active page?.
I always have a saved setup to upload again when it happens.

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

Ok, i will do it. Is better to only update the necessary. Tomorrow will be done. ;-)

Well took less time than I thought, addition of select case do the trick with the write button. But, you know that every time you change a value on pid or radio tab it will update just that tab? I did this some time ago. The problem was with the switchs tab, you had to touch the write button, not anymore (it's automatic).

I found another bug, withe the save to file. I just corrected.

The latest is 1.39 version 36...
Last edited by nicodh on Thu Jul 05, 2012 6:39 pm, edited 1 time in total.

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by PatrikE »

8-) :!:

User avatar
Bledi
Posts: 187
Joined: Sat Sep 10, 2011 6:36 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by Bledi »

one more thing,
To have PITCH/ROLL PID on 1 line is really a good idea, but on special models I sometime need to have different PID on pitch and roll.
Is it possible to have a option to select PITCH/ROLL PID on 1 or 2 lines.

Thanks a lot ! Your soft is a must have !

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

Hi Bledi, hmmm, yes it could be done, give me some time to think about it and how to deal without changing everything

User avatar
Bledi
Posts: 187
Joined: Sat Sep 10, 2011 6:36 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by Bledi »

as Patrick
8-) :!:

Oh just I more question ... Is the google map working ? It don't work for me ...

nicodh
Posts: 44
Joined: Sun Apr 08, 2012 1:42 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by nicodh »

Maybe not, I forgot to look at that. :-). Since I don't have a gps connected (even thought I have a new one) I forgot to update.
I take a look.

Yep, it does not work. Forgot to add it in the new protocols.

I will do it, but remember that bluetooth has a limited range (30 meters at top) so gps data is useless. :-)
I did it as an excercise. It works if you use a xbee between the bluetooth and the quad.

jy0933
Posts: 180
Joined: Wed Jun 27, 2012 4:24 pm

Re: Yet another Android based naze32/multiwii 2.0 configurat

Post by jy0933 »

do you plan to port to tablet in the future? so it can be more like mwc having everything in one screen

great work

Post Reply