Go to Post Because, y'know, FIRST can't make it easy for us. - WinterPoet [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-11-2013, 21:20
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
Registering input devices with DriverStation

Hello all!

My team is looking into creating custom control solutions. We were looking into the Wii Remote but then realized that Bluetooth communication is not allowed by first. If we decided to take up the task of creating a control solution that utilized an Arduino and an accelerometer, would it be necessary for us to register the device with DriverStation or could we just send raw data from the device to the robot through some kind of server running on the driver station computer?

Thanks!

Alex Brinister
Reply With Quote
  #2   Spotlight this post!  
Unread 10-11-2013, 22:15
Domenic Rodriguez's Avatar
Domenic Rodriguez Domenic Rodriguez is offline
Registered User
FRC #0316 (LuNaTeCs)
Team Role: College Student
 
Join Date: Sep 2010
Rookie Year: 2011
Location: Grove City, PA
Posts: 213
Domenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura aboutDomenic Rodriguez has a spectacular aura about
Re: Registering input devices with DriverStation

There's a project called UnoJoy that let's you use an Arduino as the base for a custom gamepad. The official Arduino blog reviewed it here: http://blog.arduino.cc/2012/05/14/un...-linux-or-ps3/. This should cause your custom controller to show up in the driver station just like any other.
__________________

LuNaTeCs - Learning Under Nurturing Adults Teaching Engineering Concepts and Skills - Small and Mighty!

FRC 316 LuNaTeCs - Student (2011-2014), Lead Programmer (2011-2014), Team Captain (2013-2014), Operator (2013), Drive Coach (2014), Mentor (2015-????)
'11 Philly Regional Finalists, '13 Chestnut Hill Finalists, '13 Lenape Champions, '13 Archimedes Division, '14 Chestnut Hill Champions, '14 Lenape Champions
FTC 7071 EngiNerds - Founding Advisor (2013-2014) | FRC 5420 Velocity - Founding Advisor (2015)
Grove City College Class of '18, Electrical/Computer Engineering (B.S.E.E)

Reply With Quote
  #3   Spotlight this post!  
Unread 10-11-2013, 22:24
Aaron.Graeve Aaron.Graeve is offline
Registered User
FRC #1477 (Texas Torque)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: College Station, Texas
Posts: 103
Aaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to allAaron.Graeve is a name known to all
Re: Registering input devices with DriverStation

That depends on the specific implementation of the arduino. We used on last season to turn potentiometer values into floating point numbers. While I was not directly working on the project, I have a friend who was. I would suggest looking up the UnoJoy project. From what he said, the arduino is seen as a PS3 controller with no registering required.

From my brief rereading of the rules, I don't see any issue with incorperating the joystick reading into the dashboard (for instance), sending the information over the network via Network tables/Smart Dashboard, and using those to drive. My only caution is that the field gives driver station status packets priority over other packets, so your driver controls may experience some lag.

If a robot inspector, FTA , or another appropriate authority could clarify, that would be great.
__________________

2016:
Alamo, Bayou, and Lone Star Regional FTAA
2015:
Dallas, Alamo, Bayou, and Lone Star Regional FTAA
2014:
Alamo, Dallas, and Lone Star Regional FTAA
Alamo Regional Robot Inspector
2013:
Einstein Champion and 2013 World Champion (Thanks 1241 & 610), Galileo Division Champion, Razorback Regional Winner, Alamo Regional Semifinalist, Bayou Regional Semifinalist, Lone Star Regional Quarterfinialist
2012:
Curie Division Semifinalist, Lone Star Regional Finalist, Bayou Regional Winner, Alamo Regional Winner
Reply With Quote
  #4   Spotlight this post!  
Unread 11-11-2013, 09:09
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: Registering input devices with DriverStation

We used something like UnoJoy this past year to input a couple toggle switches and buttons. It was called LeoJoy, the only difference I can imagine is that we used a Leonardo board and UnoJoy uses an Uno board. The good thing about a Leonardo board is that it already ships with HID implementation so you don't have to do too much to it to get it working. It's also about $5 cheaper than an Uno.
__________________
Per Audacia Ad Astra
Reply With Quote
  #5   Spotlight this post!  
Unread 27-02-2014, 23:22
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
Re: Registering input devices with DriverStation

Hi all,
Thank you for all of your answers! I did indeed end up working on an accelerometer joystick and ended up creating a functional one. I have tested it with a robot and everything and it is awesome!

I went with the idea of using UnoJoy with an Arduino Uno I have lying around but found it nonfunctional. I never figured out why it did not work but I soon found a new method.

Using the firmware and type info from this page, I was able to get my accelerometer joystick working. The communication seems fairly straight-forward. All it does is send an array through the serial interface to the usb chip and it shows that information to a PC.

I don't have any pictures of my controller or videos of robot driving, but I can tell you that it's pretty great! I have an LCD screen on there to tell you the speed formatted in the way WPILib sends speeds to motor controllers (a 16-bit range mapped to a -1 to 1 range). It drives suprisingly smoothly and it is not as sensitive as I thought it would be. Overall, it was a great project to work on! I strongly encourage others to look into exploring control options outside of those provided by FIRST!

You can look at my code here. In the repository, I include the firmware files and the libraries that I used to create my joystick. I hope somebody can find this to be useful!

Once again, thank you for all of your help!

Alex Brinister
Reply With Quote
  #6   Spotlight this post!  
Unread 01-03-2014, 12:43
AlexBrinister AlexBrinister is offline
Registered User
AKA: Alex Brinister
FRC #1768 (RoboChiefs)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Bolton, MA
Posts: 93
AlexBrinister will become famous soon enough
Re: Registering input devices with DriverStation

Here are some pictures of the controller! It doesn't have a cover yet but the CAD people are promising me a 3D-printed case.

Alex Brinister
Attached Thumbnails
Click image for larger version

Name:	100_0658.JPG
Views:	15
Size:	477.8 KB
ID:	16431  Click image for larger version

Name:	100_0655.JPG
Views:	15
Size:	318.8 KB
ID:	16428  Click image for larger version

Name:	100_0659.JPG
Views:	13
Size:	688.8 KB
ID:	16429  Click image for larger version

Name:	100_0660.JPG
Views:	9
Size:	590.9 KB
ID:	16430  
Reply With Quote
Reply


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 12:12.

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