HobbyKing.com New Products Flash Sale
Reply
Thread Tools
Old Aug 10, 2012, 10:31 AM
Registered User
Aberdeen, Scotland, UK
Joined Dec 2007
607 Posts
Hi all,

New version of the USBHostShield2 library uploaded, see download link in Post #1.

I _think_ I may have fixed the startup problems with the USB driver/library. So far so good anyways.

Ian.
IanJ is offline Find More Posts by IanJ
Reply With Quote
Sign up now
to remove ads between posts
Old Aug 11, 2012, 03:22 AM
Registered User
Joined Sep 2010
2,424 Posts
Ian does the timer count all the time or only when throttle is applied? For a quad it doesn't matter but for a plane, especially gliders it could help in estimating when to land. Might be cool if it would be configurable via a #define or a lcd menu.

Also for me personally it would be interesting to use the viewing hat for pan and tilt of a cam on a plane..
msev is online now Find More Posts by msev
Reply With Quote
Old Aug 11, 2012, 11:28 AM
Registered User
Aberdeen, Scotland, UK
Joined Dec 2007
607 Posts
Quote:
Originally Posted by msev View Post
Ian does the timer count all the time or only when throttle is applied? For a quad it doesn't matter but for a plane, especially gliders it could help in estimating when to land. Might be cool if it would be configurable via a #define or a lcd menu.

Also for me personally it would be interesting to use the viewing hat for pan and tilt of a cam on a plane..
Hi,

New version uploaded, see download link in Post #1.
I have added an inhibit for the timer so that it'll pause counting when the throttle is below 1%. You can turn this inhibit on/off on the timer screen on the Lcd (see piccy on post #1).

The pan & tilt functions, although I haven't implemented it yet I've made space so that it can added fairly easily.

Ian.
IanJ is offline Find More Posts by IanJ
Last edited by IanJ; Aug 11, 2012 at 11:44 AM.
Reply With Quote
Old Aug 11, 2012, 12:57 PM
Registered User
Joined Sep 2010
2,424 Posts
Awesome..will these changes also be synced with non-usb version?
msev is online now Find More Posts by msev
Reply With Quote
Old Aug 12, 2012, 03:34 AM
Registered User
Aberdeen, Scotland, UK
Joined Dec 2007
607 Posts
Hi,

Pan & Tilt using the Top Hat has now been added to control the 2off Aux Pot outputs. Choose Top Hat control between TRIM or PAN&TILT using the LCD. Also note that by setting the trigger or thumb switch modes to 50% means you can centre your camera immediately.
Note: Using the LCD you can also re-arrange the PPM output channels so these two outputs can be assigned to any channel.

I have also optimized the LCD a bit, down from 18 different screens to 13 which means less scrolling back and forth.

I have added a setting in the source "int InvertPPM = 0;" which can be used to invert the PPM output which is necessary for some transmitters. "0" = non-invert, "1" = invert.

Unfortunately, I will not be coding these mods back onto the non-usb version.........it's just far too much work.

Ian.
IanJ is offline Find More Posts by IanJ
Last edited by IanJ; Aug 12, 2012 at 09:58 AM.
Reply With Quote
Old Aug 12, 2012, 10:13 AM
Registered User
Joined Jul 2012
22 Posts
Nice work again Ian!

I visited your first thread weeks ago and plan on creating it but will just connect the joystick through USB, and just when I was to recheck the thread to begin planning my build, you posted the USB version! Just simply awesome! Thanks!
shadowsnipes is offline Find More Posts by shadowsnipes
Reply With Quote
Old Aug 12, 2012, 10:20 AM
Registered User
Joined Sep 2010
2,424 Posts
Quote:
Originally Posted by IanJ View Post
Hi,

New version uploaded, see download link in Post #1.
I have added an inhibit for the timer so that it'll pause counting when the throttle is below 1%. You can turn this inhibit on/off on the timer screen on the Lcd (see piccy on post #1).

The pan & tilt functions, although I haven't implemented it yet I've made space so that it can added fairly easily.

Ian.
Very cool, thanks!
msev is online now Find More Posts by msev
Reply With Quote
Old Aug 13, 2012, 03:48 PM
Registered User
Aberdeen, Scotland, UK
Joined Dec 2007
607 Posts
Hi all,

New version uploaded, see download link in Post #1.

Lots of small bug fixes and code optimization.

Ian.
IanJ is offline Find More Posts by IanJ
Reply With Quote
Old Aug 13, 2012, 04:50 PM
Registered User
Joined Mar 2007
484 Posts
Hello Ian and thank you for the hard work on the code.

I have a question if you don't mind.

Which board are you using with the 2560 on it? Next is where did you get the Arduino board?

Thanks in advance.

Jim
JimnAz is offline Find More Posts by JimnAz
Reply With Quote
Old Aug 13, 2012, 05:12 PM
Registered User
Aberdeen, Scotland, UK
Joined Dec 2007
607 Posts
Quote:
Originally Posted by JimnAz View Post
Hello Ian and thank you for the hard work on the code.

I have a question if you don't mind.

Which board are you using with the 2560 on it? Next is where did you get the Arduino board?

Thanks in advance.

