Go to Post You don't have enough money, you're under-staffed, you're not quite sure what the customer wants, requirements change, and they want it yesterday. - Kimmeh [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-11-2013, 05:27
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Creating a Joystick-recognized Device

While my question is not relevant to FIRST, I'm hoping that somebody here might know the answer. I need to find a way to create my own joystick-recognized device, one that only has buttons. I know this is possible with microchips such as the Cypress that is used for the DS IO, but I wanted to keep it as cheap as possible. After doing some research, I came across an AT90S2313 microcontroller that is supposed to do the job. Did anyone else do this before and know of a good microcontroller to use? If not, can someone give a little insight as to the pin abbreviations used in the attached photo? Thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	85
Size:	13.0 KB
ID:	15416  
  #2   Spotlight this post!  
Unread 18-11-2013, 08:37
JCharlton's Avatar
JCharlton JCharlton is offline
Registered User
AKA: JC
no team
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Montreal
Posts: 123
JCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to beholdJCharlton is a splendid one to behold
Re: Creating a Joystick-recognized Device

You might find this does what you're looking for?

http://www.u-hid.com/home/index.php
__________________
"There is no problem so bad that you can’t make it worse." - via Chris Hadfield
  #3   Spotlight this post!  
Unread 18-11-2013, 08:49
Mr. Rip's Avatar
Mr. Rip Mr. Rip is offline
Registered User
FRC #1477 (Texas Torque)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 1997
Location: The Woodlands, Texas
Posts: 67
Mr. Rip is a name known to allMr. Rip is a name known to allMr. Rip is a name known to allMr. Rip is a name known to allMr. Rip is a name known to allMr. Rip is a name known to all
Re: Creating a Joystick-recognized Device

This has all the information about your chip.

http://www.atmel.com/Images/doc0839.PDF

Mr. Rip
Texas Torque
  #4   Spotlight this post!  
Unread 18-11-2013, 10:30
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,622
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: Creating a Joystick-recognized Device

You can make a USB device basically 3 ways and expect some standard operating system support:

Emulated serial
HID
Mass storage

Since mass storage is unlikely to matter let's just skip that.
So that leaves emulated serial and HID.

Emulated serial can easily be done with PIC or Atmel USB interface equipped MCU like the PIC4550. It works on Windows, Mac OSX, Linux and BSD. Generally no magical drivers are required to make it work. So basically for the beginner that mode of operation is the easiest to grasp and get results with. It might limit your performance to 200kbps. However for a controller that's probably irrelevant. BTW this mode of operation is how BASIC Stamps and Parallax Propellers are debugged and how many bootloaders get software into an MCU.

Most joysticks work in the HID mode (as mentioned above). This mode requires more effort to create. Generally speaking a shortcut is buying a prefabricated module or software layers that handles the oddities you might encounter for you (instead of reinventing the wheel). This can add cost and HID device support is not universal. Certain simple peripherals like keyboard and mice are well tolerated. However more complex devices can lead you into driver development.

You can get a board from Olimex with the PIC4550 already mounted on it:
Olimex direct

I recommend this board. I know it works just fine. There are American distributors that can ship from here.
  #5   Spotlight this post!  
Unread 29-11-2013, 22:41
calvin909090 calvin909090 is offline
Registered User
FRC #0192
 
Join Date: Sep 2012
Location: Palo Alto
Posts: 2
calvin909090 is an unknown quantity at this point
Re: Creating a Joystick-recognized Device

What we've done previously for button inputs is just take apart one of our attack joysticks, isolate the circuitry, and attach our own buttons to it, bypassing the buttons on the joystick itself. You get 10 buttons, and 3 analog inputs if you want them.

It's probably cheaper than a custom microcontroller solution (I see a refurbished attack 3 on ebay for $16), and there's no coding involved.
  #6   Spotlight this post!  
Unread 29-11-2013, 23:02
mman1506's Avatar
mman1506 mman1506 is offline
Focusing on Combat Robots!
AKA: Marcus Quintilian
no team (WARP7)
Team Role: Alumni
 
Join Date: Mar 2012
Rookie Year: 2012
Location: Toronto
Posts: 804
mman1506 has a reputation beyond reputemman1506 has a reputation beyond reputemman1506 has a reputation beyond reputemman1506 has a reputation beyond reputemman1506 has a reputation beyond reputemman1506 has a reputation beyond reputemman1506 has a reputation beyond reputemman1506 has a reputation beyond reputemman1506 has a reputation beyond reputemman1506 has a reputation beyond reputemman1506 has a reputation beyond repute
Re: Creating a Joystick-recognized Device

The Teensy 3.0 has built in HID and joystick emulation in a small and convenient package
__________________
2014-2015: FRC 865 Warp7 Team Captain
2016: FRC 865 Mentor

2017: Free Agent Mentor, Inspector
  #7   Spotlight this post!  
Unread 29-11-2013, 23:22
geomapguy's Avatar
geomapguy geomapguy is offline
Centenary '18
AKA: Graham Maxwell
FRC #1818
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Alexandria, LA
Posts: 535
geomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud ofgeomapguy has much to be proud of
Re: Creating a Joystick-recognized Device

