Go to Post Ive always wondered about this - if DK has an alter ego, like Clark Kent and Superman - KenWittlief [more]
Home
Go Back   Chief Delphi > Competition > Rules/Strategy
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 11-01-2013, 15:57
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Arduino as driver station joystick?

My team wants to be able to use an Arduino Uno board as a joystick with Labview, but i'm not sure if it's against the 2013 FRC rules because i can't find it in the rulebook.

Does anyone know if it's legal in the game or do I have to use a different joystick?

If it's legal, how do I get the Arduino to input as a joystick with buttons and axes into labview's joystick control?
  #2   Spotlight this post!  
Unread 11-01-2013, 16:10
Domtech's Avatar
Domtech Domtech is offline
I Do Everything
AKA: Dominic
FRC #2412 (Robototes)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2004
Location: Bellevue WA
Posts: 46
Domtech is an unknown quantity at this point
Re: Arduino as driver station joystick?

I know of no rules against it, but you might try the Q&A.

However, as far as I know, the uno is incapable of being a USB human interface device.
I have also heard there is a different arduino that IS meant to do that.
  #3   Spotlight this post!  
Unread 11-01-2013, 16:10
androb4's Avatar
androb4 androb4 is offline
..is trying to take this year off.
AKA: Andrew A.
no team
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2003
Location: Houston, TX
Posts: 220
androb4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to beholdandrob4 is a splendid one to behold
Re: Arduino as driver station joystick?

Using an Arduino as a joystick is legal. But a better option may be the Cypress board that was included in the Kit of Parts, as it was provided to create a custom controller.

If you search on www.arduino.cc , you may find tutorials that input switches and pots and emulate a USB HID device just like the Logitec joysticks provided.
__________________
FRC 441 Mentor 2012-2015
FRC 441 Alumni 2009-2012
FTC 4673 Alumni 2011-2012
FRC 1484 Alumni 2006-2008

  #4   Spotlight this post!  
Unread 11-01-2013, 16:23
ThaDeanesta ThaDeanesta is offline
Registered User
AKA: Kyle
FRC #0175 (Buzz Robotics)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Connecticut
Posts: 6
ThaDeanesta is an unknown quantity at this point
Re: Arduino as driver station joystick?

You might want to look into the Teensy 2.0 (OR 3.0) . It has hardware USB support, uses the Arduino IDE, and is very simple to use.

It is similar to the Arduino Leonardo, where the chip supports HID, but has many more libraries and easy-to-use features.

Teensy Joystick Examples

Teensy 2.0 - $16

It's definitely worth a look
  #5   Spotlight this post!  
Unread 11-01-2013, 18:24
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Arduino as driver station joystick?

WE just want Labview to read/initialize it as a joystick like the other USB stick we use, but this one just has maybe a couple toggle switches, a few buttons and status LED's for certain conditions.

If the uno is incapable of being a Human Interface Device, then can labview at least read the value of the pins to do the same thing?

We didn't get a Cypress board with our kit this year, we're veteran. Would the Cyress be easier to use with Labview if we bought that instead?

Thank you guys for all the quick responses!!
  #6   Spotlight this post!  
Unread 11-01-2013, 18:58
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Arduino as driver station joystick?

Quote:
Originally Posted by Invictus3593 View Post
WE just want Labview to read/initialize it as a joystick like the other USB stick we use, but this one just has maybe a couple toggle switches, a few buttons and status LED's for certain conditions.

If the uno is incapable of being a Human Interface Device, then can labview at least read the value of the pins to do the same thing?

We didn't get a Cypress board with our kit this year, we're veteran. Would the Cyress be easier to use with Labview if we bought that instead?

Thank you guys for all the quick responses!!
I'm not familiar with how a HID would be implemented, but I've never seen it done before, as there are simpler alternatives - namely the Cypress and the CCI.

If you really need both I and O, then the Cypress would indeed be easier to use as a framework is already in place to implement it. If you only need I, however, then the CCI may be a simpler option. It's a product offered by eStop Robotics that emulates a USB Joystick and allows you to feed sensor input to the robot through the Driver Station.

If you've never done this before, I would suggest going with the CCI as it is a much simpler and robust product to work with. Think about how critical being able to send outputs to your operator interface is - how often is your operator going to look down at his control panel while he's behind that glass? Is he going to be able to interpret that data and actually use it in a match?

Alternatively, as previously mentioned, you can use the Teensy (4334 has a whitepaper here on CD about their implementation of it as a), which can emulate a USB Joystick. Alternatively, it can be implemented as a HID or serial device. Keep in mind that when a device is implemented as a Joystick, it is only capable of feeding input to your system - it cannot receive output.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #7   Spotlight this post!  
Unread 11-01-2013, 20:36
pribusin's Avatar
pribusin pribusin is offline
Uber Alien
AKA: Mike 1
FRC #4004 (M.A.R.S. Rovers)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 168
pribusin has a spectacular aura aboutpribusin has a spectacular aura aboutpribusin has a spectacular aura about
Re: Arduino as driver station joystick?

