View Single Post
  #5   Spotlight this post!  
Unread 15-12-2010, 12:22
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Labview Potentiometer Control

Quote:
Originally Posted by Ether View Post
How is the potentiometer connected to the cRIO (ie where is each wire going)? Have you measured the pot's signal with a simple voltmeter to ascertain for certain that it is actually providing a signal?


Above should be the your first step in troubleshooting this problem! So often we overlook the basics and jump to the advanced steps.

1) Verify the pot actually works.
2) Verify it is connected correctly.
3) See if the code reads as expected.

Quote:
Originally Posted by EricVanWyk View Post
If it looks like you are getting noise, you probably are - I'm betting that your code is just fine.

Wire one end of the pot to +5V, the other end to ground, and the middle to the signal input. These should be labeled on the shell for the analog breakout.
To address step #2 above, make sure the pot is connected to the analog bumper as follows:

One end of the pot is connected to the black wire of a PWM cable. The other end of that black wire needs to be connected to the Gnd. pin on the analog input you selected.

The other end of the pot needs to be connected th the red wire of the same PWM cable. The other end needs to be connected to the +5v pin of the analog input.

Now the wiper of the pot needs to be connected to the white wire of the PWM cable. The other end of the white wire needs to be connected to the Signal pin of the selected analog input.


With these steps verified, you can now use a "probe" to see if the code is working properly.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote