|
|
|
|
||
|
|
Quote:
I think it's pictured somewhere with a bunch of red tape around it
|
|
|
||
|
|
|
|
|
By request from user...
This is the schematic and the components I use at the moment. Works great for now. Next time I buy components, I will order a couple of zener-diodes and a 10K pot. But for now, this is what I use. I get a very good sync with HK camera and fatshark (not tested with other cameras). Components used: 1 x Atmega. For an "easy and small hardware solution" I can recommend Arduino Pro mini (16 mhz) http://www.sparkfun.com/products/9218 Arduino nano from dealextreme should be great as well, but I haven't received the board yet. http://www.dealextreme.com/p/arduino-nano-v3-0-81877 Other Arduino boards can be used as well, but those mentioned have a nice size ![]() Please note, you need AIN0, AIN1 and RX/TX. For some reason AIN0/AIN1 (can't remember which one) is not breaked out on the Arduino Mega (1280) board, and maybe other boards as well. Please check Resistors: 2 x 120 ohm 1 x 10K ohm 1 x 100K ohm Variable resistors: 1 x 50K pot Diodes: 3 x 4148 Capacitors: 1 x 0.1 uF As mentioned above, I would probably change a few components if I had the components laying around. But as I get a perfect sync I haven't really been bothered to order new components. GPS: http://flytron.com/osd-headtrackers/...ps-module.html On current-sensor a 0.1 uF capacitor is added on Vin. A little lowpass filter is added on the output to average the pulses from the switching. |
|
|
||
|
|
Quote:
You just need to be carefull with the pin spacing as the micro JST have differnet pin spacing. 1.5, 1.25, 1.0 , ... And the plug changes slightly from size to, judging by the ones I have for the FPV cams that looks like the smallest pin spacing 1.0. It looks simillar to this one: http://cgi.ebay.com/Mini-Micro-JST-1...item2a128ea873 |
|
|
||
|
|
|||
|
Sverige
Joined May 2009
74 Posts
|
Quote:
Quote:
Things I've tried so far: - Changed the baud rate to 4800 - Removed GPS configuration code for 5Hz update rate & 2 gps-strings One more thing. The GPS uses 2.7v TTL levels, I've read somewhere that you could just put a 1k resistor i series on the GPS rx input and it should work fine. Do you agree with this or do I need to do something more? Anyway, I'll keep trying to find the problem, but help is appreciated. ![]() /Andreas |
||
|
|||
|
|
|
|
Sverige
Joined May 2009
74 Posts
|
Ok, I think I found the problem. For 4800 baud, you need to:
- Change Serial.begin(9600); to Serial.begin(4800); - Change UBRR0L = 103; to UBRR0L = 207; At least the OSD doesn't crash anymore and the time is displayed, so I guess it's communicating with the GPS now? It haven't found any sats yet, but it sits on my desk inside and have just traveled half-way around the world, so I guess it will take some time.
|
|
|
|
|
||
|
Lithuania
Joined Jan 2007
94 Posts
|
Quote:
It works, I missed UBRR0L, but why there is Serial.begin(9600); AND UBRR0L = 103;. Boud rate is set two times?
|
|
|
||
|
|
||
|
|
Quote:
When I had to set the GPS update rate to 5 hz I just quickly tested with Serial.begin and Serial.print(). Guess I haven't done the rest of my work (forgot to replace it with none-arduino code) ![]() The serial.print and serial.begin command is only used in the startup, so it doesn't really matter what you use here. You can't use Serial.print in the main code or interrupt. Feel free to give it a try
|
|
|
||
|
|
||
|
|
Quote:
![]() But you will have to check the latitude and longitude info - it's not necessarily the same format as the MKT gps. Altitude and number of satellites is read from another NMEA-string. Please note, speed and altitude will show as soon as the GPS send usefull info. LOS will not show before home-position has been set. The home position will automatically be set when the GPS gets GPS-fix - but with a delay. The delay is defined as 25 or 50 updates (can't remember). This will make the OSD wait until it gets GPS fix, wait another 5-10 seconds (with 5 hz GPS update rate) to get a more accurate position and then automatically set the home position. When LOS changes from "....." to "00" - the homeposition have been set. I installed the OSD quickly yesterday on a flying wing, but noticed a decrease in RC-range on ground test. I don't have time to do further tests before I get home from holiday - but please remember to do a range test before flight. A shame, the OSD would have been usefull for the flight this evening ![]() ![]()
|
|
|
|
||
|
Sverige
Joined May 2009
74 Posts
|
Quote:
I don't know much about RF, but could it be interference from the 16MHz crystal? Second harmonics of 16MHz = 32Mhz = pretty close to your 35MHz RC-link. Beautiful pictures, btw! |
|
|
||
|
|
||
|
|
Quote:
![]() The range reduction only occurs when the SPI blasts out pixel. The Arduino itself (16 mhz crystal) is tested alone without any reduction in range. A separate power supply has also been tested. A totally "clean" code that only shows a line also makes the same problem. I have to make a breadboard version and pinpoint the exact reason, but don't have the time right now. |
|
|
||
|
|
||
|
|
Quote:
if (homeposcount > 50) { If you change 50 to 5 it will set homeposition 5 sec after GPS-fix (with 1 hz update rate). |
|
|
||
|
|
||
|
Sverige
Joined May 2009
74 Posts
|
Quote:
Another thing that crossed my mind.. Have you looked into the possibility of using your firmware on the SimpleOSD XL? Do you think it would be possible without major changes? |
|
|
||
|
|
||
|
|
Quote:
![]() But I haven't looked more at it. |
|
|
||
|
|
||
|
Sverige
Joined May 2009
74 Posts
|
Quote:
Here's what I've found out so far: (I might have made errors!) - Line sync => PD2/INT0 - Frame sync => PD3/INT1 - MOSI => Pixel generation - Current sensor bat 1 => PC4/ADC4 - Current sensor bat 2 => PC3/ADC3 - Voltage bat 1 => ADC7 (using 1/10 voltage divider?) (Not sure about this one) - Voltage bat 2 => PC2/ADC2 (using 1/10 voltage divider?) - RSSI => PC1/ADC1 - AN1 => PC0/ADC0 - Push button => PD6 - PD5 => Red LED - PB2 => Audio out - Video signal is also connected to PC5/ADC5, I wonder what this is used for? - 14.745MHz system clock (why that odd number?) Next question is if the bootloader it uses works with the Arduino IDE? And is really worth the effort? SimpleOSD firmware works just fine as it is..
|
|
|
||
|
|
||
|
|
Quote:
![]() I will probably continue to use Arduino mini/nano - as a DIY project it's fun to make some hardware as well. But with that said, I'm i bit tempted to test it. The code is easily changed to support SimpleOSD. Replace the analog comparator interrupt with the "new line" interrupt and just make a simple "new frame" interrupt that resets line-count. Shouldn't take long Edit; just mailed flytron to be sure it's okay to use custom firmware
|
|
|
|
||
|
Sverige
Joined May 2009
74 Posts
|
Quote:
The bootloader used is called Megaload, I've successfully uploaded a simple "pin toggle" program, but now the bootloader seems to be broken, can't upload code anymore.. This happened after I added a line to the code the clear the watchdog-timer (which is enabled).
|
|
|
||
|
|
||
|
|
Quote:
|
|
|
||
|
|
||
|
Sverige
Joined May 2009
74 Posts
|
Quote:
![]() Lessons learned: - Set megaload baud rate = 38400 - Remove all cables from simpleosd - Connect serial cable and battery while pressing the button. - Be sure not to touch anything else on the board (like the crystal) while pressing the button. |
|
|
||
|
|
|
|
|
Just talked to Melih from Flytron. The SimpleOSD seems to be a good priced finish hardware solution for this project. (You can order SimpleOSD replacement if you already have a USB -> serial converter etc)
http://flytron.com/osd-headtrackers/...osd-xl-v2.html When I get back from holiday and have received the SimpleOSD I will make a code-version compatible with SimpleOSD ![]() Andreas77 - Sorry, can't help you with the delays. 4.5x faster sound like a weird number
|
|
|
|
|
|
It's the same microcontroller, it shows the text the same way etc. so you should be able to do exactly the same with SimpleOSD and the hardware shown in this thread.
The only major difference is, that SimpleOSD uses a sync-seperator instead of the analog comparator. So, it's basically a good and pretty cheap hardware solution if you don't want to make it yourself. I think it's fun to make myself - but if I need an OSD or maybe two more, I don't mind to pay a little extra for a complete hardware solution with all SMD components
|
|
|
|
|
|
|
|
Ahhh I haven't noticed it had the sync-separator.
I have some at home (LM1881) but I do prefer the ultra-simple solution like the one you've been developing. Well depending on the planned usage. Of course it ends up having limitations but again, it's a super easy solution with a minimal parts counts The less I have done was (ATmega88 + resistor). ![]() Except for the few pins exposed the e-osd from HK is also a great hardware for this, I was actually planning to go for it and upgrade it's firmware. I may had some extra wires for GPS and for a current sensor. |
|
|
|
|
||
|
|
Quote:
No worries, I will continue with the Arduino OSD, but I will also make the few changes needed to make it compatible with SimpleOSD. Hopefully I can make the same code work on both Arduino and SimpleOSD, so you can just outcomment 2-3 lines to choose the Arduino version or SimpleOSD. The e-osd would have been perfect if it had RX breaked out - and preferable a bit more memory. I'm going to Zermatt in a couple of hours and will be away for 2 weeks. Hopefully I will be able to get a couple of flights and get some ground recordings when I get home. |
|
|
|
||
|
Sverige
Joined May 2009
74 Posts
|
Quote:
Have a nice holiday! |
|
|
||
|
|
|
|
|
Thanks Dennis and Andreas,
Great little project, had the arduino on hand and only one trip to Radio Shack for the diodes. $1.81 later and we have OSD. I used the original schematic, my changes were R1 is a pair of 470 ohm, (234ohm) and all I had on hand was a 15turn 100k pot. Took lots of tuning but got her crisp and on board. Pictures don't do it justice. Using a Aiptek 720P camera, I used 19 and 29 on topline, 222 and 240 on butline, to get them to fit in the black bar. I've got a couple GPS's and a current sensor on there way to tinker with next. Couple notes: be sure and connect grds to all equipment, don't forget power to Arduino. LOL Useable OSD will come later, just wanted to try it out. Cool Project Thanks |
|
|
|
|
|
|
|
I'm wondering where are we connecting the GPS and current sensor, battery voltage on the arduino??
Arduino site shows this : This library allows you to communicate with I2C / TWI devices. On most Arduino boards, SDA (data line) is on analog input pin 4, and SCL (clock line) is on analog input pin 5. On the Arduino Mega, SDA is digital pin 20 and SCL is 21. So am I safe to assume pin4 and pin5, and put both on the same pins?? Thanks as always for any help. |
|
|
||
|
Italia, Lombardia, Milano
Joined Jun 2010
94 Posts
|
Quote:
This prototype OSD under development do not use I2C bus to comunicate with sensors and GPS. GPS use serial pins RX/TX of arduino. Other stuffs like Battery voltage and Current sensor and (may be) others, use analog input pins. See as preliminary ref this diagram http://www.rcgroups.com/forums/showp...&postcount=102 Ciao, Carlo |
|
|
||
|
|
||
|
|
Quote:
|
|
|
||
|
|
||||
|
Sverige
Joined May 2009
74 Posts
|
Quote:
![]() Quote:
Quote:
Dennis is really the one doing all the development, he should have all the credit. I'm still just trying to learn how this thing works, maybe someday I can contribute to the development. ![]() /Andreas |
|||
|
||||
|
|
|
|
|
This circuit diagram is not the "official" one, it's just something I drew with features I would like to see in the future. For example, battery voltage and RSSI are currently not implemented in the code. For now, the only external sensors supported are GPS and current sensor. Like carlonb said, GPS connects to TX and RX pins, current sensor should be connected to A1.
/Andreas[/QUOTE] Thanks for the info, I actually just made up your voltage divider and hooked it all up to realize its not setup yet. LOL So I gather theres no pin yet to show battery voltage?? Thanks again |
|
|
|
|
|
|
The Netherlands, OV, Steenwijk
Joined Apr 2011
29 Posts
|
It works!!
Dear Dennis,
here a small update. Your OSD works on the bread board now. Thank you very much. Now I have to create a final one using a Arduino Mini Pro. Maybe I have to customize the code a little bit to meet my preferences. Thanks. |
|
|
|||
|
|
Alright a little progress has been made and a few steps back. For me to get any voltage/cureent sense reading, after startup, if I remove pin6 and reconnect I get a reading.
I just received this GPS http://www.foxtechfpv.com/10hz-gps-m...osd-p-248.html Which is this chip http://www.locosystech.com/product.php?zln=en&id=19 When connected I get this:
We be having fun now. All ideas and suggestions appreciated. BTW I'm using the original schematic in post1 Thanks as always |
||
|
|||
|
|
||
|
Joined Aug 2011
17 Posts
|
Quote:
Btw I didn't succeed with original schema either, it just wouldn't work for me. Can anyone post more images of final work and write pinouts? |
|
|
||
|
|
||||
|
Sverige
Joined May 2009
74 Posts
|
Quote:
Quote:
Quote:
F_CPU / 16 / BAUD_RATE - 1, where F_CPU = 16000000 (for 38400 baud rate => 16000000 / 16 / 38400 - 1 = 25.042 = 25 (round to closest integer)) /Andreas |
|||
|
||||
|
|
|||
|
Sverige
Joined May 2009
74 Posts
|
Quote:
The only reason I posted that schematic was because I was working on a PCB design and wanted Dennis to have a look at the it before I continued. As you can see, I clearly stated that it was just a draft and that it had not been tested and I've stated it again in later posts, but for some reason people keep referring to it. I think I'll just remove it if I can, to avoid further confusion..That being said, I've looked at the schematic again and I can't find anything wrong with it (maybe someone else can?). About the input voltage, this is a quote from the product description at arduino.cc Quote:
Did you have a GPS connected? In that case, maybe the onboard regulator couldn't handle the extre current draw of the GPS. In any case, Dennis advised not to use the onboard regulator, but to use an external one becuse of heat issues. (If you use an external regulator, it needs to be connected to the 5V pin (pin 27)) Please only use the schematics provided by Dennis here and here. /Andreas |
||
|
|||
|
|
|||||||
|
Sverige
Joined May 2009
74 Posts
|
Quote:
Quote:
Quote:
/Andreas |
||||||
|
|||||||
|
|
||
|
|
Quote:
I believe I still need to change some lat/lon numbers to show generally my location?? Home arrow is not working, and alt is off a bit No complaints here. Still having to unplug pin6 and reconnect to get voltage, but than again I'm running thru the voltage divider and not a current sensor. Next item to order...$7 current sensor (digikey) Thanks again |
|
|
|
||
|
Sverige
Joined May 2009
74 Posts
|
Quote:
For the moment, I don't think LOS calculation and home arrow will work where you are (in the US?), right now it only works accurately if your in or close to Denmark. I think Dennis said he will fix this eventually, after he has done some more testing of the current version.
|
|
|
||
|
|
|||
|
Joined Aug 2011
17 Posts
|
Quote:
Quote:
Anyway, I totally agree I am extremly lame with electronics. I can code stuff, but all those electronical components are hard to learn for me. I connected everything on breadbord as it was on schema, but no go. I still have 2 normal sized arduinos I can test with, I'd like to get at least some output. So I have this camera, 3 wires (+12/ground/video), battery and transmitter. I just hook into video and ground wire and add those to breadboard. Arduino is powered via computer USB port, but nothing except camera image is displayed on TV. Can Anyone get more pictures of connections and components? Thanks ![]() resistors, they don't have polarity right? diodes have black line along side that also has that line on schematics and what about capacitator? it doesn't have polarity (flow direction), does it? |
||
|
|||
|
|
|
|
|
This GPS looks good and the price looks good too. Anyone using it?
http://www.rcgroups.com/forums/showthread.php?t=1169626 |
|
|
|
|
||
|
Sverige
Joined May 2009
74 Posts
|
Quote:
I'm using this schematic. (Read about it here) |
|
|
||
|
|
|
|
|
Still no image overlay on my OSD.
Signals are okay for AIN0 and AIN1. Perhaps a difference between the Arduino Mini v4 I have and the Arduino Nano v3/Mini Pro? ![]() However, the GPS (EM-411) gets it's initial data to limit number of the sentences and got it's first cold start fix after 2 months within 18 seconds laying indoor on the kitchen table. ![]() Also ordered an Allegro ACS756 current sensor. They're pretty cheap, accurate, easy to interface and used in the Eagle Tree Systems eLogger as well. Got one for only €7,44 without shipping. |
|
|
|
|
||
|
|
Quote:
![]() The sync signal is a negative signal, so the zener isn't in forward direction for the sync signal, only for the video signal. Somewhere in this threat the use of a zener was mentioned.
|
|
|
||
|
|
||
|
|
Quote:
http://www.rcgroups.com/forums/showp...&postcount=204 |
|
|
||
|
|
||
|
Sverige
Joined May 2009
74 Posts
|
Take a look at this post by Dennis:
Quote:
|
|
|
||
|
|
|
|
Italia, Lombardia, Milano
Joined Jun 2010
94 Posts
|
It's running !
Hi all,
Just today I tried my Dennis-OSD prototype and is running good without GPS. I used this schematic. Now I have connected this GPS unit http://flytron.com/osd-headtrackers/...ps-module.html but after an hour not data from it, I see only dots. This GPS after switch it on has a blue led always ON, and a red led flashing for about a minute after that the red led go OFF, what it mean ? Confirm to me please that Tx of GPS must go to Rx of Arduino and Rx of GPS must go to Tx of Arduino Note I am using Arduino 2009 for testing. Ciao, Carlo |
|
|
||
|
Italia, Lombardia, Milano
Joined Jun 2010
94 Posts
|
Quote:
Red LED flashing: Attempting to FIX Red LED Off: FIX Ok Opening Serial Monitor of Arduino I see the two gps string GPRMC and GPGGA and I can see correct values (time, lat long, fix, n. of satellites used, altitude). But on arduino monitor I can see once a time I open it. Still not data on the screen of my Fatshark, only camera image. Help! Ciao, Carlo |
|
|
||
|
|
|
|
|
That is fabulous evvaldis.
Is anyone working on lat/lon code changes for us non Denmark people?? LOL Mine seems to be working pretty good. I actually got a LOS reading (15) and home arrow moved 180 degree with 191 underneath, but nothing consistent. Not quite ready for my quad yet. |
|
|
|
|
||
|
Lithuania
Joined Jan 2007
94 Posts
|
Quote:
Current sensor will be on separate pcb. http://www.flytron.com/pdf/light_current_sensor.pdf (based on ina139 chip). |
|
|
||
|
|
|
|
Joined Aug 2011
17 Posts
|
Hi, there's still no success with OSD, I tried this schema on that cheap HK FPV kit and also swapped that camera supplied with canon camera composite out but still no overlay.
G-OSD works ok on both cameras but none from this OSD. Are these components correct? ![]()
|
|
|
||||||
|
|
Back from holiday
![]() Quote:
Quote:
If it works on the ground, it should also work in the air with some airflow. Quote:
![]() Haven't decided how to implement full GPS support - it will take quite a few float calculations to do it perfect. Hopefully I can make an approksimation with just a single cos/sin that will be a lot faster and plenty for FPV use. Quote:
Quote:
![]() If you change a thing or two you should be able to use it without problems at your locations. And damn, just gotta bring a FPV plane to the alps next year. |
|||||
|
||||||
|
|
||
|
|
Quote:
Year, even at 1600 meters (Saas fee, Saas Grund and Zermatt) it was around 30 degrees now and then. I can only imagine the temperature at sea-level ![]() The temperature at 4000 meters was a lot better. But it did get a bit cold now and then :P |
|
|
|
|
|
Italia, Lombardia, Milano
Joined Jun 2010
94 Posts
|
Welcome back Dennis,
Awesome pics on top of the alps, here on the flat lands on the other side of alps (North of Italy) is very hot 35...38°C. Now is time to work hard , I already have my runnig prototype and have connected my GPS -> http://www.rcgroups.com/forums/showp...&postcount=204.On my Fatshark gogles I can see images and OSD fields, but about GPS I still see "....." and no data after GPS fix. Only on serial monitor of arduino (I use Arduino 2009) some time I can see 2 correct strings, but many time the strings are corrupted. What happen ? Thanks for your job, ciao, Carlo. |
|
|
|
|
||
|
|
Quote:
have you checked the update interval? And how can you see that the strings are corrupted? Please note, that you probably want be able to connect the GPS and computer/USB at the same time. The time in left corner should show as soon as you connect the gps. |
|
|
|
||
|
Italia, Lombardia, Milano
Joined Jun 2010
94 Posts
|
Quote:
I can see (some time) the 2 GPS string (Good or corrupted) with arduino serial monitor without having enabled the part of code you forseen for debug (if (1=0).... I know this situation means that I have connected Arduino USB and GPS rx/tx at the same time and may be not fine.Connecting only rx/tx of GPS to arduino I can't see any data, nor time in left corner, only dots as per other datas. The other strange think is that I connected TX of gps to TX of Arduino2009!!! Inverting this I can't receive any string on arduino serial monitor. I verified that the update interval (do you mean 5Hz refresh?) and the command string is the same of yours in the sketch. This evening I will try more, may be that TTL levels of RX/TX of GPS are not good for 5V supply/communication with arduino as data sheet show 3.3V TTL levels. Ciao, Carlo |
|
|
||
|
|
||
|
|
Quote:
- Battery voltage - Updated current sensor code - Support for SimpleOSD 16 mhz (thanks to flytron - more about this later) And this is on the to-do list; - Flight summary - Updated analyzing of GPS data to support worldwide Ideas are always welcome, but support for extra sensors etc. (accelerometer etc) will not be made atm. |
|
|
| 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 |