A word of caution about the Cypress boards. We used it last year and had horrible results. We went through two boards (both failed while in use) and learned from other teams at our regional that they have all abandoned the module because of its lack of reliability.

Here is a tip - buy a cheap joystick (used on ebay ~$10) and rip it open. You now have plenty of switches and pots for external control. If you need mor input, get a second joystick. You can use up to 4 if I remember correctly. We did that, worked like a charm.

Good Luck.
  #8   Spotlight this post!  
Unread 11-01-2013, 23:10
cdewane cdewane is offline
Registered User
FRC #3381 (Droid Rage)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Kellnersville, WI
Posts: 8
cdewane is an unknown quantity at this point
Re: Arduino as driver station joystick?

If you want to stick with the Arduino ecosystem, the new Leonardo board has the capability to act as a HID device. It costs $25 from Sparkfun.

http://arduino.cc/en/Main/ArduinoBoardLeonardo
https://www.sparkfun.com/products/11286
  #9   Spotlight this post!  
Unread 13-01-2013, 19:20
pribusin's Avatar
pribusin pribusin is offline
Uber Alien
AKA: Mike 1
FRC #4004 (M.A.R.S. Rovers)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 168
pribusin has a spectacular aura aboutpribusin has a spectacular aura aboutpribusin has a spectacular aura about
Re: Arduino as driver station joystick?

@cdewane, do you know more about the Arduino/Leonardo HID? Availability of Libraries etc.? Thanks.
  #10   Spotlight this post!  
Unread 13-01-2013, 19:26
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Arduino as driver station joystick?

Uhid can get button/analog data into a HID data structure. Looks like a HID (no drivers) to the Driver Station. Input only (when acting as a joystick). It's awesome.

I personally hated the Cypress board when we used it in 2010. We will NEVER use it again, we had far too many reliability issues with the drivers. The drivers then were very very unstable and would lockup after coming out of sleep, and we had to write code to workaround a lack of Cypress input and map key function to other places (on the driver's gamepad).
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #11   Spotlight this post!  
Unread 14-01-2013, 11:00
cdewane cdewane is offline
Registered User
FRC #3381 (Droid Rage)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Kellnersville, WI
Posts: 8
cdewane is an unknown quantity at this point
Re: Arduino as driver station joystick?

@pribusin While I have used various Arduino boards over the years, I don't yet have a Leonardo. The Leonardo just came out this summer with HID support out of the box. Keyboard/Mouse emulation is the easiest, but I did a quick Google search for "arduino leonardo hid joystick" and found that people have gotten joystick emulation working as well. It may take a little more effort but it seems possible. I am a huge fan of the Arduino platform, very affordable and easy to use.
  #12   Spotlight this post!  
Unread 15-01-2013, 15:51
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Arduino as driver station joystick?

Quote:
Originally Posted by cdewane View Post
If you want to stick with the Arduino ecosystem, the new Leonardo board has the capability to act as a HID device. It costs $25 from Sparkfun.
If we got the Leonardo, is there something that would need to be implemented into it's code that would let it input into Labview just like any other USB joystick? or would it just do itself with the HID protocol.
  #13   Spotlight this post!  
Unread 15-01-2013, 16:01
pribusin's Avatar
pribusin pribusin is offline
Uber Alien
AKA: Mike 1
FRC #4004 (M.A.R.S. Rovers)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 168
pribusin has a spectacular aura aboutpribusin has a spectacular aura aboutpribusin has a spectacular aura about
Re: Arduino as driver station joystick?

If it's a true HID implementation then it needs no drivers and LabView should recognize it as any normal joystick with its analog axes and digital buttons.

We're still looking for an alternative to the Cypress module for its output capability so that we can send outputs back to our control box on the driver station. A joystick, keyboard or mouse HID can't do that.
  #14   Spotlight this post!  
Unread 15-01-2013, 17:24
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Arduino as driver station joystick?

So is there any code that would need to go into it at all? Wouldn't there have to be some code running on it telling Labview how many buttons or axes there are on it?
  #15   Spotlight this post!  
Unread 15-01-2013, 23:11
cdewane cdewane is offline
Registered User
FRC #3381 (Droid Rage)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Kellnersville, WI
Posts: 8
cdewane is an unknown quantity at this point
Re: Arduino as driver station joystick?

Looks like at this point, joystick emulation is still a little bit of work as opposed to keyboard and mouse which just works.

The Leonardo would have to be programmed to make it all work. Here are two posts I found from people who have done it with information on how to replicate.

http://www.imaginaryindustries.com/blog/?p=80
http://blog.qwertymodo.com/2012/07/a...ad-part-1.html

With this, you should be able to plug in the Leonard and Windows will detect it as a joystick. Labview would never know the difference between it and a standard joystick.
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 06:26.

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