Go to Post A FRC team without engaged and motivated students is like a car without wheels... it isn’t going to go very far. - E. Wood [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 24-01-2012, 18:10
Tub Tubs Tub Tubs is offline
Registered User
FRC #3049
 
Join Date: Feb 2010
Location: Washington
Posts: 23
Tub Tubs is an unknown quantity at this point
Sensor Wiring

i am curious as in how to Wire our LV-MaxSonar-EZ1 ultrasonic Sensor
  #2   Spotlight this post!  
Unread 24-01-2012, 18:38
Ernst's Avatar
Ernst Ernst is offline
Ernst
AKA: Ernst
FRC #1732 (Hilltoppers)
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2011
Location: Milwaukee, WI
Posts: 297
Ernst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond repute
Re: Sensor Wiring

Google is your friend.
  #3   Spotlight this post!  
Unread 24-01-2012, 22:28
hsekhon27 hsekhon27 is offline
Registered User
FRC #0280 (TNT)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2011
Location: Taylor, MI
Posts: 23
hsekhon27 is an unknown quantity at this point
Re: Sensor Wiring

You have to use an analog signal. To wire, you just solder a pwm cable to three of the outputs on the sensor. Here's the order:
Black-GND
Red- 5V
White- AN

And the female end of the pwm cable connects to one of the analog inputs of the analog module of the cRIO (probably slot 1)
  #4   Spotlight this post!  
Unread 25-01-2012, 10:18
Superllama12's Avatar
Superllama12 Superllama12 is offline
Wombaticus
AKA: Brandon Buncher
FRC #0540 (Talon 540)
Team Role: Electrical
 
Join Date: Jan 2011
Rookie Year: 2004
Location: Henrico, VA
Posts: 150
Superllama12 is an unknown quantity at this point
Re: Sensor Wiring

Quote:
Originally Posted by hsekhon27 View Post
You have to use an analog signal. To wire, you just solder a pwm cable to three of the outputs on the sensor. Here's the order:
Black-GND
Red- 5V
White- AN

And the female end of the pwm cable connects to one of the analog inputs of the analog module of the cRIO (probably slot 1)
Yup, we've tested and it works; however, programming-wise, it is kinda weird. We found a website that told us to wire it through the ECHO and/or PING modules, but we can't find anything about what those actually are. Lastly, though we haven't tried it, you should be able to wire the white wire to PW and put the female in DIO, but again, we haven't tested it. Good luck!
__________________
I would put a signature here, but that's too mainstream

Wait a moment...
  #5   Spotlight this post!  
Unread 25-01-2012, 10:40
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,904
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Sensor Wiring

ECHO & PING are for a different make/model of ultrasonic sensor.

The MaxBotix that came in the 2012 Kit has a couple of wiring options, the analog probably being the easiest.
In code it gets treated just like any other analog sensor.
Read the analog value, convert to inches.

It can also be wired for digital and plugged into the sidecar.

There are code examples for both analog and digital from the LV Start page under Support -> Find FRC Examples..., then Sensors->EZ1...
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 25-01-2012 at 11:34.
  #6   Spotlight this post!  
Unread 25-01-2012, 10:51
robotfreak664+2's Avatar
robotfreak664+2 robotfreak664+2 is offline
Registered User
AKA: Marquel
FRC #3397 (Robolions)
Team Role: Electrical
 
Join Date: Jan 2012
Rookie Year: 2011
Location: University City
Posts: 1
robotfreak664+2 is an unknown quantity at this point
Re: Sensor Wiring

the wiring instructions should be with the sensor...
  #7   Spotlight this post!  
Unread 26-01-2012, 12:26
Mr. Rogers's Avatar
Mr. Rogers Mr. Rogers is offline
That? That was in the CAD.
FRC #3539 (Byting Bulldogs)
Team Role: College Student
 
Join Date: Apr 2011
Rookie Year: 2011
Location: Romeo, MI
Posts: 67
Mr. Rogers will become famous soon enoughMr. Rogers will become famous soon enough
Re: Sensor Wiring

http://www.maxbotix.com/articles/016.htm Easy as 3.14159265..... Oh, use the analog ourput pin, and get the voltage from the analog breakout in the code, then use the scale factor in the above link to get your distance in the code. The voltage and distance for this unit are proportional.
__________________
Grow the roses of success!
2011 Archimedes 2nd seed,
2011 Waterford Champion, 2011 Troy Simi-Finalist,
2011 Waterford Rookie all star, 2011 Troy Rookie all star
http://www.bytingbulldogs.com/

Last edited by Mr. Rogers : 26-01-2012 at 12:29.
  #8   Spotlight this post!  
Unread 26-01-2012, 13:45
xisybyl xisybyl is offline
Registered User
FRC #3648
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Denver
Posts: 34
xisybyl is an unknown quantity at this point
Re: Sensor Wiring

Presuming you are using LabVIEW:

1. Bring up LabVIEW
2. Click on SUPPORT
3. Click on Find FRC Examples . . .
4. Under FRC Robotics - double click on Sensors
5. Double click on EZ1 MB 1010 Sonar Digital.lvproj
6. In the project window double-click on EZ1 MB 1010 Sonar Digital.vi

Before you run the VI, right-click on Properties and change the IP address to one for your team.
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 18:55.

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