mobiDrone nano arduino OSD for MultiWii with PID config

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
MichalM_sk
Posts: 89
Joined: Wed Jun 15, 2011 5:04 pm
Location: Slovakia

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by MichalM_sk »

postaL wrote:I'm experiencing a problem that I cannot find a cure for.

When armed, i can still make the menu come up by pressing roll right. How can I correct this? It's rather annoying.

Thanks,
M



Hi,
its problem with dev version of multiwii (stable multiwii 2.1 work fine). At the moment I getting started to work on new sw version, whitch will support these changes in MW.

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

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by mahowik »

MichalM_sk wrote:Hi, on the first page is link to the schematic but there are some small hardware modifications at this time.


Is this last scheme?
http://www.toptel.sk/multicopter/downlo ... 0_schm.pdf
If no, could share the last one?

postaL
Posts: 36
Joined: Thu Oct 04, 2012 10:08 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by postaL »

MichalM_sk wrote:
postaL wrote:I'm experiencing a problem that I cannot find a cure for.

When armed, i can still make the menu come up by pressing roll right. How can I correct this? It's rather annoying.

Thanks,
M



Hi,
its problem with dev version of multiwii (stable multiwii 2.1 work fine). At the moment I getting started to work on new sw version, whitch will support these changes in MW.



Good to know. Except now, PPM_ON_THROTTLE doesnt work. bah. I just can't win w/ this one. :)

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by copterrichie »

Please MichalM, can I ask for support of the MWC POWERMETER? I would like to be able to read the current from the MWC verse connecting the current sensor to the mobiDrone.

Thank you.

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

+1 on that.
using the pmeter too.

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

Hi,

I just installed my OSD that I received today.

I have two issues:

1. I noticed a bad flickering, is there a known reason why the OSD is flickering randomly and is invisible sometimes for a few moments, which connection can be the reason.

2. I believe the artificial horizon is swapped :-) How can this be corrected?

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

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by mahowik »

jevermeister wrote:1. I noticed a bad flickering, is there a known reason why the OSD is flickering randomly and is invisible sometimes for a few moments, which connection can be the reason.

like this http://www.youtube.com/watch?v=z1uJk3FYFJE ?
viewtopic.php?f=8&t=1498&start=160#p24580

jevermeister wrote:2. I believe the artificial horizon is swapped :-) How can this be corrected?

in config.h

Code: Select all

//----------------- ROLL,PITCH Angle visualisation (Artifical-Horizont)
//#define ROLL_TILT_REVERSED                     
#define PITCH_TILT_REVERSED         
//-----------------//

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

Hi,
no the flicker is really bad, like there is a loose connection.


