Jump to content


UAVTalk Transmitter

Hardware UAVTalk Transmitter

  • Please log in to reply
36 replies to this topic

#21 Kenn Sebesta

Kenn Sebesta

    Controls Master!

  • Members
  • PipPipPip
  • 896 posts
  • Country: flag of Luxembourg Luxembourg


Posted 18 December 2011 - 11:20 PM

View PostBrian, on 18 December 2011 - 10:38 PM, said:

You know, if you can settle for a USB interface to the GCS and PPM receiver interface, I think you can implement this on a move controller.  I thought about doing that, but I already had the other hardware, so I decided to use it.  It would be especially nice, though, if the battery charger could be enabled.

SNA. ZY. You can use the Move to control the UAV, too. :D

#22 Reddog

Reddog

    UI Manager

  • Members
  • PipPipPip
  • 1200 posts
  • Country: flag of Australia Australia


Posted 19 December 2011 - 05:18 AM

View PostKenn Sebesta, on 18 December 2011 - 11:20 PM, said:

SNA. ZY. You can use the Move to control the UAV, too. :D

How is the move able to do this but an Arduino cannot deal with UAVtalk because it does not have enough ram? Maybe its just raw control with no UAVtalk?

Thanks for answering all my questions, I have learn't heaps!

#23 Kenn Sebesta

Kenn Sebesta

    Controls Master!

  • Members
  • PipPipPip
  • 896 posts
  • Country: flag of Luxembourg Luxembourg


Posted 19 December 2011 - 01:31 PM

View PostReddog, on 19 December 2011 - 05:18 AM, said:

How is the move able to do this but an Arduino cannot deal with UAVtalk because it does not have enough ram? Maybe its just raw control with no UAVtalk?

The Move has almost identical hardware to the CopterControl, so as D-Lite and Brian have demonstrated in the MoveCopter thread, it can run OpenPilot and be used to fly a quadcopter. As such, it can run anything the CopterControl can, which includes UAVTalk.

#24 Brian

Brian

    Core Developer

  • Members
  • PipPipPip
  • 567 posts
  • LocationTucson, AZ
  • Country: flag of United States United States


Posted 19 December 2011 - 01:36 PM

View PostReddog, on 19 December 2011 - 05:18 AM, said:

How is the move able to do this but an Arduino cannot deal with UAVtalk because it does not have enough ram? Maybe its just raw control with no UAVtalk?

Thanks for answering all my questions, I have learn't heaps!

Yes, the problem is mostly RAM.  I ported UAVtalk to the Arduino, but in order to handle more than a few message types, it requires a Mega, which are relatively big and expensive.  The STM32 is also much faster, and I was able to use the same code base, which is nice.

Like Kenn said, the Move controller is very similar to the CopterControl board.  It's a nice piece of hardware for the price.

#25 D-Lite

D-Lite

    Core Team

  • Members
  • PipPipPip
  • 968 posts
  • Country: flag of Germany Germany


Posted 19 December 2011 - 02:57 PM

View PostBrian, on 18 December 2011 - 10:38 PM, said:

You know, if you can settle for a USB interface to the GCS and PPM receiver interface, I think you can implement this on a move controller.  I thought about doing that, but I already had the other hardware, so I decided to use it.

Yes, this shouldn't be too hard. But I'm looking for something smaller, that fits into the case of my old transmitter. The internals are modular so I could simply swap the R/F board  with an STM32/Bluetooth board. Well, just one of many options.

View PostBrian, on 18 December 2011 - 10:38 PM, said:

It would be especially nice, though, if the battery charger could be enabled.

I'm not shure if there's a dedicated charge controller or if software has to take care about charging. In the first case, it would be relatively simple to find out how the controller is activated. but I looked into this some time ago and found a MCU pin that show the same pulse pattern as the charge voltage so I suspect the MCU is controlling the charging. Didn't looked deeper into that because I didn't have a use for the onboard battery anyway.

#26 Brian

Brian

    Core Developer

  • Members
  • PipPipPip
  • 567 posts
  • LocationTucson, AZ
  • Country: flag of United States United States


Posted 19 December 2011 - 03:14 PM

View PostD-Lite, on 19 December 2011 - 02:57 PM, said:

Yes, this shouldn't be too hard. But I'm looking for something smaller, that fits into the case of my old transmitter. The internals are modular so I could simply swap the R/F board  with an STM32/Bluetooth board. Well, just one of many options.

I'm building up a board now that's similar to the one that I showed at the end of the first post, except I epoxied a small PC board on the side to hold a JTAG, and other 0.1" spaced hardware, similar to the original box.  I originally planned on using just the 2mm spaced board, but decided that I would surely have to debug it, since it's going to have many more interfaces (7 ADC, 1 PWM, and 5 digital I/O, and 2 USART if I remember correctly).  It's a tight fit, but it looks like it's going to work.

#27 Reddog

Reddog

    UI Manager

  • Members
  • PipPipPip
  • 1200 posts
  • Country: flag of Australia Australia


Posted 20 December 2011 - 03:55 AM

View PostBrian, on 19 December 2011 - 01:36 PM, said:

Yes, the problem is mostly RAM.  I ported UAVtalk to the Arduino, but in order to handle more than a few message types, it requires a Mega, which are relatively big and expensive.  The STM32 is also much faster, and I was able to use the same code base, which is nice.

Like Kenn said, the Move controller is very similar to the CopterControl board.  It's a nice piece of hardware for the price.

I picked up the Mega so I can learn C/C++ programming, so I would love to get involved at a later stage.

#28 braindead4554

braindead4554

    Advanced Member

  • Members
  • PipPipPip
  • 110 posts
  • LocationSouthwest MN
  • Country: flag of United States United States