Quote:
Originally Posted by mman1506 View Post
The Teensy 3.0 has built in HID and joystick emulation in a small and convenient package
Spectrum even released a white paper about using the Teensy 2.0

http://www.chiefdelphi.com/media/papers/2666
__________________
The Cowboys - FIRST Robotics Team #1818 2015-
The Bolton Bear Bots - FIRST Robotics Team #3666 2011-204 (30-26-0)
2014 Oklahoma Regional - 20/62 (6-4-0), 5/62 in OPR
2014 Arkansas Regional - 14/39 (8-7-0, Quarterfinalists with 1706 and 1939), 24/39 in OPR
2013 Lone Star Regional Dean's List Finalist!
2013 Lone Star Regional - 22/57 (6-5-0), 17/57 in OPR
2012 Bayou Regional - 16/49 (6-5-0)
2011 Dallas Regional - 10/52 (4-2-5, #6 Alliance Captain, Quarterfinalists with 2948 and 3350)
  #8   Spotlight this post!  
Unread 30-11-2013, 13:30
s1900ahon s1900ahon is offline
Registered User
AKA: Scott McMahon
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 156
s1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant future
Re: Creating a Joystick-recognized Device

You might consider the use of the following devices donated to FIRST Choice (I know yours is not a FIRST project but you can pick these up really inexpensively at DigiKey or Mouser). We'll be providing a pre-built binary for general use and releasing the source code for it so that some teams (or folks like yourself) may modify it for their specific purposes.

http://www.firstchoicebyandymark.com/en/fc14-011

David Yanoshak (dyanoshak) will be posting additional details of this and some interfacing options in the near future (a couple of days from now).
  #9   Spotlight this post!  
Unread 01-12-2013, 11:59
dyanoshak dyanoshak is offline
Registered User
AKA: David Yanoshak
FRC #2158 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Austin, TX
Posts: 189
dyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond repute
Re: Creating a Joystick-recognized Device

Quote:
Originally Posted by s1900ahon View Post
David Yanoshak (dyanoshak) will be posting additional details of this and some interfacing options in the near future (a couple of days from now).
Just posted here: http://www.chiefdelphi.com/forums/sh...hreadid=122587

-David
  #10   Spotlight this post!  
Unread 09-12-2013, 22:02
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Creating a Joystick-recognized Device

I found out about estoprobotics the other day, this may be what you need.
https://www.estoprobotics.com/estore...d&productId=33
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
  #11   Spotlight this post!  
Unread 09-12-2013, 22:54
z_beeblebrox's Avatar
z_beeblebrox z_beeblebrox is offline
Custom User Title
AKA: Cal
FRC #4183 (Bit Buckets)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Cambridge MA
Posts: 811
z_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond repute
Re: Creating a Joystick-recognized Device

We've disassembled a gamepad and connected other switches and potentiometers on a custom control box to the gamepad circuit board. It works pretty well and is as inexpensive as whatever joystick or gamepad you use.
__________________
2012 Utah Regional Rookie All-Star
2013 Phoenix Regional Judge's Award for "design process and prototyping"
2014 Hub City Regional Quality Award, Arizona Regional Excellence in Engineering Award
2015 Arizona East Regional Creativity Award, Winner
2016 Arizona North Regional Finalist, Arizona West Excellence in Engineering Award, Finalist
  #12   Spotlight this post!  
Unread 09-12-2013, 22:56
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 418
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
Re: Creating a Joystick-recognized Device

Quote:
Originally Posted by z_beeblebrox View Post
We've disassembled a gamepad and connected other switches and potentiometers on a custom control box to the gamepad circuit board. It works pretty well and is as inexpensive as whatever joystick or gamepad you use.
Do you have the model you used?
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620
  #13   Spotlight this post!  
Unread 09-12-2013, 23:14
z_beeblebrox's Avatar
z_beeblebrox z_beeblebrox is offline
Custom User Title
AKA: Cal
FRC #4183 (Bit Buckets)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Cambridge MA
Posts: 811
z_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond repute
Re: Creating a Joystick-recognized Device

We used the Logitech F310 gamepad, but any USB game controller should work.
__________________
2012 Utah Regional Rookie All-Star
2013 Phoenix Regional Judge's Award for "design process and prototyping"
2014 Hub City Regional Quality Award, Arizona Regional Excellence in Engineering Award
2015 Arizona East Regional Creativity Award, Winner
2016 Arizona North Regional Finalist, Arizona West Excellence in Engineering Award, Finalist
  #14   Spotlight this post!  
Unread 10-12-2013, 18:28
rkoripalli's Avatar
rkoripalli rkoripalli is offline
Registered User
AKA: Rohan Koripalli
FRC #3735 (Klein Bots)
Team Role: Alumni
 
Join Date: Aug 2013
Rookie Year: 2013
Location: Klein
Posts: 19
rkoripalli is an unknown quantity at this point
Re: Creating a Joystick-recognized Device

You can use a Teensy with the arduino IDE to make a USB controller, if you would prefer to use an arduino board, the arduino due and leonardo should also be compatible with the USB Keyboard/Mouse libraries.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:39.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi