Go to Post If a suspicious distrustful atmosphere is created, then a suspicious distrustful reaction will occur. - 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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-12-2008, 23:05
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
Analog inputs not "working" — I only detect "noise"

Hello Chief Delphi,

Today Team 2502 did a marathon of reading and writing values to Digital inputs and outputs, we blew some air with the pump, and implemented a steering wheel, etc. Our last pit stop was with the analog input.

I opened Analog Input, set the correct slot/channel and when I probed the wire, all I got was near-zero numbers. Things like 0.0001342837 or like -7.001327E23 (Very small numbers)

I'm guessing that something's being read but not the correct values. This happens whether or not we have a sensor plugged in. We've tried numerous jumper positions. What we to simulate a sensor was plug in a 9V battery. Tomorrow we'll try plugging in an actual sensor like ultrasonic (today we couldn't find PWM female-to-female cable so we couldn't plug it in).

Anyone have prelimary guesses?
Thanks,
Keehun
Team 2502
  #2   Spotlight this post!  
Unread 31-12-2008, 00:27
Kitmor's Avatar
Kitmor Kitmor is offline
Registered User
AKA: Kit Morton
FRC #0847 (PHRED)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Philomath
Posts: 24
Kitmor will become famous soon enoughKitmor will become famous soon enough
Re: Analog inputs not "working" — I only detect "noise"

Plugging in a 9 volt battery to one of the inputs was probably a very bad idea. The inputs are supposed to read voltages from 0 to 5 volts, and it is possible that you damaged ether the Analog Breakout Board, the Analog cRIO module, or both. I don't know, but it is possible that only the one input you were using was damaged and the rest of the inputs are still good. I would try it again with a 0 to 5 volt signal on a different input. If that doesn't work, then try a different module with a different breakout board.

Edit: This information is wrong. The input range is -10 to 10 volts. You cannot have done any harm with your 9 volt battery.
__________________
"Stand back we don't know what it is going to do"


Last edited by Kitmor : 31-12-2008 at 00:49.
  #3   Spotlight this post!  
Unread 31-12-2008, 00:31
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
Re: Analog inputs not "working" — I only detect "noise"

Thanks for letting me know about that. I will be on electrical leader's tail for letting that slip. If they are damaged, would they display a red LED? Is there a way to test if those are damaged? (I guess we'd have to hook up a real sensor).

keehun
  #4   Spotlight this post!  
Unread 31-12-2008, 00:33
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Analog inputs not "working" — I only detect "noise"

Kitmor, I do not believe that information is correct.

According to the specifications in section 3.4.3 of the Control Systems Manual the range of allowable input voltages on the analog input pins is -10 V to +10 V.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #5   Spotlight this post!  
Unread 31-12-2008, 00:36
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
Re: Analog inputs not "working" — I only detect "noise"

Don't worry, according to table 3.4.3 in Section 3 of the Control System Manual, 9V is fine.

Edit: Kevin beat me to it.
  #6   Spotlight this post!  
Unread 31-12-2008, 00:45
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
Re: Analog inputs not "working" — I only detect "noise"

Ok thanks for the check. My my electrical guys weren't so lazy as to read the manual after all ;-)

I'll rule out faulty battery(s) after we check out some real sensors (we have ultrasonic rangers).

Our first battery was found to be dead so we replaced it.
Then we found out that we didn't put jumpers.
Now it's still the same and we haven't found another fault to try to fix.

I'll get back, thanks guys.
I just wanted to see if there were some problems people had at first as well

keehun
Team 2502
  #7   Spotlight this post!  
Unread 31-12-2008, 00:47
Kitmor's Avatar
Kitmor Kitmor is offline
Registered User
AKA: Kit Morton
FRC #0847 (PHRED)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Philomath
Posts: 24
Kitmor will become famous soon enoughKitmor will become famous soon enough
Re: Analog inputs not "working" — I only detect "noise"

Thank you for correcting me. I don't remember where, but I thought I read that some where. But now that I look at the datasheet, I see that the range is -10 to 10. So your 9V battery shouldn't have done any harm, but that still doesn't explain the values you get.

