HobbyKing.com New Products Flash Sale
Reply
Thread Tools
This thread is privately moderated by Malc C, who may elect to delete unwanted replies.
Old Apr 21, 2006, 02:15 PM
Registered User
UK
Joined Oct 2003
3,822 Posts
Download
RC-USB Joystick Files

Guys,

If you've been following the recent threads, you will know that Mark J and myself have been trying to develop Alessio's original code for a 4+8 joystick to give 8 fully analogue channels on an 18F2550 PIC. If you want to follow the development process here are the thread below:

http://www.rcgroups.com/forums/showthread.php?t=495749
http://www.rcgroups.com/forums/showthread.php?t=504881
http://www.rcgroups.com/forums/showthread.php?t=498462

Well as promised here are the project files. They include compiled HEX files for both JR and Futaba channel assignments, ASM file, project file and other include files. We've also included the schematic and board files for the popular Eagle PCB design application.

Please note that these files are for personal use and may not be used for commercial purposes without the consent of the members listed in the credits at the top of the ASM file. The files are also provided on an "as is" basis and we take no responsibility for any damage to your PC, TX or any other item. Anyone using these files does so at their own risk.

Thanks to the moderators for making this post a sticky so that it remains available to all those future members of this forum wishing to build their own interface.

Regards

Malcolm & Mark

Please note that since this project was developed several people who have built it have reported that it will work with one TX and not another (often the same brand). This appears to be resolved by using a BC107 transistor in place of the BC550 shown in the schematic. Full details can be found in post 142 and my thanks to Jeff for his help with this issue
Malc C is offline Find More Posts by Malc C
Last edited by Malc C; Mar 03, 2008 at 11:44 AM.
Reply With Quote
Sign up now
to remove ads between posts
Old Apr 24, 2006, 03:15 PM
Registered User
VinceHaworth's Avatar
United Kingdom, England, Lancs
Joined Apr 2005
563 Posts
great work guys!

Any chance of a gif/tif/jpg schematic?
VinceHaworth is offline Find More Posts by VinceHaworth
Reply With Quote
Old Apr 24, 2006, 04:03 PM
Registered User
UK
Joined Oct 2003
3,822 Posts
Quote:
Originally Posted by VinceHaworth
great work guys!

Any chance of a gif/tif/jpg schematic?
Thanks.. and as requested.. images attached
Malc C is offline Find More Posts by Malc C
Last edited by Malc C; Apr 24, 2006 at 04:10 PM.
Reply With Quote
Old Apr 26, 2006, 07:07 AM
Registered User
TAIWAN
Joined Jul 2003
56 Posts
Great job !
Deeply appreciate your kindness
ilufa is offline Find More Posts by ilufa
Reply With Quote
Old May 01, 2006, 08:25 AM
Registered User
Joined Dec 2005
4 Posts
Jumper Futaba / Jr

