Go to Post Be careful what you wish for, you just might be asked to be on the committee! - Rosiebotboss [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 09-02-2012, 21:14
TomH's Avatar
TomH TomH is offline
Registered User
FRC #0087
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2009
Location: New Jersey
Posts: 53
TomH has a spectacular aura aboutTomH has a spectacular aura aboutTomH has a spectacular aura about
Encoder Issues and Controller Question

Hello everyone,

I have two questions that I'd like to ask, one with encoders, and the other about using an Arduino based custom controller to drive the bot (not cRIO, but like gamepad or joystick controller)

Our programming team has encountered some interesting issues this year with encoders. It seems as though we can get the raw 0s and 1s from a live readout in Netbeans, but we can't get it to count or give us a rate. We are not using CAN, and I tried all I could think of. We are just using one signal to get the rate/distance, we aren't interested that much into direction. Could this be a problem? I can give more details on how its been set up.

Next, my Arduino controller question. Is it possible, or even legal, to make an Arduino controller to have a few buttons that do different things? I don't think we'd use this at all in competition , but it would be a cool experiment that we could do, and also show how custom controllers can be made. And is it possible to make a custom controller that the driver station can recognize, and further more even take commands from?

Thanks,
Tom
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2012, 21:28
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Encoder Issues and Controller Question

Quote:
Originally Posted by TomH View Post
Our programming team has encountered some interesting issues this year with encoders. It seems as though we can get the raw 0s and 1s from a live readout in Netbeans, but we can't get it to count or give us a rate. We are not using CAN, and I tried all I could think of. We are just using one signal to get the rate/distance, we aren't interested that much into direction. Could this be a problem? I can give more details on how its been set up.
The encoder class requires both encoder signals to be connected. The counter class does not.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2012, 23:40
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
Re: Encoder Issues and Controller Question

What's wrong with Arduino controllers in the driver station? People can use laptops to control the robot and not Arduino? Makes no sense.

Last year, we got an innovative control system award for a "voodoo arm" that uses non-FIRST-supplied encoders. Unless they changed the rules...
Reply With Quote
  #4   Spotlight this post!  
Unread 10-02-2012, 01:14
jesusrambo jesusrambo is offline
Self-Proclaimed Programmer Messiah
AKA: JD Russo
FRC #2035 (Robo Rockin' Bots)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Carmel, CA
Posts: 114
jesusrambo is an unknown quantity at this point
Re: Encoder Issues and Controller Question

As far as I know, the only restrictions on anything like Arduino controllers would be if they're actually directly controlling anything on the robot.
Reply With Quote
  #5   Spotlight this post!  
Unread 10-02-2012, 18:46
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,073
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Encoder Issues and Controller Question

Quote:
Originally Posted by Patrick Chiang View Post
What's wrong with Arduino controllers in the driver station? People can use laptops to control the robot and not Arduino? Makes no sense.
Arduino doesn't have a practical LCD screen, which is required for feedback.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

Reply With Quote
  #6   Spotlight this post!  
Unread 12-02-2012, 03:33
LukeS LukeS is offline
4272 mentor, 1024 alumnus
AKA: Luke Shumaker
FRC #4272
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Indianapolis, IN
Posts: 60
LukeS is an unknown quantity at this point
Re: Encoder Issues and Controller Question

Quote:
Originally Posted by TomH View Post
Next, my Arduino controller question. Is it possible, or even legal, to make an Arduino controller to have a few buttons that do different things? I don't think we'd use this at all in competition , but it would be a cool experiment that we could do, and also show how custom controllers can be made. And is it possible to make a custom controller that the driver station can recognize, and further more even take commands from?
Some people are interpreting this as using only an Arduino; the rules say you can run (basically) any hardware you want, but it has to run the supplied Driver Station software, so you still need a Windows PC (or perhaps another OS running Wine, I haven't tried).

However, it is possible, just not legal. IIRC, there is an app for the iPhone/iPod to do this.

Now, I'm fairly certain that using an Arduino as a peripheral to a laptop is legal. However, I'd also advise that you check out the Cypress board that everyone uses; it's a pretty cool little board, similar to an Arduino. You can get the code for it from the WPILib project on FIRST Forge.
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 09: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