|
|
|
|
||
|
|
Quote:
So (I just ordered the current sensor) The current sensor wire will go to A1 and my voltage divider circuit will stay on A0 Correct?? Thanks again |
|
|
||
|
|
|
|
|
Little update...
Only had time for a quick test, but everything seems to work
|
|
|
||
|
|
Quote:
|
|
|
|
||
|
|
Quote:
Looking good ![]() Year, what's next? Guess it's time to get it airborne All my FPV-gear is at another place atm, so I will probably not be able to test it IRL right away. If you get a chance to try it out on your quad a little recording would be nice
|
|
|
||
|
|
||
|
|
Quote:
|
|
|
||
|
|
||
|
|
Quote:
It's not a pretty implementation - but as long as you don't check the code you will never notice it ![]() Auto-zero when home-position is set, and it also supports negative height from start point. If you turn altitude offset on it will not show negative heights (relative to above sea level), but this shouldn't be any problem as long as you stay above the water ![]() Max altitude is 9999 m vs 99999 if you don't use altitude offset ![]() It would probably be an idea to re-write the altitude_offset code one day (it's a mess :P) but as I don't expect anyone to ever find the limits I can't really be bothered
|
|
|
||
|
|
|
|
Sverige
Joined May 2009
74 Posts
|
Wow, I'm really excited to see the progress of this project, very nice! I've been kind of busy with other things lately, but I've got a SimpleOSD 16MHz heading my way in the mail. When I have it, I'm definitely gonna try it out in my tricopter and hopefully record a video.
![]() Has anyone flown with it yet? |
|
|
|
|
||
|
Sverige
Joined May 2009
74 Posts
|
Quote:
I use FrSky 2.4GHz system. |
|
|
||
|
|
|
|
Joined Aug 2011
17 Posts
|
Dennis, this is premium work, I follow this thread hourly and You come up with better code and more features day by day. Thank You for such an effort. Also thanks to other contributors and code hackers that volunteer code improvements.
I had a question, is there possibility to add some RSSI indicator / processing on screen? That could be usable. |
|
|
|
|
||
|
|
Quote:
![]() SimpleOSD XL version including 14.7mhz Xtal and MegaLoad boot loader for hex files. You can load the hex files from arduino(press the shift key when compiling) with megaload software(38.400 baud). Update procedure same with SimpleOSD XL. SimpleOSD OPEN will be different than XL, it is including 16Mhz xtal and Arduino boot. |
|
|
||
|
|
||
|
Sverige
Joined May 2009
74 Posts
|
Quote:
|
|
|
||
|
|
|||||||
|
|
Quote:
Sounds great with the SimpleOSD 16 mhz, that shouldn't take many minutes to load the code and get it up and running ![]() Quote:
It was without shielded cables etc. but even then it's not okay. Quote:
![]() Tested shortly with the cheap hobbyking OSD - no sign of reduction in range (it also uses same hardware - almost). With 2.4 ghz I would be surprised if you get any reduction in range. Quote:
![]() Year, it's a progress in work - so I have to make some progress right ![]() But right now it seems more or less finish - can't really find anything important missing. RSSI just needs to be connected to another analog input pin, read and printed like the voltage, perhaps scaled to percent. It's not supported in the software, but you should be able to add it without problems. Quote:
![]() Regarding the parts-list, I'm just gonna quote myself: Quote:
|
||||||
|
|||||||
|
|
||
|
|
Quote:
![]() Received my DealExtreme Arduino Nano's today. I will test them this evening.
|
|
|
||
|
|
||
|
|
Quote:
![]() The home position will not reset before the OSD is turned off, so that is not gonna be a problem. If it turns out to be a problem with the summary-screen showing up I can just add some parameters you can set. This is pretty easy implemented if it turns out to be a problem: - Current consumption is less than - height less than - Speed less than - time greater than - LOS less than |
|
|
||
|
|
|
|
Zambia, Lusaka, Lusaka
Joined Jun 2005
325 Posts
|
Hey Dennis
I think Sleurhutje means a push button that you can push to set home when u want (not rc controll) like most osds you can just push a button (on the aeroplane) and set home... Would that be possible? Chers and thanx again for your AWSOME work Willie |
|
|
|
|
||
|
|
Quote:
Adding a button to reset home-position etc. is no problem. Just add the push-button and write the pin-number used, I can update the code - takes around 2 minutes ![]() Yes, home-position is automatically set. It waits for GPS-fix and sets home-position (you can add a little delay between GPS-fix and set-home-position in setup) |
|
|
|
||
|
|
I just updated post #1 for people who haven't followed the thread (it's a long thread to read through), anything else that should be written?
Quote:
|
|
|
||
|
|
|
|
Italia, Lombardia, Milano
Joined Jun 2010
94 Posts
|
Hi Dennis,
Very good OSD, thanks a lot ![]() Sorry if may annoing you, but we can save a top line text "SPEED LOS ALT" if you can add at side of each data field a big symbol like "K/H", "|->" (Side arrow as LOS), and a "Top Arrow" as ALT, as I saw somewere. What do you think? ![]() Ciao, and thanks al ot again. Carlo |
|
|
|||
|
|
Quote:
![]() Quote:
But it's gonna be a tight fit in top ![]() - or alternatively just remove the topline with text. It's not exactely hard to remember 3 things - but as it can be done by just changing the linenumber I suppose people do it themself if they want. |
||
|
|||
|
|
|
|
|
Ordered this temp/current sensor. See if it's usable right away or if the current sensor needs a modification.
|
|
|
|
|
||
|
|
Quote:
![]() But if you don't need the temperature sensor it's cheaper to buy from for example flytron (the weight and size is also preferable): http://flytron.com/sensors/64-ultral...nt-sensor.html |
|
|
||
|
|
||
|
|
Quote:
And the Quanum is a true Hall sensor, the Flytron is a resistor which is less accurate.
|
|
|
||
|
|
|||
|
|
Ask and ye shall receive, in all its unedited glory. Enjoy
recorded thru SanDisk V-mate Strictly LOS ad close range testing, Flytron Current sensor arrived today, so now I have to squeeze that on the quad. LOL |
||
|
|||
|
|
||
|
|
Quote:
Perhaps the decimals on the speed (and altitude) is a bit overkill. It distracts when flying around. That will cause your eyes to get tired more quickly...
|
|
|
||
|
|
|
|
Joined Aug 2011
17 Posts
|
yeah, i've always sucked at soldering. thought this is simple enough schema so i could actually do it, so finally moved it from breadboard to permanent one but it wouldn't work. There has to be some shorted wire or something because lights on android wouldn't light up when usb attached.
i give up on this - fried arduino, spent on components, but in the end my lameness require commercial solution :/ anyhow, great work guys, thank you! |
|
|
|
|
||
|
|
Quote:
Later in the vid I reboot the arduino, when it was running - numbers it seemed the best LOL I'm sure its just a tweak needed somewhere. |
|
|
||
|
|
||
|
|
Quote:
![]() Except for the altitude-fix it seems to work pretty good. I will try to find the problem with the altitude later, and also add some parameters to make sure flight-summary only show when you need it to
|
|
|
||
|
|
||
|
|
Quote:
I've got the current sensor all hooked up and working. Hopefully more testing today or tomorrow. Thanks |
|
|
||
|
|
||||
|
|
Quote:
Another quick test vid with Flytron current sensor 50A, will report back on ma used after done charging
Just finished charging the lipo. DIY OSD said 793 ma used, put back in (drum roll please) 808ma. Too Cool !!!!!!!!! |
|||
|
|
||
|
|
Quote:
|
|
|
||
|
|
||
|
|
Quote:
![]() Your tests and feedback are much appreciated ![]() I don't have the time to update the code today, but I will look at it tomorrow. |
|
|
||
|
|
|
|
|
A little update...
This should be fixed in version 0.11:
These parameters can be changed to make flight summary show when you want it to (anything else that should be added?). - Speed less than - LOS less than - current less than - flight time more than - altitude less than |
|
|
||
|
|
Quote:
Excellent, I had no problem with vlt and cur, but if it stays to me the mah looks outa place. LOL I loaded the new code 11. Went to fire the old quad up and lo and behold (a mishap in my hobbyroom) another Gaui esc fried out. Great escs but very fragile imo. So I'm down until I at least get another or replacement. In the meantime I'll test the osd on my scratchbuilt stryker lookalike hopefully tomorrow. |
|
|
||
|
|
||
|
|
Quote:
Thanks again for the codes. So far this has been a blast. |
|
|
||
|
|
||
|
|
Quote:
|
|
|
||
|
|
|
|
|
I received a PM regarding the latest schematic, and realized it's not very clear. This is the values I use at the moment. Please note that the schematic posted a while ago has R3 and R4 mixed up - my mistake, sorry guys.
It's the same schematic as shown on page 1 since the beginning of this thread - only the dimming resistor have been added and SPI-resistor have been made smaller to "match" the dimming. |
|
|
|
|
|
Guess this will be one of the last updates - unless anyone find bugs or have ideas for improvements
![]()
|
|
|
||
|
|
Quote:
|
|
|
||
|
|
|
|
|
It would be great if everything could be implemented on one microcontroller - but the controller is already pretty busy
![]() Main problem is, that interrupt can't be used as they will disturb/interrupt the OSD (very easy to see). It might be possible to use the hardware-controlled PWM output's to control a couple of servos without using interrupts, but you still have to read the servo-inputs as well. While it might be possible I have to admit - I like the KISS concept ![]() I prefer to have all my servos etc. connected directly to my receiver, but it would be fun to "play with". Year I know I talked about it a while ago ![]() I have found 3 axis gyro and accelerometer that costs around 15 $ total. This would make a dead cheap IMU. Guess this could be a fun winter-project, but I don't have any plans to make it official. I believe projects like ArduPilot is a better choice, if you don't want to code yourself
|
|
|
|
|
||
|
|
Quote:
You can use a 2-axis accelerometer and the summary-lines to show the artificial horizon. Something like this will keep the start-up screen and summary: (if homepos == 1 && landed == 0) { Put artificial horizon code here } Then you just have to draw a fancy artificial horizon
|
|
|
||
|
|
|||
|
|
Another test done. My quad was a little erratic due to unmatched esc's, but flyable.
Code 12 was used, unfortunately I forgot to define alt offset and flight summary. But Gps and current sensor were working well.
|
||
|
|||
|
|
||
|
|
Quote:
![]() Good to see your quad is still flying. I'm not quite sure if I like the flashing GPS-coordinates, but it can just be turned off in "setup". Anything you miss or think should be improved? Edit; Sorry about the default settings, they just ended with the last thing I was testing :P |
|
|
||
|
|
|
|
|
No worry on the settings, I need to proof the code better. LOL
I'm not too sure I'd call that flying, it was a handful at times. For my application it is perfect. I'm hoping to try it on a wing next. Maybe this week. Thanks again for all your work on this project. Its a winner |
|
|
|
|
||
|
|
Quote:
![]() I just ordered a couple of new props for my quad - that makes testing in the backyard easier than a big plane. |
|
|
||
|
|
||
|
|
Quote:
![]() When you find the desired values for R1 and R2 you can just measure the resistance and replace it with a permanent resistor if you want. I noticed the text is not centered very well on you and mrfliboys screens. Kinda weird as it is just opposite on my screen (the text is a bit to the left). I will take a look at it tomorrow, I might be able to move the text a bit on the NTSC version. |
|
|
||
|
|
|
|
Australia
Joined Mar 2010
151 Posts
|
Just wondering if you'd considered a simple circuit to add a black shadow to the right of the letters so that you don't need the dimming? This should be simple enough just using a couple of diodes, a capacitor and a couple of resistors:
Example circuit In the circuit, the clock is the serial data out that you are using for the OSD, the length of the black shadow is controlled by the two resistors either side of the capacitor and the capacitor. The right most resistor isn't needed since the output would be where that connects to the diode. The 3V is probably not correct, but that should be the black reference voltage. |
|
|
|
|
||
|
|
Quote:
But in this project I intend to keep the hardware as simple as possible to let as many as possible join. If you give it a shot with an additional circuit, please post your results. You can also try to add the shadow by turning the dimming on and off on the right time, but this is gonna be quite a challenge. |
|
|
||
|
|
|
|
Australia
Joined Mar 2010
151 Posts
|
I was thinking something like this:
http://www.falstad.com/circuit/#%24+...625E-5+2+-1%0A I know the values are all wrong, but its showing the general concept. |
|
|
|
|
||
|
|
Quote:
![]() With the hardware at the moment it should be possible to add shadows - but I don't have any good idea how to do it smart. Time is so critical you can't use "if" "when" "while" etc. to show pixels. Anyway, just a quick test to show you how it can be done with a bit of code. This is made with a shadow as thin as possible. (the one to the right is with a bit thicker shadow) (Simple example, but same thing can be done with more "advanced" figures, letters etc. - but it's not easy.) |
|
|
||
|
|
|
|
|
And a little update ...
Most of you probably want notice any difference between 12 and 13 - but if you need to add ekstra text-lines to display or move text left it's improved a bit
|
|
|
|
|
||
|
Australia
Joined Mar 2010
151 Posts
|
Quote:
I hope to get my arduino for this project before the weekend. I'll let you know if I find a good solution... time to look in my box for a latch and inverter chip... that should do the trick. ;-) |
|
|
||
|
|
||
|
|
Quote:
Shifting out serial? If you refer to the Serial.print command - that's way too slow to be used with this ![]() The pixels are shifted out with SPI. Regarding the artificial horizon, I think you have enough time to get a descent result
|
|
|
||
|
|
|
|
|
Summary Lines, what exactly is needed to turn on the flight summary
Say for a Quad or a Plane // Depending on model it can be necessary to edit the parameters that defines when flight-summary will show. To disable it, just put for example 0 in speed. The speed will never be less than 0. // On heli/quad, current should be set. #define summary_speed 5 // Speed less than (in km/h) #define summary_los 100 // LOS less than (in meters) #define summary_current 0 // Current less than (in amps) #define summary_time 10 // Flight time more than (in seconds) #define summary_altitude 100 // altitude less than (in meters) Just loaded Code 13 and am stumped on this. Thanks as always I have the second one built with a different GPS, this one is for the Stryker lookalike |
|
|
|
|
||
|
|
Quote:
Still I ended up changing the MWC software to output the ACC 2 axis code and to create a cable. If you release a test example I could easily try it out.
|
|
|
||
|
|
||
|
|
Quote:
![]() Just for fun, and to show it can be done easy - at least in one direction. |
|
|
|
||
|
|
Quote:
![]() The quad: #define summary_speed 99 //We don't care about speed #define summary_los 9999 // LOS less than (in meters) #define summary_current 3 // Less than 3 amps - you should be on the ground #define summary_time 0 // This one can be added if you don't want it to show before minimum x seconds have pasted. #define summary_altitude 9999 // altitude less than (in meters) This should do it for the quad. For a plane I would do something like this (only use LOS and speed: A plane: #define summary_speed 5 // Speed less than (in km/h) #define summary_los 100 // LOS less than (in meters) #define summary_current 99 // Current less than (in amps) #define summary_time 0 // Flight time more than (in seconds) #define summary_altitude 9999 // altitude less than (in meters) |
|
|
|
|
|
|
And a quick video.
Not pretty at all - just to show a quick and dirty implementation :P www.student.dtu.dk/~s092916/acc_test_xvid.avi (please note this is done with the first components i found on my desk - so no resistor on dimming, random resistor on SPI - no circuit to ensure sync (just a variable power supply etc.) If any of you try to code a proper artificial horizon, please be aware that you probably want a higher sampling rate than used with the voltage and current reading ![]() That will make it more smooth. |
|
|
||
|
|
Quote:
But if you just scale the accelerometer right and remove the offset to match the line number - you can more or less just write something like: if (line == acc_data) { Draw a line } It was really as simple implemented as that. It's gonna take a bit more code to add the second direction. |
|
|
||
|
|
||
|
|
Quote:
|
|
|
||
|
|
||
|
|
Quote:
Feedback, I have most of the components installed and wired but have not tested it yet. Will update you when bench testing is done. |
|
|
||
|
|
||
|
|
Quote:
#define summary_altitude 500 // altitude less than (in meters) EDIT; I have just tested the config-parameters I gave you. Please use this instead - need to check why 9999 as altitude doesn't work, The quad: #define summary_speed 99 //We don't care about speed #define summary_los 9999 // LOS less than (in meters) #define summary_current 3 // Less than 3 amps - you should be on the ground #define summary_time 0 // This one can be added if you don't want it to show before minimum x seconds have pasted. #define summary_altitude 500 // altitude less than (in meters) This should do it for the quad. For a plane I would do something like this (only use LOS and speed: A plane: #define summary_speed 5 // Speed less than (in km/h) #define summary_los 100 // LOS less than (in meters) #define summary_current 99 // Current less than (in amps) #define summary_time 0 // Flight time more than (in seconds) #define summary_altitude 500 // altitude less than (in meters) |
|
|
|
||
|
Australia
Joined Mar 2010
151 Posts
|
Quote:
My hope is to be able to to have an artificial horizon with pitch and roll, so will probably use the same serial output that you are using for the character display with a single line 'character' on the screen... may need to have 3 byte wide characters (one for start, middle, and end of line segment) to get the correct position on screen. To display: 00000000 00000001 11111111 11111000 01111111 11111110 00000000 00000000 The first line you need the following: 0b00000001 0b11111111 0b11111000 If you have a better solution, let me know. |
|
|
||
|
|
||
|
|
Quote:
If you don't draw the line all the way from left to right - you should be able to use the waiting time to do the calculations. Just an idea - it can probably be done a lot smarter
|
|
|
|
||
|
|
Quote:
![]() From what I have heart it sounds like most people have been lucky the first time - hopefully your build will work as well ![]() Keep us updated |
|
|
||
|
|
|||||
|
|
You can only push your luck so far. LOL Code13 used. Unmatched esc's on my quad did my Aiptek camera in. I knew it was unstable but had to test the new osd settings anyway. First video is of a test with a 9600 baud rate Sirfset chip GPS, not good results. Sluggish and no response of GPS. Any suggestions with this GPS?? I have a few of these
Second video is with my normal GPS 38400baud, all I wanted to do was test flight summary. LOL Warning graphic ending (not really)
New escs later this week on there way. |
||||
|
|||||
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Discussion Diy osd | karl k | Video Piloting (FPV/RPV) | 2 | May 03, 2011 12:31 AM |
| Idea New DIY OSD? | atari7202 | Video Piloting (FPV/RPV) | 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 | Video Piloting (FPV/RPV) | 8 | Jun 29, 2009 06:52 PM |
| Discussion picoOSD DIY PIC12F683 based OSD in C | kbosak | Video Piloting (FPV/RPV) | 6 | Jan 31, 2008 07:47 AM |