Hello,
I haven`t find code in .asm file for change Futaba / JR.

Is the jumper JP4 enable in the .asm file ?

Thanks

NVH
avatar.rc is offline Find More Posts by avatar.rc
Reply With Quote
Old May 01, 2006, 09:12 AM
Registered User
UK
Joined Oct 2003
3,822 Posts
The ZIP file contains hex files for both JR and Futaba channel assignments. However if you want to make it jumper selectable then do the following:

Go to the end section:

Code:
ReadChannelAssignment
;	btfsc		PORTB, 7, ACCESS		; RB7 low
;	goto		ReadChAssignFutaba		; no, Futaba radio
Remove the ; from the start of the two lines.

Now do the same in the section below:

Code:
;	movlw		low JRAssignment
;	movwf		TBLPTRL, ACCESS
;	movlw		high JRAssignment
;	movwf		TBLPTRH, ACCESS
;	movlw		upper JRAssignment
;	movwf		TBLPTRU, ACCESS			;TBLPTR points to first byte of table
;	goto		ReadAssignTable
Now the interface can be selectable by jumpering RB7 (you may need to disconnect and re-connect the uSB cable to make the changes affective) Obvioulsy you will need to re-compile the ASM file and then load the resulting HEX file for the changes to work
Malc C is offline Find More Posts by Malc C
Reply With Quote
Old May 01, 2006, 11:22 AM
Registered User
Cleethorpes, NE Lincs
Joined Sep 2005
126 Posts
Hi Malc,

Thanks for replying to that, would have done it myself, but only just got home and noticed the thread etc.

Maybe catch you online a bit later if your about (just about to shove some food into my face lol!)

Mark.
Mark J is offline Find More Posts by Mark J
Reply With Quote
Old May 01, 2006, 11:31 PM
Registered User
Joined Dec 2005
4 Posts
Hello,
I'm thinking that JP4 is not correct in schematic ( Pin RC0),

in .asm file ( JP4 -> Pin RB7).

Thanks

NVH
avatar.rc is offline Find More Posts by avatar.rc
Reply With Quote
Old May 02, 2006, 03:44 AM
Registered User
UK
Joined Oct 2003
3,822 Posts
You are correct, my mistake, I used the same schematic for an existing interface, and we were going to modify the code to point it to RC0 rather than RB7, However we chose to rem out the lines and make two versions of the HEX file rather than fuffing about with jumpers. If you want this feature then just change the line to PORTC, 0, ACCESS and that should work
Malc C is offline Find More Posts by Malc C
Reply With Quote
Old May 11, 2006, 03:22 PM
Registered User
bitmaniac's Avatar
Greece
Joined Apr 2004
49 Posts
unkonown device

Hi!
I have just finished your excellent piece of hardware
As soon as I connect it to USB led is on and an unknown device is detected in windows xp device list

Any suggestions
Thank you in advance and Congratulation for giving this to the public
bitmaniac is offline Find More Posts by bitmaniac
Last edited by bitmaniac; May 11, 2006 at 03:31 PM.
Reply With Quote
Old May 11, 2006, 05:46 PM
Registered User
UK
Joined Oct 2003
3,822 Posts
Hi,

The only thing I can think of is the connection of the USB data (D+ and D-) has been reversed.

The attached image was the basis of the schematic, and shows the colour code of the USB cable and the pin connections on the PCB. If you have wired them as shown and it still reports the same problem then I'm at a loss, as both Mark and myself use the same board and same batch of chips, and it was found to be working without issue.

Edit that.. the other possible cause could be the xtal. Make sure its 4Mhz for the 18F2550, and that you have 22pf caps between GND and the legs.
Malc C is offline Find More Posts by Malc C
Reply With Quote
Old May 12, 2006, 09:18 AM
Registered User
Cleethorpes, NE Lincs
Joined Sep 2005
126 Posts
Actually Malc, if my memory serves me right, I think I swapped the D+ and D- on mine because I did a search and all the sites I came across had the colour codes for D+ and D- the other way round (but dont quote me on that as I cant remember now lol!)
Mark J is offline Find More Posts by Mark J
Reply With Quote
Old May 12, 2006, 11:25 AM
Registered User
UK
Joined Oct 2003
3,822 Posts
You might of done... but that's how I have mine wired and it works or was that with the 16C745

Should still be the same come to think about it !
Malc C is offline Find More Posts by Malc C
Reply With Quote
Old May 12, 2006, 12:26 PM
Registered User
Cleethorpes, NE Lincs
Joined Sep 2005
126 Posts
Lol, whichever way you have done it on the small dev board you sent me, it works a treat! so fingers crossed that bitmaniac has popped in the wrong speed crystal.
Mark J is offline Find More Posts by Mark J
Reply With Quote
Old May 12, 2006, 08:15 PM
Registered User
Marysville, WA USA
Joined Dec 2004
5 Posts
Will the controller with the PIC18F2550 work with any other brand of transmitter, lets say a multi-Plex cockpit MM ? I have a programmer for the pic's with a "F" and no way to program a pic16C745 unless someone knows of a easy way to program one?
Mikromike is offline Find More Posts by Mikromike
Last edited by Mikromike; May 12, 2006 at 09:06 PM.
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Question JW24RC - Model RC to USB joystick converter chip skratchbilder Radios 0 Dec 16, 2004 07:43 PM
Quattro USB adapter: RC, Analog Joystick -> USB PiNa Simulators 2 Sep 22, 2004 01:09 PM
Radio Shack USB joystick adapter. HankF Simulators 0 Jul 23, 2003 01:46 PM