I apologize for spreading misinformation. I will always read before posting from now on.
__________________
"Stand back we don't know what it is going to do"

  #8   Spotlight this post!  
Unread 31-12-2008, 08:06
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: Analog inputs not "working" — I only detect "noise"

For starters, is the green LED on the Analog Breakout module on? If not, then the module isn't being properly powered.

HOWEVER, plugging in a 9V battery doesn't require that the Analog Breakout module have power. The analog signals are directly passed (one-to-one) to the NI 9201 analog input module. As mentioned earlier, the 9201 does indeed have a +/-10V input range (survives even higher voltages, I believe) and I'm fairly certain that the FPGA software doesn't limit readings to 0-5V.

Can you read the battery voltage with the jumper installed? You might want to try that first. The reading should even be passed all of the way back to the Driver Station.

You should also confirm that the 9201 is in the chassis slot that you're expecting. You might be sampling the analog input from the other 9201 in your cRIO chassis.

Good Luck. Hope the above helps.

Russ
  #9   Spotlight this post!  
Unread 31-12-2008, 09:48
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Analog inputs not "working" — I only detect "noise"

Quote:
Originally Posted by Russ Beavis View Post
The analog signals are directly passed (one-to-one) to the NI 9201 analog input module. As mentioned earlier, the 9201 does indeed have a +/-10V input range (survives even higher voltages, I believe) and I'm fairly certain that the FPGA software doesn't limit readings to 0-5V.

I was wondering about this. The 9201 module will survive up to 100 volts from any given channel to ground according to the data sheet I was looking at.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #10   Spotlight this post!  
Unread 31-12-2008, 09:53
dmcguire3006 dmcguire3006 is offline
Registered User
FRC #3006 (West High FIRST Robotics)
Team Role: Teacher
 
Join Date: Dec 2008
Rookie Year: 2009
Location: Salt Lake City, UT
Posts: 21
dmcguire3006 is on a distinguished road
Re: Analog inputs not "working" — I only detect "noise"

Check that you have connected the common pin to ground (any black wire on the robot). The NI9201 analog inputs are single-ended, but you MUST connect at least one of the COM connections to chassis ground.

See pages 9-10 of the NI9201 manual:
http://www.ni.com/pdf/manuals/373783f.pdf
  #11   Spotlight this post!  
Unread 31-12-2008, 15:11
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Analog inputs not "working" — I only detect "noise"

What pins on the analog breakout did you connect the simulated sensor input to? One of them had better be the "signal" pin.
  #12   Spotlight this post!  
Unread 31-12-2008, 19:01
keehun's Avatar
keehun keehun is offline
Team Captain
AKA: Keehun Nam
FRC #2502 (EP Robotics)
Team Role: Leadership
 
Join Date: May 2008
Rookie Year: 2008
Location: Eden Priaire
Posts: 474
keehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond reputekeehun has a reputation beyond repute
Send a message via AIM to keehun
Re: Analog inputs not "working" — I only detect "noise"

Wow! We looked a little closer at the 3-pin connection and found out that we were only connected to 2 of the pins. So the where white should've been was at red, and where red should've been was at black and black wasn't even connected. Our PWM cable ends are keyed so they "click" but we realized that those PWM cable keys don't actually work with the cRIO connections so we found cables without keys and it worked just wonderfully. Learned something valuable with this

keehun
Team 2502
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Championship Event - Where the "Random" Match Sorting Really "Shines" Travis Hoffman Championship Event 57 19-04-2007 08:06
Congratulations is spelled with a "T" and not a "D"!! Elgin Clock Thanks and/or Congrats 55 09-03-2007 13:24
New NEMO White Papers! "Creating a Killer Packet" and "25 Ways to Sponsor" Jessica Boucher Team Organization 0 10-08-2005 10:55
Exempli Gratia: "Jason Morrella" not "Jason Morella" Bill Gold CD Forum Support 8 10-10-2004 19:01
"Thunderbirds" Vs. "Team America" Which one will rule the box office? Elgin Clock Chit-Chat 3 07-09-2004 19:53


All times are GMT -5. The time now is 09:29.

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