Regarding Horizon: I hoped to get around uploading new firmware :-(

I just tried that and get the message "not in sync" and nothin g is uploaded.

Trid bot ways of connecting rx and tx ...

Nils

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

And to complete things: OSD is not working anymore: The onoard red LED ist just slowly blinking but no graphics overlay on my screen.

:-(

postaL
Posts: 36
Joined: Thu Oct 04, 2012 10:08 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by postaL »

Is this video that has gone through a wireless transmission? (if yes, what setup) or is this direct feed to monitor from the mobidrone?

also, when flashing firmware onto this board... it is kind of dumb. you have to connect the tx/rx/gnd, then, once you push the "UPLOAD" button in Arduino, THEN you connect the 5v to it, and it will upload.

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

I use a 5.8GHz 200mw FPV System, but the SOD was working before I tried to flash it, after the flash attempt no more OSD :-(

Is it possible, that I killed the osd whyle trying to flash it?

I first tried to get VCC off the FTDI...

ReadError
Posts: 70
Joined: Sun Sep 09, 2012 11:08 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by ReadError »

You may be able to bring it back to life flashing via ICSP (micrograbbers on the legs)

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

Unfortunally, I only own a FTDI.

What is the blinking LED indicating?

What a bummer, the 5 minutes with a working OSD were very cool :-/
Nils

ReadError
Posts: 70
Joined: Sun Sep 09, 2012 11:08 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by ReadError »

You don't have or have access to a usbasp ? They are only like $5

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

I reverse engineered a pro mini to do this task while I was flashing my t9x TX

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

Hm,
I think I made a mistake:

I first tried to connect FTDI->OSD as follows:
TX->RX,
RX->TX,
VCC(OSD)->VCC(FTDI),
GND->GND

I got not in sync,
then I connected VCC to VCC of my Flyduino and did not share this VCC with the FTDI, so this was a mistake...

Could this kill the OSD?

I have fond my arduino.
Where to connect MOSI MISO, SCK and slave reset on the osd?

ReadError
Posts: 70
Joined: Sun Sep 09, 2012 11:08 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by ReadError »

Get on IRC, this will be easier ;)

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

Hi,
I am unable to connect to the osd chip,
I tried to reflash the bootloader but nothing helped,
I always get: avrdude: stk500_getsync(): not in sync: resp=0x00

Michal, can you help me out here?

Why should I connect the 5V at the moment the compiler is finished? Will 5V from FTDI be enough?

Nils

postaL
Posts: 36
Joined: Thu Oct 04, 2012 10:08 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by postaL »

jevermeister wrote:Why should I connect the 5V at the moment the compiler is finished? Will 5V from FTDI be enough?

Nils


You should connect it the second it finishes compiling because he tells you to do so in the instructions. Seems he doesn't have a Arduino Bootloader on there which will throw the out of sync error if not connected correctly.

It sounds rather dumb, but once you get it figured out using the wire connectors like readerror said, it's rather simple.

gluck!

ps. now fix the arm function not working on 2.1+dev

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

Hi,
thanks - I tried to uplaod it with the arduino tool using arduino isp, but it did not work out :(

Nils

Deet
Posts: 129
Joined: Sun Jul 08, 2012 1:54 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Deet »

You have to do the trick with the 5V pin or it never will work

thebgrian
Posts: 47
Joined: Sun Mar 27, 2011 4:46 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by thebgrian »

The reason you have to connect the power to the OSD at certain moment is because the reset circuit present at normal arduino is not on this OSD. The timing is very important, since there is a short window where you can initiate the programming, if you miss it the OSD will just load the already loaded code. I usually keep an eye on the Tx LED on the FTDI, push 'upload' and after the first blink of the Tx LED I connect the Vcc pin. It may take few tries but it works most of the time just fine.

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

Hi,
thanks to Michal's awesome service I got a repaired OSD in a short time.

THANKS Michal.

I connected the OSD to my Flyduino and everything is working perfectly now!

T H A N K Y O U !!!!

I am so looking forward to my first flight!!!

I noticed that the OSD starts to flicker when I arm and the engines are running, how can I fix that?

Nils

Deet
Posts: 129
Joined: Sun Jul 08, 2012 1:54 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Deet »

It will be an earthing issue, read back through the thread there are several posts regarding this

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

Hi,

thank you for the hint.

I connected the OSD to ground between camera and FPV TX, the TX is connected directlys to the LIPO.

I get 5V from the serial power connection on the flyduino, if I understood the previous post correctly, this should be the problem (?)

Nils

User avatar
shikra
Posts: 783
Joined: Wed Mar 30, 2011 7:58 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by shikra »

What deet says - almost always gnd - make sure use the camera one. It solved mine.
If 5v is noisy try using a coil/cap putting a big cap accross 5v line to OSD. min 470uf. 3300uf usually does the trick!!

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

Hi, thank you.
As said above. I connected it to the GND that is between FPV-TX and Cam.

I will rry another 5V. I use the 5V of the flyduino, that is supplied by a single ESC.

Nils

Deet
Posts: 129
Joined: Sun Jul 08, 2012 1:54 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Deet »

get ground and +5V from the Rx (any spare port will do) and ALSO Gnd to the Vtx as will, not in the middle

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

ok. I ll try that when I am home tonight.

My RX is powered by the flyduino FC. So the 5V should be as noisy as before.
The wire that connects the fc to the osd s very long. is it possible that the motors xause a magnetic flux?

Deet
Posts: 129
Joined: Sun Jul 08, 2012 1:54 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Deet »

keep all the wires as short as possible

I found the 5v pin on the serial port to be particularly noisy, i would guess it isnt designed to have any current drawn

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

Hi,
I have 4,6V from the Serial Ports 5V pin :-(
2Ohm between GND of RX and GND on serial port.
I tried several things:
Powering 5V from RX or ESC does not help

I tried to get GND from ESC but without the cam the OSD does not work.

Nils

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

Ha,
got it!

I found out, that the GND between FPV TX and cam differs from the GND of the FC,
I have a resistance of 2Ohm between those GNDs.

I wonder why the FPV TX is doing this...

Is it save to interconnect the GND on the FPX TX?

Nils

Deet
Posts: 129
Joined: Sun Jul 08, 2012 1:54 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Deet »

it should be

mysku82
Posts: 17
Joined: Wed Oct 12, 2011 7:32 am
Location: Bucharest, Romania
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by mysku82 »

Hello
Can you help me?
I tied Ultralight 50A Current Sensor (pin S) N1 entry, set sensor 3 and I have a problem.
As I powered quad starts and counts 20-30mAh/sec and shows consumption of 25-30A engines find Not started.
Do you know why?
Thanks

tasospap
Posts: 7
Joined: Wed Jul 11, 2012 6:29 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by tasospap »

Hi i have one Feiyu 100A Current Sensor set for AP117 OSD Display . Can i conect it with mobidrone OSd and what is the conection diagram .

User avatar
jevermeister
Posts: 708
Joined: Wed Jul 20, 2011 8:56 am
Contact:

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by jevermeister »

Hi, gps data freezes when I use the osd.There seems to be a problem with multople serial ports in 2.1 on mega2560. would it be possible to send the data to osd via i2c?Maybe I can help programming it...

Nils

clae81
Posts: 7
Joined: Thu Jan 03, 2013 9:09 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by clae81 »

Hi guys. I have a problem with my bat 2 voltage sence.
Im unning 4s and i have done the hardware and software mod to suit the 4s input.
The problem is that the voltage display fluctuates. ie at a steady 16.5v input the display will fluctuate anywhere between 15.8 and 17.2v. Its not very acurate especially when im only oporating down to 15.2v.
Any idea what the problem may be. Is their a sensitivity adjustment in the code?
Its all grounded ok.

Thanks, Clae.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by copterrichie »

clae81 wrote:Hi guys. I have a problem with my bat 2 voltage sence.
Im unning 4s and i have done the hardware and software mod to suit the 4s input.
The problem is that the voltage display fluctuates. ie at a steady 16.5v input the display will fluctuate anywhere between 15.8 and 17.2v. Its not very acurate especially when im only oporating down to 15.2v.
Any idea what the problem may be. Is their a sensitivity adjustment in the code?
Its all grounded ok.

Thanks, Clae.


I would suggest using this Zener technique to adjust the voltage. viewtopic.php?f=6&t=2661

Deet
Posts: 129
Joined: Sun Jul 08, 2012 1:54 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Deet »

copterrichie wrote:
clae81 wrote:Hi guys. I have a problem with my bat 2 voltage sence.
Im unning 4s and i have done the hardware and software mod to suit the 4s input.
The problem is that the voltage display fluctuates. ie at a steady 16.5v input the display will fluctuate anywhere between 15.8 and 17.2v. Its not very acurate especially when im only oporating down to 15.2v.
Any idea what the problem may be. Is their a sensitivity adjustment in the code?
Its all grounded ok.

Thanks, Clae.


I would suggest using this Zener technique to adjust the voltage. viewtopic.php?f=6&t=2661


given the voltage divider is already on the board, not sure the zener diode solution can be applied, unless you have done so already. In which case what value zener did you use?

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by copterrichie »

You just need to find the right zener to drop the voltage to the 3S level but it would be best to bypass the onboard voltage divider, agreed.

clae81
Posts: 7
Joined: Thu Jan 03, 2013 9:09 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by clae81 »

Ok, i inderstand the theory of the zener, but wouldnt i then have to change the divider R values on the board?
Deet, i see that you run 4s input. Did you have the same issue? Im wondering if i have a faulty board.
I'll try to measure the volts at pin 24 ot the ATMEGA328 chip and see if its steady.

Thanks for your input guys.

clae81
Posts: 7
Joined: Thu Jan 03, 2013 9:09 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by clae81 »

ok with a input voltage of 16.52V at the batt input of the osd, im am getting a steady 4.133V at pin 24 of the ATMEGA328 chip. Therefor i know that the divider cct is oporating ok. But the osd Display is still fluctuationg aprox between 15.8 and 17V.

Any ideas?

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by copterrichie »

clae81 wrote:Ok, i inderstand the theory of the zener, but wouldnt i then have to change the divider R values on the board?
Deet, i see that you run 4s input. Did you have the same issue? Im wondering if i have a faulty board.
I'll try to measure the volts at pin 24 ot the ATMEGA328 chip and see if its steady.

Thanks for your input guys.


If you use a 4.3V Zener inline, that should drop the voltage (4S to 3S) to a point where nothing else has to be changed

clae81
Posts: 7
Joined: Thu Jan 03, 2013 9:09 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by clae81 »

copterrichie wrote:
If you use a 4.3V Zener inline, that should drop the voltage (4S to 3S) to a point where nothing else has to be changed


So are you saying to remove the extra 10k resister that i installed inline and revert the code change that michalM_sk said to do and instead install a 4.3V zener. Ok i will try.

MichalM_sk wrote:
Hi,

there is needed two steps to 4S support:

1.HW modification
it is possible change first 10kOhm resistor (from bat pin) to 20 kOhm or add one 10kOhm resistor.

2.Software modification

find this line:

Code: Select all

sensVcc *= 0.0147;


and replace with:

Code: Select all

sensVcc *= 0.0196;

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by copterrichie »

clae81 wrote:
copterrichie wrote:
If you use a 4.3V Zener inline, that should drop the voltage (4S to 3S) to a point where nothing else has to be changed


So are you saying to remove the extra 10k resister that i installed inline and revert the code change that michalM_sk said to do and instead install a 4.3V zener. Ok i will try.



No, what I am saying is to simply add the zener in series, in other words,

Battery---- Zener--- Normal connection.

clae81
Posts: 7
Joined: Thu Jan 03, 2013 9:09 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by clae81 »

Ok i was just making sure that you know that i dont have a normal connection (as what is shipped) ive already added an extra 10k resistor as per michalM instructions for 4s.

So ill keep that 10k and add a zener. Will let you know how it goes.
Thanks for your help.

Deet
Posts: 129
Joined: Sun Jul 08, 2012 1:54 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Deet »

My voltage on 4S is fine using the modified code and the additional 10K resistor

IF you added the zener it would have to replace the additional 10K resistor, and I would guess the code would need to go back to the default settings

I am not convinced the zener is a good idea, I think it will give a non-linear response as the voltage drops compared to the resistive ladder

Deet
Posts: 129
Joined: Sun Jul 08, 2012 1:54 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Deet »

clae81 wrote:ok with a input voltage of 16.52V at the batt input of the osd, im am getting a steady 4.133V at pin 24 of the ATMEGA328 chip. Therefor i know that the divider cct is oporating ok. But the osd Display is still fluctuationg aprox between 15.8 and 17V.

Any ideas?


this is would indicate a fault on the board or in the code/processor itself

Unless its a ground issue

what gnd did you use when measuring this voltage

clae81
Posts: 7
Joined: Thu Jan 03, 2013 9:09 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by clae81 »

I tried a few diffrent grounds with the same readings. Most of my grounds are commoned up anyway. (+5, +12 cam supply ect)

tasospap
Posts: 7
Joined: Wed Jul 11, 2012 6:29 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by tasospap »

I have a problem when i press sensor calibration from mobiDroneOSD hangs in addition she throws trash in Aux and PID tuning. I have crius SE with MultiWii dev version r1240 (2012/10/31) and mobidrone with mobiDroneOSD_v2.3_PRE_RELEASE_7.8_REPACKED code .
How can i remove this bug?

Post Reply