Go to Post ... as teammates we often get too into the craze of competition and forget that this wouldn't happen without so many dedicated people. - miketwalker [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
  #1   Spotlight this post!  
Unread 13-08-2016, 15:29
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: 217
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Need better accuracy with TI Launchpad?

Hi!

We just started using the TI Launchpad and we have a problem with our 12 state rotary switch. 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. I know the switch works because I tested it on the Arduino Analog port and all 12 states were at different numbers. We are using the 3.3V rail on the Launchpad. Is there something extra you have to do in order to make it so it reports very precise voltages?

Thanks a bunch in advance!
__________________
#Python4Life
Reply With Quote
  #2   Spotlight this post!  
Unread 13-08-2016, 16:03
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: Need better accuracy with TI Launchpad?

You probably just need to calibrate it. From your start menu, search for and open "game controller" and you should see something along the lines of Game Controllers (win7) or Setup USB game controller (win10). When you open it, you should see the LaunchPad listed, along with any other controllers currently attached. Go ahead and select it, and click "Properties". Open the settings tab, and click "Calibrate". It will open a wizard, just move turn the rotary switch back and forth until you can identify the axis it is associated with in Windows. When you are at the right screen, just turn it all the way from one extreme to another, and it should calibrate the full range for you.

Another tip, make sure to use the 3.3V VCC line from the launchpad, and not the 5V line. The 5V one could damage the analog input.
Reply With Quote
  #3   Spotlight this post!  
Unread 13-08-2016, 16:41
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: 217
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Re: Need better accuracy with TI Launchpad?

Quote:
Originally Posted by ILAMtitan View Post
You probably just need to calibrate it. From your start menu, search for and open "game controller" and you should see something along the lines of Game Controllers (win7) or Setup USB game controller (win10). When you open it, you should see the LaunchPad listed, along with any other controllers currently attached. Go ahead and select it, and click "Properties". Open the settings tab, and click "Calibrate". It will open a wizard, just move turn the rotary switch back and forth until you can identify the axis it is associated with in Windows. When you are at the right screen, just turn it all the way from one extreme to another, and it should calibrate the full range for you.

Another tip, make sure to use the 3.3V VCC line from the launchpad, and not the 5V line. The 5V one could damage the analog input.
Thanks for the tip. It worked using calibration for the rotary switch. The only problem is that all the other axises are going completely crazy. This doesn't really matter since I will only ask for the axis that I need, but it is kinda strange....
__________________
#Python4Life
Reply With Quote
  #4   Spotlight this post!  
Unread 13-08-2016, 22:16
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 247
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: Need better accuracy with TI Launchpad?

Quote:
Originally Posted by team-4480 View Post
Thanks for the tip. It worked using calibration for the rotary switch. The only problem is that all the other axises are going completely crazy. This doesn't really matter since I will only ask for the axis that I need, but it is kinda strange....
The reason for this is the "min" and "max" calibration values for those axis are nearly identical, so noise in the input is being read as different values. It's not an issue, but if it bothers you, the easiest way to fix it is to just tie all the inputs together (e.g. tie them all to the rotary switch).
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)
Reply With Quote
  #5   Spotlight this post!  
Unread 15-08-2016, 09:28
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: Need better accuracy with TI Launchpad?

The noise is also going to be increased since it's a floating pin. You can also tie the unused inputs to ground to get rid of the jitter you're seeing.
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 23:07.

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