Finally completed the 3dr mod on my 9x. Seems to link up instantly - no more waiting for mission planner to download parameters or the awkwardness of forwarding the mav data back out over bluetooth!
More details, as requested:
The stock 9x has the Throttle Cut and Aileron switches connected to a UART on the Atmega. These need to be re-routed to free up the UART for telemetry purposes. There are several posts out there on how to do it - this was the cleanest (from https://code.google.com/p/open9x/downloads/detail?name=9x_modifications_EN.pdf):
Since I have a smartieparts 9x programmer, I didn't have to worry about the connections going to the header on the left - just the two connections that are circled in red.I reused the resistors that came off the pads (Thanks to Rod for his fine soldering skills). Note that the connections are made from the bottom most resistor pads up to the resistors then they cross over and attach to the two free pads on the right. Keep in mind that once this mode is made, firmware is required that knows about the new locations.
After that, I installed the smartieparts programmer according to their installation instructions:
http://www.smartieparts.com/shop/index.php?main_page=page&id=9
With that in place, the extra UART is now availible on the TelemeterEZ port (two pin header, top row, left):
The 3dr air module conveniently runs at 5v, so I grabbed 5v and ground off the back PCB (you can just barely see the connections in the 2nd photo from the top above). 5v is in the middle, ground on either side of it.
When installing, I connected power and ground to the 3dr module first (red and black wires on the cable that came with it). Fired up mission planner and when through the radio setup to load the correct settings into the module. Then I unplugged the usb radio for the PC (to make sure it didn't interfere) and powered up my quad - data stated flowing to the module in the 9x. This made it easy to identify which way to hook up the RX/TX lines to the TelemetryEZ port on the 9x Programmer board using my DSO Quad pocket scope.
Next time I open up the 9x, I'll grab photos of the actual connections. The OpenTx developers are currently working on adding Mavlink support - I was a little impatient and rolled my own, but I do intend on getting my code to them so they can merge all the best ideas.
I should also add that I'm not 100% sure the radio module won't draw too much power... it probably makes sense to at least add a cap between the power and ground connections to help the regulator out.
Comments
What are you looking for? A source patch or a compiled hex file? My hex has the following options built in:
- Ardupilot 10.2V voltage warning, 20% remaining warning (may be eeprom options someday, but not today)
- SP22 (inverted) PWM_BACKLIGHT support (backlight driven through the smartie 2.4 programmer board)
The 2nd menu (not shown) is even more specific. It shows stick positions in percent as seen by the arducopter code, and assumes that your 9x offsets/endpoints have been adjusted so that arducopter sees 1000-2000us, mid at 1500 (don't forget to re-calibrate your ESCs after changing). It also shows the copter's modified values for the sticks along with the average throttle % for 4 motors and % offset from average arranged in the order of my motors (1 = FR, 2 = BR, 3 = BL, 4 = FL).
I'll try and put up a source patch and my hex on dropbox later tonight. Perhaps a blog about how to set up windows to build OpenTx from source too?
Where can I download a copy of your "work in progress" I have the 3DR installed but I do not have a working OpenTX Firmware installed.
Could you post a link or upload it?
Thanks
Well done! I agree completely with the guys above. A little extra information would be welcome.
Regards
great job... cudos... i am also waiting anxiously for your instructable for how to do it.. detailed photos at least...
dincer
I would totally use this in my 9XR!
How'd you do it?