Posted 21 December 2011 - 05:25 AM

Glad I could help and see your nice quad!  But I must admit, all of this is way above my head :blink:

Great job BTW

Edited by braindead4554, 21 December 2011 - 05:25 AM.


#29 Brian

Brian

    Core Developer

  • Members
  • PipPipPip
  • 567 posts
  • LocationTucson, AZ
  • Country: flag of United States United States


Posted 25 December 2011 - 03:12 AM

Update...  I finished the actual transmitter version.  This  version replaces the logic board of an old 6 channel Futaba transmitter.  The analog sticks and trims are wired to 8 ADC pins on the STM32.  A potentiometer is wired to another ADC pin, and the 5 switches are connected as GPIO.  This turns the 6 channel transmitter into a 10 channel transmitter!

The logic board includes 2 Xbee slots.  The first is for the primary Xbee telemetry connection to the quad.  The other is intended to connect the transmitter to a GCS.  Currently I'm using a low power Xbee for the GCS connection, but I might switch that to a WiFi (RV-XV) or Bluetooth Bee.

I'm also reading the RSSI off the primary Xbee as PWM, but I don't know how to send that back to the GCS yet.

This is a picture of the internals:

Attached File  IMG_20111224_160237.jpg   708.89K   26 downloads

, and this is the finished product:

Attached File  IMG_20111224_195222.jpg   643.36K   23 downloads

Merry Christmas everyone!

#30 K Wells

K Wells

    Member

  • Members
  • PipPipPip
  • 2229 posts
  • LocationTexas
  • Country: flag of United States United States


Posted 25 December 2011 - 03:19 AM

This is totally cool Brian, I have a brand new Turnigy PPM 9 ready for this mod... ;)
Looking Forward to the Maiden

#31 Brian

Brian

    Core Developer

  • Members
  • PipPipPip
  • 567 posts
  • LocationTucson, AZ
  • Country: flag of United States United States


Posted 25 December 2011 - 03:39 AM

Hmm...  It looks like the 9X is hackable.  I don't know much about it, but it seems like it might be possible to connect the AVR processor with similar hardware to this, or a PipX and not only have a UAVTalk transmitter, but a GCS on the LCD display as well.  Seems like something to look into!

#32 K Wells

K Wells

    Member

  • Members
  • PipPipPip
  • 2229 posts
  • LocationTexas
  • Country: flag of United States United States


Posted 25 December 2011 - 03:49 AM

View PostBrian, on 25 December 2011 - 03:39 AM, said:

Hmm...  It looks like the 9X is hackable.  I don't know much about it, but it seems like it might be possible to connect the AVR processor with similar hardware to this, or a PipX and not only have a UAVTalk transmitter, but a GCS on the LCD display as well.  Seems like something to look into!

I can donate and ship it to you, if you like to further your project
Looking Forward to the Maiden

#33 Brian

Brian

    Core Developer

  • Members
  • PipPipPip
  • 567 posts
  • LocationTucson, AZ
  • Country: flag of United States United States


Posted 25 December 2011 - 03:57 AM

View PostK Wells, on 25 December 2011 - 03:49 AM, said:

I can donate and ship it to you, if you like to further your project

Thanks for the offer, but they're cheap enough if I decide to try it.  That may be a good route to go to take it to the next level, but now I would like to do some more testing and debugging on the software side to convince myself that it's going to work well.

#34 Reddog

Reddog

    UI Manager

  • Members
  • PipPipPip
  • 1200 posts
  • Country: flag of Australia Australia


Posted 25 December 2011 - 11:45 PM

Brian, I have been watching your Git updates, getting more and more excited about your transmitter as the software goes up! Love your work mate!

#35 Brian

Brian

    Core Developer

  • Members
  • PipPipPip
  • 567 posts
  • LocationTucson, AZ
  • Country: flag of United States United States


Posted 29 December 2011 - 07:20 PM

I've been testing this fairly extensively lately, and it's working very well.  I'm just about complete with adding debug logging capability in UAVTalk so that I can get some statistics on latency and dropped packets due to congestion.

On a side note:  I let a co-worker/friend who only has experience with ArduCopter fly my mini quad with my modified transmitter today, and he commented that it seemed to fly much smoother than what he was used to.  He thought it might be that I have higher resolution in reading the controls in my radio than a standard radio, but I think it's just the CopterControl board and OpendPilot software!

#36 D-Lite

D-Lite

    Core Team

  • Members
  • PipPipPip
  • 968 posts
  • Country: flag of Germany Germany


Posted 29 December 2011 - 07:47 PM

View PostBrian, on 29 December 2011 - 07:20 PM, said:

On a side note:  I let a co-worker/friend who only has experience with ArduCopter fly my mini quad with my modified transmitter today, and he commented that it seemed to fly much smoother than what he was used to.  He thought it might be that I have higher resolution in reading the controls in my radio than a standard radio, but I think it's just the CopterControl board and OpendPilot software!

Btw. what update rate are you using to send the control commands?

#37 Brian

Brian

    Core Developer

  • Members
  • PipPipPip
  • 567 posts
  • LocationTucson, AZ
  • Country: flag of United States United States


Posted 29 December 2011 - 10:58 PM

View PostD-Lite, on 29 December 2011 - 07:47 PM, said:

Btw. what update rate are you using to send the control commands?

Currently I have it set to 50ms, which seem too short to me, but the receiver code reads every 20ms, an I didn't want to get too far from that for the initial tests.  The trade-off is balancing telemetry bandwidth with update rate.  I don't think it's hogging the telemetry channel too much, but I'll be know more when I get some more detailed message logging.





Also tagged with Hardware, UAVTalk, Transmitter