Go to Post Honestly, I can't understand why anyone wouldn't want to be a mentor. The fools don't know what they are missing. - Steven Smith [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 26-01-2012, 17:28
nadya1196's Avatar
nadya1196 nadya1196 is offline
Head of Electronics
FRC #2265 (Fe Maidens)
Team Role: Leadership
 
Join Date: Dec 2010
Rookie Year: 2010
Location: US
Posts: 10
nadya1196 is an unknown quantity at this point
Maxbotix Sonar Testing

So we have been attempting to get a sonar working on our robot this year, and well we've run into a problem. We wired it by cutting off the male end of the pwm. Then we soldered it black to ground, red to +5, and white to AN (analog).

We looked through their diagrams and information for the maxbotix sonar and we figured out that if we tested it with the voltmeter, it would show about 9.8 mV per inch, but when we tried actually testing it, we couldnt get it working. Any suggestions?
  #2   Spotlight this post!  
Unread 26-01-2012, 17:54
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: Maxbotix Sonar Testing

Are you using the example code to test it? If so, are you receiving anything on Analog 1?
__________________
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
  #3   Spotlight this post!  
Unread 26-01-2012, 19:54
Keyreaper's Avatar
Keyreaper Keyreaper is offline
Keyreaper
AKA: Cyrus Duong
FRC #1710 (Revolution Ravonics)
Team Role: Programmer
 
Join Date: May 2011
Rookie Year: 2011
Location: Olathe
Posts: 140
Keyreaper is an unknown quantity at this point
Re: Maxbotix Sonar Testing

Our team has problems with the sensor as well, eventually we just fed the signal/voltage wire (AN Pinout) from the ultrasonic straight to PMW slot one on the analog controller and just pulled the voltage from there, and scaled the output accordingly to get the distance it was reading.
  #4   Spotlight this post!  
Unread 26-01-2012, 22:01
nadya1196's Avatar
nadya1196 nadya1196 is offline
Head of Electronics
FRC #2265 (Fe Maidens)
Team Role: Leadership
 
Join Date: Dec 2010
Rookie Year: 2010
Location: US
Posts: 10
nadya1196 is an unknown quantity at this point
Re: Maxbotix Sonar Testing

Actually we are testing it by just using the voltmeter to test if our sonar works in general. We might try running code just through the analog. It is currently plugged into one of the pins that are on the analog breakout in the cRIO. We read that we can get 5 volts from there. So in general, we arent getting any readings when testing if our sonar works.
  #5   Spotlight this post!  
Unread 26-01-2012, 22:49
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 430
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Maxbotix Sonar Testing

Quote:
Originally Posted by nadya1196 View Post
Actually we are testing it by just using the voltmeter to test if our sonar works in general. We might try running code just through the analog. It is currently plugged into one of the pins that are on the analog breakout in the cRIO. We read that we can get 5 volts from there. So in general, we arent getting any readings when testing if our sonar works.
Have you wired 12V to the analog breakout board as shown in the wiring diagram here?

This connection is required to drive the 5V supply on the board.
__________________
http://team2168.org
  #6   Spotlight this post!  
Unread 30-01-2012, 10:36
nadya1196's Avatar
nadya1196 nadya1196 is offline
Head of Electronics
FRC #2265 (Fe Maidens)
Team Role: Leadership
 
Join Date: Dec 2010
Rookie Year: 2010
Location: US
Posts: 10
nadya1196 is an unknown quantity at this point
Re: Maxbotix Sonar Testing

Yes we have wired the 12v to the analog breakout, and we have measured 5v coming out of it, but it still doesnt seem to be working.
  #7   Spotlight this post!  
Unread 30-01-2012, 22:38
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Maxbotix Sonar Testing

OK, so you have +5 V at the "+5V" pin, and Ground on the GND pin, and using a voltmeter between the AN pin and GND you are not seeing any DC voltage, even though the target is, say, around 5 feet away? You should be reading about 0.060 volts for 60 inches.
__________________

I am N2IRZ - What's your callsign?
  #8   Spotlight this post!  
Unread 30-01-2012, 23:13
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 243
BitTwiddler is on a distinguished road
Re: Maxbotix Sonar Testing

Quote:
Originally Posted by DonRotolo View Post
OK, so you have +5 V at the "+5V" pin, and Ground on the GND pin, and using a voltmeter between the AN pin and GND you are not seeing any DC voltage, even though the target is, say, around 5 feet away? You should be reading about 0.060 volts for 60 inches.
Don,
from the datasheet - Outputs 0- 2.55 volts with a scaling factor of 10mV per inch.
That would make it read 0.60 Volts for 60 inches.
  #9   Spotlight this post!  
Unread 30-01-2012, 22:59
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 243
BitTwiddler is on a distinguished road
Re: Maxbotix Sonar Testing

Quote:
Originally Posted by nadya1196 View Post
Actually we are testing it by just using the voltmeter to test if our sonar works in general. We might try running code just through the analog. It is currently plugged into one of the pins that are on the analog breakout in the cRIO. We read that we can get 5 volts from there. So in general, we arent getting any readings when testing if our sonar works.
If this is the EZ-1 you might check on this tidbit I got from the datasheet.
RX – This pin is internally pulled high. The EZ1 will continually measure range and output if RX data is left unconnected or held high. If held low the EZ1 will stop ranging


Use your voltmeter to ensure that the RX pin is indeed being pulled up.
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


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

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