Hi folks,

I'm interested in trying to connect a Rembizi OSD to my APM. I've searched both forums and the code, but I can't find any hint that this has been implemented yet. I haven't read through the hundreds of posts in the rcgroups thread, though. I'd love to be proven wrong. :) Assuming I'm the first, I looked at this post by Blake Krone about integrating Rembizi into the ArduPilot code:

http://diydrones.com/profiles/blogs/integrating-remzibi-osd-amp

Let's pretend for a moment that I'm crazy enough to try something similar for the current APM code. I know I'd need to use the FastSerial code. Just like Blake, I'm using a UBlox GPS, so I assume I should examine the date code in the UBLOX class in case similar changes are needed.  There are two parts where I'm utterly clueless, though: which pins I should use for connecting my APM to the Rembizi board, and (if not obvious from the first part) which serial port I should use in the code.  In case it's relevant, I have an Xbee connected and I plan to add on the airspeed sensor and the magnetometer (once it's available). I think I'll have my own little Medusa when I'm done. :)

Any help or suggestions would be appreciated. I'll be happy to share my resulting code.

Mark

Views: 367

Reply to This

Replies to This Discussion

We're working on an updated Remzibi OSD implementation, so would be interested in what you come up with. Off the top of my head, I can't see why you wouldn't just use Port 2 for that and create a custom GCS library for OSD output.
Alright. So on the oilpan, I'm guessing those little pins labeled RX2/TX2 are what I want. I could use +5/GND from the pins next to the reset button (messy, but workable).

Of course, the idea of an updated Rembizi is taunting me. I haven't bought one yet because I wanted to make sure it's possible. Please tell me the new one won't hit production till next year. It'll make my decision nice and simple. :)

Thanks, Chris.

Mark
Whoa! Hold it!

The pins for port 2 are used for the I2C connection to the ADC on the shield. You cannot use them for serial communication.

If you want to use an xbee then you are "out" of serial ports, unless you want to work out how to share one.
Whoops--Doug's right. I forgot that I2C took that. There's probably a way to share the USB one, which isn't used in flight, but I'd have to dig into the board file to figure out how.
It's SPI, actually. The oilpan's use of port resources from APM is pretty obscene.
Yes, my mistake. The last serial port is taken by the dataflash. So the four ports go to: USB, GPS, Xbee and datalogging. But you could share the GPS port for an OSD: in flight, only the Rx line is used by the GPS, so the Tx line could be used to send data to an OSD.
Several GPS devices require commands be sent to the GPS in order to achieve correct initialisation.

You'd want to be sure that the Remzibi unit wasn't confused by these commands, and that the OSD baudrate matched.
Great thing about Remzibi is that it doesn't care what baud rate, it auto-detects on each power up.

I'll try the GPS port and see if I get less interference. I'm thinking of adding a "delay" to start the output to Remzibi of a second or two so that the it doesn't get confused with the GPS setup commands changing the GPS baud.
Please forgive me if this is naive, but is there a way that the xbee could potentially share the USB port, at least in flight mode? It doesn't seem like there's much output to USB during flight, so maybe the telemetry could be written out there, leaving port 3 available for OSD.

Mark
The oilpan's use of port resources from APM is pretty obscene.

No. The console port is hardwired exclusively to the FTDI chip.
Hmmm, that makes sense. I wonder if I could use the sparkfun usb explorer instead of the adafruit board in the air. I thought I read about someone trying that.

Mark
So I have almost all of the Remzibi stuff updated for the APM. I've got it so that I can turn on/off the overlay, set home, etc. I built it under the assumption that it would work similar to a GPS library, using generic function calls etc.

I just now was working on the whole Serial2 which you can't use obviously. I'm working out the sharing telemetry port stuff now.

For reference I'm using Ardu1.7 from Remzibi.

Chris, can you shoot me a message on how you guys were thinking of integrating it? No sense on doubling-up the work effort if how I'm going about it is acceptable.

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service