HobbyKing.com New Products Flash Sale
Reply
Thread Tools
Old Jul 22, 2011, 05:18 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
754 Posts
Quote:
Originally Posted by msev View Post
This would be also a compatible board right: http://www.seeedstudio.com/depot/see...?cPath=132_133
As long as AIN0, AIN1 and MOSI are breaked-out you should be fine. But the board is a little big to put in a plane. But it's great when testing.
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Sign up now
to remove ads between posts
Old Jul 22, 2011, 10:20 PM
That tree again!!!!
thanhTran's Avatar
Germantown, MD, US
Joined Sep 2004
6,642 Posts
I never understood how to embed text to video frame. I found what you explain is clear and easy to understand. Thanks very much for sharing your knowledge, ideas, and projects. Hopefully I can try your code this weekend and maybe learn something along the way

-Thanh
thanhTran is offline Find More Posts by thanhTran
Reply With Quote
Old Jul 23, 2011, 05:00 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
754 Posts
Quote:
Originally Posted by thanhTran View Post
I never understood how to embed text to video frame. I found what you explain is clear and easy to understand. Thanks very much for sharing your knowledge, ideas, and projects. Hopefully I can try your code this weekend and maybe learn something along the way

-Thanh
Good to hear

Please don't use code version 001 "in-flight". No safety measure was taken to prevent the SPI-port from idling high. It works fine - but 1 wrong bit at line-end will cause SPI to idle high and in worst case cause black-screen. In the new version the SPI will always be set to 0 (when not in a line). A lot safer.

Code will be updated later with the following changes;
  • LOS calculated
  • Heading home
  • Set homeposition
  • Prevent SPI from idling high
  • Large numbers/text/graphic example
  • A few minor changes
Dennis Frie is offline Find More Posts by Dennis Frie
Last edited by Dennis Frie; Jul 23, 2011 at 10:34 AM.
Reply With Quote
Old Jul 23, 2011, 05:03 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
754 Posts
The plane is more or less ready for a test-run, unfortunately the weather-forecast doesn't really allow it. Rain the next 5 days


Last changes;
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Jul 23, 2011, 05:10 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
754 Posts
The function of the hardware..

A while ago when testing the hardware for line-detection I took these pictures. Some of you might find them useful.

AC-coupling of video-signal (red is AC-coupled). In this case the different is pretty small.


Positive climped


Positive climped and biased


Positive climped and biased (blue) as before - and red as voltage reference.
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Jul 23, 2011, 05:32 AM
Electronics slayer
SouthPawPaul's Avatar
Reading, UK
Joined Jul 2008
494 Posts
I've only got rudimentary electronics skills so I've got really got a clue what I'm looking at, but it looks impressive.

Arduino Pro on the way to wire up this little beauty.

There are so many cool projects that can be done with the arduino. I've even seen an android based oscilloscope!
SouthPawPaul is offline Find More Posts by SouthPawPaul
Reply With Quote
Old Jul 23, 2011, 08:51 PM
Rather be flyin
tom83's Avatar
Tucson, Arizona
Joined Mar 2008
450 Posts
Subscribed!
tom83
tom83 is offline Find More Posts by tom83
Reply With Quote
Old Jul 24, 2011, 12:29 PM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
754 Posts
Still raining here in DK

Found a cheap USB video-grabber and tried to record a bit. Unfortunately the quality isn't very good, but it's better than nothing
OSD test (0 min 19 sec)


The last finish needs to be done with;
  • Large numbers 6-9 (Not too pretty)
  • The arrow is just a quick test (A lot more will be added for smoother movement).

Just a matter of fooling around with bit-patterns like this
0b0000000110000000
0b0000001111000000
0b0000011001100000
0b0000111000110000
0b0001110000011000
0b0011000000001100
0b0111111001111110
0b0011111001111100
0b0000011001100000
0b0000011001100000
0b0000011001100000
0b0000011001100000
0b0000011001100000
0b0000011001100000
0b0000011001100000
0b0000001111000000
Dennis Frie is offline Find More Posts by Dennis Frie
Last edited by Dennis Frie; Jul 24, 2011 at 01:33 PM.
Reply With Quote
Old Jul 24, 2011, 01:31 PM
SX_
.........lost..........
Zambia, Lusaka, Lusaka
Joined Jun 2005
325 Posts
THAT IS GREAT!

