Go to Post I think I need a bigger cup of coffee.... - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 05-13-2016, 02:27 PM
ILAMtitan ILAMtitan is offline
Texas Instruments
AKA: Bart Basile
FRC #3005 (RoboChargers)
Team Role: Mentor
 
Join Date: Nov 2013
Rookie Year: 2013
Location: Dallas
Posts: 69
ILAMtitan will become famous soon enoughILAMtitan will become famous soon enough
Re: Selecting Autonomous with TI LaunchPad?

Quote:
Originally Posted by team-4480 View Post
Do you mind linking the one you used? That sounds better than using a normal potentiometer!
Rotary switches are pretty cheep and easy to use. Here's a 12 position one that would emulate what GreyingJay did: http://www.digikey.com/product-detai...1NPF-ND/370270

In one of the Launchpad example control panels I wired up an 8 position one. You can see it here to get an idea of how to do it: http://processors.wiki.ti.com/index....nalog_Wire.JPG
The red and black wire on either end of the resistor chain are +3.3V and gnd, and the one in the middle is the signal out.
Reply With Quote
  #17   Spotlight this post!  
Unread 06-08-2016, 02:20 AM
Aeglos Aeglos is offline
Software Overlord
AKA: Nate- Dawg
FRC #2358 (Bearbotics)
Team Role: Programmer
 
Join Date: Jun 2016
Rookie Year: 2014
Location: Lake Zurich
Posts: 10
Aeglos is an unknown quantity at this point
Re: Selecting Autonomous with TI LaunchPad?

In response to using a TI LaunchPad-
It would be much simpler, at least in my opinion, to use a Raspberry Pi Zero, as it is so inexpensive and abundant. It can pretty easily pretend to be a joystick with as many buttons as you want, and will have a LOT more support from outside sources and forums due to its much larger user base than the TI LaunchPads.
Interesting and somewhat related side note- if I remember right from my tinkering with the Pi, the Driver Station pitches a fit if you have a joystick with more than 32 buttons/ axes/ pov's combined, so keep that in mind when constructing your interface regardless of controller. You might have to double up on microcontrollers if you want anything incredibly complex.
Reply With Quote
  #18   Spotlight this post!  
Unread 06-08-2016, 09:02 AM
team-4480's Avatar
team-4480 team-4480 is online now
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 216
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Re: Selecting Autonomous with TI LaunchPad?

Quote:
Originally Posted by Aeglos View Post
In response to using a TI LaunchPad-
It would be much simpler, at least in my opinion, to use a Raspberry Pi Zero, as it is so inexpensive and abundant. It can pretty easily pretend to be a joystick with as many buttons as you want, and will have a LOT more support from outside sources and forums due to its much larger user base than the TI LaunchPads.
Interesting and somewhat related side note- if I remember right from my tinkering with the Pi, the Driver Station pitches a fit if you have a joystick with more than 32 buttons/ axes/ pov's combined, so keep that in mind when constructing your interface regardless of controller. You might have to double up on microcontrollers if you want anything incredibly complex.
Raspberry Pi runs Linux which means there is a significant boot time. If the usb cable were to come loose during a match, the last thing I want to be waiting for is the thing to boot up again.
__________________
#Python4Life
Reply With Quote
  #19   Spotlight this post!  
Unread 06-08-2016, 10:50 AM
Aeglos Aeglos is offline
Software Overlord
AKA: Nate- Dawg
FRC #2358 (Bearbotics)
Team Role: Programmer
 
Join Date: Jun 2016
Rookie Year: 2014
Location: Lake Zurich
Posts: 10
Aeglos is an unknown quantity at this point
Re: Selecting Autonomous with TI LaunchPad?

Quote:
Originally Posted by team-4480 View Post
Raspberry Pi runs Linux which means there is a significant boot time. If the usb cable were to come loose during a match, the last thing I want to be waiting for is the thing to boot up again.
That is quite a valid point...
However, it won't be on the robot and uses only micro-b type connectors, which are latching (not locking, however), so it can withstand some abuse, but if you think it'll be roughed around too much, then definitely pick the LaunchPad.
Reply With Quote
  #20   Spotlight this post!  
Unread 06-14-2016, 12:37 PM
GreyingJay GreyingJay is offline
Robonut
AKA: Mr. Lam
FRC #2706 (Merge Robotics)
Team Role: Mentor
 
Join Date: Mar 2015
Rookie Year: 2015
Location: Ottawa, Canada
Posts: 738
GreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond reputeGreyingJay has a reputation beyond repute
Re: Selecting Autonomous with TI LaunchPad?

Quote:
Originally Posted by team-4480 View Post
Do you mind linking the one you used? That sounds better than using a normal potentiometer!
Sorry for the delay in responding, I sometimes disappear off Chief for a while especially right after the season is over

Here's the unit we used.

http://www.robotshop.com/ca/en/rotar...module-v1.html

We really like it. You plug it right into an analog input on the RoboRio and just read the input voltage. The resistor network (similar to ILAMtitan's second photo) is internal, and there's a nice blue LED for visual feedback too. Plus, it's cheap!
__________________
"If I'm going to mentor someone, I'm going to be involved in their life as a positive force." -Mechvet

Last edited by GreyingJay : 06-14-2016 at 12:41 PM.
Reply With Quote
  #21   Spotlight this post!  
Unread 08-09-2016, 11:20 PM
team-4480's Avatar
team-4480 team-4480 is online now
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 216
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Re: Selecting Autonomous with TI LaunchPad?

Quote:
Originally Posted by GreyingJay View Post
Sorry for the delay in responding, I sometimes disappear off Chief for a while especially right after the season is over

Here's the unit we used.

http://www.robotshop.com/ca/en/rotar...module-v1.html

We really like it. You plug it right into an analog input on the RoboRio and just read the input voltage. The resistor network (similar to ILAMtitan's second photo) is internal, and there's a nice blue LED for visual feedback too. Plus, it's cheap!
We ended up buying this exact one, but the problem is that there only seems to be a handful of values the NI Joystick Explorer sees which are .094, .1, .11, and .12. This is a problem because we really want to use all 12 parts of the switch. We are using the 3.3V rail. Is there something extra you have to do in order to make it so it reports very precise voltages? Thanks!
__________________
#Python4Life
Reply With Quote
  #22   Spotlight this post!  
Unread 08-09-2016, 11:41 PM
Max Boord Max Boord is offline
Registered User
FRC #0179 (The Children of The Swamp), FRC #1592 (Bionic Tigers)
Team Role: Tactician
 
Join Date: Jun 2013
Rookie Year: 2002
Location: Florida
Posts: 234
Max Boord has a brilliant futureMax Boord has a brilliant futureMax Boord has a brilliant futureMax Boord has a brilliant futureMax Boord has a brilliant futureMax Boord has a brilliant futureMax Boord has a brilliant futureMax Boord has a brilliant futureMax Boord has a brilliant futureMax Boord has a brilliant futureMax Boord has a brilliant future
Re: Selecting Autonomous with TI LaunchPad?

Quote:
Originally Posted by asid61 View Post
Why not simply use a multiposition button? They look like potentiometers but have different settings you can snap to rather than an analog output.
This is how 1065 has selected auto modes for years now. 1 or 2 multi position dial and a toggle switch if needed. This year for instance we used the dial to select what we where driving over and position and then used a 3 position switch to determine if we would shoot high, low or do nothing once we got to the batter.
__________________
Past teams:
1523 (2011-2014)
1065 (2014-2016)
3932 & 4592 (2016)
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 08:42 PM.

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