Jim
Just google "Arduino Mega 2560" and you'll get LOTS of results. There are plenty on Ebay also, and you don't necessarily need an official Arduino board, a clone/compatible will do just fine also......and a lot cheaper.

Ian.
IanJ is offline Find More Posts by IanJ
Reply With Quote
Old Aug 14, 2012, 03:18 PM
Arducopter Developer
R_Lefebvre's Avatar
Joined Oct 2010
2,401 Posts
Quote:
Unfortunately, I will not be coding these mods back onto the non-usb version.........it's just far too much work.
Hi Ian, I'm still working on the project I told you about in the other thread.

So is the non-USB version dead, as far as you're concerned? I am interested in a system that will work with a USB joystick eventually, but for now, I'm looking for something that's all hard-wired with small joysticks and a bunch of buttons and knobs put into a Pelican case.

So if you're done with the non-USB version, do you mind if I just take what you've got, host it elsewhere and proceed to modify it as I need? Full attribution for your excellent work of course. I'll have to do a lot of work, but it's a good base to get me started. It might be easier for both of us if I simply fork-off and go my own way.

As for the USB version, how did you figure out how to "talk" to the USB joystick? I know you're using a USB host shield, but I'm curious about the nuts and bolts of it. In the future, I'd like to try that, but with a different joystick.
R_Lefebvre is online now Find More Posts by R_Lefebvre
Reply With Quote
Old Aug 14, 2012, 03:29 PM
Registered User
Aberdeen, Scotland, UK
Joined Dec 2007
607 Posts
Quote:
Originally Posted by R_Lefebvre View Post
Hi Ian, I'm still working on the project I told you about in the other thread.

So is the non-USB version dead, as far as you're concerned? I am interested in a system that will work with a USB joystick eventually, but for now, I'm looking for something that's all hard-wired with small joysticks and a bunch of buttons and knobs put into a Pelican case.

So if you're done with the non-USB version, do you mind if I just take what you've got, host it elsewhere and proceed to modify it as I need? Full attribution for your excellent work of course. I'll have to do a lot of work, but it's a good base to get me started. It might be easier for both of us if I simply fork-off and go my own way.

As for the USB version, how did you figure out how to "talk" to the USB joystick? I know you're using a USB host shield, but I'm curious about the nuts and bolts of it. In the future, I'd like to try that, but with a different joystick.
I probably won't do much else with the non-usb version (can't rule it out though), so you are free to do what you want with the code......I'd just ask that my name remains somewhere in the source code as originator.

The USB Host Shield came with libraries and sample code, including demo .pde files for this particular joystick.......and I just happened to have 2off them.

Ian.
IanJ is offline Find More Posts by IanJ
Reply With Quote
Old Aug 14, 2012, 04:33 PM
Arducopter Developer
R_Lefebvre's Avatar
Joined Oct 2010
2,401 Posts
Ok, because the Joystick I wanted to use is this one if I went the USB route:

http://www.tigerdirect.ca/applicatio...4337&CatId=141

So I'd probably be SOL? Or is there a way to figure out the drivers?

Yeah, absolutely you'll remain as the originator. This actually make it much easier for me to do what I need because I won't need a ton of #defines. I'll let you know where I get it set up so you can keep tabs if you want.
R_Lefebvre is online now Find More Posts by R_Lefebvre
Reply With Quote
Old Aug 14, 2012, 04:58 PM
Registered User
Aberdeen, Scotland, UK
Joined Dec 2007
607 Posts
Quote:
Originally Posted by R_Lefebvre View Post
Ok, because the Joystick I wanted to use is this one if I went the USB route:

http://www.tigerdirect.ca/applicatio...4337&CatId=141

So I'd probably be SOL? Or is there a way to figure out the drivers?

Yeah, absolutely you'll remain as the originator. This actually make it much easier for me to do what I need because I won't need a ton of #defines. I'll let you know where I get it set up so you can keep tabs if you want.
The manufacturer of my usb host shield is over at www.circuitsathome.com and they have some good, length articles on how to interface HID devices and how to get the data out. Might also be worth asking their support if if the joystick you propose is easily interfaced.

Ian.
IanJ is offline Find More Posts by IanJ
Reply With Quote
Old Aug 15, 2012, 05:04 PM
Registered User
Aberdeen, Scotland, UK
Joined Dec 2007
607 Posts
Hi all,

New version uploaded, see download link in Post #1.

Lots of small bug fixes, plus I re-arranged the TRIM screens on the LCD.

Ian
IanJ is offline Find More Posts by IanJ
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Discussion RC Radio Tx - Re-inventing the wheel! IanJ DIY Electronics 345 Mar 18, 2013 03:44 PM
Sold Immersion RC 600mW 5.8 TX Version 1 $50 shipped. nybeechpilot FPV Equipment (FS/W) 2 Jun 02, 2012 07:36 PM
Discussion Re inventing the internal combustion engine UlteriorModem Life, The Universe, and Politics 10 Apr 11, 2012 06:24 AM
Discussion Re-inventing the wheel philgib Blimps 5 May 25, 2006 07:42 PM
Wanted WTB AeroFly Professional Deluxe USB Interface Version RC Flight Simulator for futaba heliguy Aircraft - General - Radio Equipment (FS/W) 0 Oct 20, 2005 03:21 PM