I cant wait to try!
GREAT WORK !! thanks again for sharing!

cheers

Willie
SX_ is offline Find More Posts by SX_
Reply With Quote
Old Jul 24, 2011, 06:18 PM
throw new IOPilotException();
IceWind's Avatar
Ireland, County Dublin, Dublin
Joined Feb 2005
2,613 Posts
Hi Dennis,

Great project you got there, congrats!

Do you think there is still processing power/time free to be able to add a attitude indicator?

Graphically it needs to draw a cross and a line in the screen. Or a dotted line.



AS inputs it needs 2 analogic, that represent the reading for two axis from accelerometers.
I have similar working with the eagletree OSD and getting data out from my tricopter board. But the eagletree osd is too messy for the tricopter, to many wires and I need a cleaner and simple solution.
IceWind is offline Find More Posts by IceWind
Reply With Quote
Old Jul 24, 2011, 06:31 PM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
754 Posts
Quote:
Originally Posted by IceWind View Post
Hi Dennis,

Great project you got there, congrats!

Do you think there is still processing power/time free to be able to add a attitude indicator?

Graphically it needs to draw a cross and a line in the screen. Or a dotted line.



AS inputs it needs 2 analogic, that represent the reading for two axis from accelerometers.
I have similar working with the eagletree OSD and getting data out from my tricopter board. But the eagletree osd is too messy for the tricopter, to many wires and I need a cleaner and simple solution.
That shouldn't be very difficult to implement, and as long as you don't plan to do any fancy calculations etc. processor power shouldn't be a problem.

You can make the analog-read and the calculations in a line or two.
You can play a bit with ADC clock if you want. I can't remember how long time the ADC needs to take a reading, but you might have to start the conversion in one line and read it later.
Dennis Frie is offline Find More Posts by Dennis Frie
Last edited by Dennis Frie; Jul 24, 2011 at 06:37 PM.
Reply With Quote
Old Jul 24, 2011, 07:15 PM
throw new IOPilotException();
IceWind's Avatar
Ireland, County Dublin, Dublin
Joined Feb 2005
2,613 Posts
On a 328p the specs say: 13 - 260 Ás Conversion Time.

Tomorrow I'll get a look into the code and see what I can do.
IceWind is offline Find More Posts by IceWind
Reply With Quote
Old Jul 24, 2011, 08:10 PM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
754 Posts
The code has just been updated post 1.

Please use this version instead of v0_01 (Or at least make sure the SPI don't idle high - that's the most important update).

Updates;
  • Prevent SPI from idling high
  • Line of sight calculation
  • Heading home
  • Arrow home added
  • Buffer added to speed and altitude to prevent "flashing" (if the screen updates while the speed is updated from GPS-string)
  • Large numbers finished
  • Minor change to layout (- but off course you can just arrange the text/info the way you like)

Anything else that should be implemented (I will not add ekstra sensors etc. now)?
More fancy graphic can be added as you like, just play with the bit-patterns
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Old Jul 25, 2011, 04:59 AM
FPV from Lithuania
vipix's Avatar
Lithuania
Joined Mar 2007
128 Posts
Can you make support for INA139 current sensor?
vipix is offline Find More Posts by vipix
Reply With Quote
Old Jul 25, 2011, 05:03 AM
Just another user
Dennis Frie's Avatar
Denmark, Capital Region of Denmark, Naerum
Joined Feb 2011
754 Posts
Quote:
Originally Posted by vipix View Post
Can you make support for INA139 current sensor?
If I remember correctly INA139 outputs voltage linear to the current without any offset. So that should almost be plug-n-play.

Remove the offset calibration and edit the calculation to match 25A/50A/100A sensor or whatever you are using. Then you should be good to go
Dennis Frie is offline Find More Posts by Dennis Frie
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Discussion Diy osd karl k FPV Talk 2 May 03, 2011 12:31 AM
Idea New DIY OSD? atari7202 FPV Talk 1 Mar 25, 2011 12:08 AM
Discussion see my own diy OSD video Passion Aerial Photography 7 May 27, 2010 01:28 AM
Discussion REAL homebrew DIY OSD - Check it out! jafoca FPV Talk 8 Jun 29, 2009 06:52 PM
Discussion picoOSD DIY PIC12F683 based OSD in C kbosak FPV Talk 6 Jan 31, 2008 07:47 AM