Go to Post remember to keep this simple but yet complex everyone - Team#2057-Vegas [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 08-01-2014, 16:13
kakugyou kakugyou is offline
Registered User
FRC #3543
 
Join Date: Jan 2014
Location: Arnprior
Posts: 3
kakugyou is an unknown quantity at this point
Smile Help for LV-MaxSonar-EZ1

Hello!

My team and I have been looking for programming codes, wiring ideas etc. for our LV-MaxSonar-EZ1. All help is appreciated
Reply With Quote
  #2   Spotlight this post!  
Unread 08-01-2014, 16:18
atucker4072's Avatar
atucker4072 atucker4072 is offline
Andrew Tucker
AKA: Andrew Tucker
FTC #4968 (Rapid Robotics)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Glenwood Springs, Co
Posts: 152
atucker4072 has a spectacular aura aboutatucker4072 has a spectacular aura aboutatucker4072 has a spectacular aura about
Re: Help for LV-MaxSonar-EZ1

Quote:
Originally Posted by kakugyou View Post
Hello!

My team and I have been looking for programming codes, wiring ideas etc. for our LV-MaxSonar-EZ1. All help is appreciated
First of all what do you plan on using it for? There are a lot of things you could use a sonar sensor for this year.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-01-2014, 22:42
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: Help for LV-MaxSonar-EZ1

I have been successful using the Analog output of the sensor wired to an Analog input on the Analog Breakout of the cRio to measure distance. The voltage is proportional to the measured distance. Programming should be straightforward (but I am not a programmer)

Of course the sensor needs power & ground to function.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #4   Spotlight this post!  
Unread 08-01-2014, 22:52
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,566
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Help for LV-MaxSonar-EZ1

The LabVIEW example finder has an example for the EZ1 using analog. Like all of the NI FRC examples, it not only has code, but wiring pictures.
Reply With Quote
  #5   Spotlight this post!  
Unread 10-01-2014, 16:36
kakugyou kakugyou is offline
Registered User
FRC #3543
 
Join Date: Jan 2014
Location: Arnprior
Posts: 3
kakugyou is an unknown quantity at this point
Re: Help for LV-MaxSonar-EZ1

Quote:
Originally Posted by DonRotolo View Post
I have been successful using the Analog output of the sensor wired to an Analog input on the Analog Breakout of the cRio to measure distance. The voltage is proportional to the measured distance. Programming should be straightforward (but I am not a programmer)

Of course the sensor needs power & ground to function.
Would you mind elaborating that please? Our team doesn't have much expertise in that division. (We have almost no expertise actually)
Thank you all for your help!
Reply With Quote
  #6   Spotlight this post!  
Unread 10-01-2014, 17:31
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,078
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Help for LV-MaxSonar-EZ1

You'll want to use a PWM cable cut in half to connect the sensor to the Analog Breakout. One end of the cable should be the female end and the other end should have 3 bare wires.

Red wire should go to the +5 pin on the sensor. Black wire to GND on the sensor and white wire to AN on the sensor. You'll need to solder all 3 connections. The connector end of the cable goes into the Analog Breakout. Black wire to GND, red wire to +5v and white wire to SIG.

In software, you'll need to find the AnalogVoltage (or something similarly titled) function. I can't help you much beyond that, since I'm not familiar with LabView.

When you read a voltage, every .0098 volts equals one inch. The relation is proportional.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

Reply With Quote
  #7   Spotlight this post!  
Unread 10-01-2014, 16:32
kakugyou kakugyou is offline
Registered User
FRC #3543
 
Join Date: Jan 2014
Location: Arnprior
Posts: 3
kakugyou is an unknown quantity at this point
Re: Help for LV-MaxSonar-EZ1

Quote:
Originally Posted by atucker4072 View Post
First of all what do you plan on using it for? There are a lot of things you could use a sonar sensor for this year.
We plan on using the sensor for measuring the distance to the wall. Thank you for the reply!
Reply With Quote
  #8   Spotlight this post!  
Unread 10-01-2014, 18:00
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: Help for LV-MaxSonar-EZ1

Fortunately the EZ1 has multiple outputs to choose from. Personally I prefer the PWM signal.

Additionally, LabView has an example on how to use it with this method.

Once LV is open, select the Support tab on the left (See image 1)
Next, select Find FRC Examples. (Again image 1)
Expand the "Sensor" branch, and open the "EZ1 M1010 Sonar Digital.lvproj". (Image 2)
When you have the example open, you will see all the details you will need to get it to run on your robot. (Image 3)
Attached Thumbnails
Click image for larger version

Name:	Find Example.JPG
Views:	20
Size:	45.4 KB
ID:	15801  Click image for larger version

Name:	EZ1-Digital.JPG
Views:	34
Size:	97.9 KB
ID:	15802  Click image for larger version

Name:	EZ1-Digital vi.JPG
Views:	41
Size:	175.1 KB
ID:	15803  
__________________
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
  #9   Spotlight this post!  
Unread 11-01-2014, 02:28
Average Joes Average Joes is offline
Registered User
None #3620
 
Join Date: Jan 2014
Location: Michigan
Posts: 1
Average Joes is an unknown quantity at this point
Re: Help for LV-MaxSonar-EZ1

Hi guys,

I'm wondering whether anyone can post images of each step (programming code and wiring pictures) from the LabView example for the EZ1?

I'm curious as to how I can wire the EZ1 to the cRio and would appreciate any help.

Thanks in advance
Reply With Quote
  #10   Spotlight this post!  
Unread 11-01-2014, 02:32
atucker4072's Avatar
atucker4072 atucker4072 is offline
Andrew Tucker
AKA: Andrew Tucker
FTC #4968 (Rapid Robotics)
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Glenwood Springs, Co
Posts: 152
atucker4072 has a spectacular aura aboutatucker4072 has a spectacular aura aboutatucker4072 has a spectacular aura about
Re: Help for LV-MaxSonar-EZ1

Keep in mind that anything in front of the sensor, it would be best to use the vision tracking that way you can get a value that won't change based on elements on the playing field.
Reply With Quote
  #11   Spotlight this post!  
Unread 11-01-2014, 07:14
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Help for LV-MaxSonar-EZ1

I'd be willing to post some pictures from the LV example, but perhaps a better approach would be to install it and experiment with it yourself. It is useful to have a second SW tool that you can use to verify if a sensor works, how well it works, "is it the code or the sensor", etc. I have nothing against printfs. But sometimes a panel is worth a thousand printfs.

Greg McKaskle
Reply With Quote
  #12   Spotlight this post!  
Unread 14-01-2014, 13:04
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
Re: Help for LV-MaxSonar-EZ1

we were after the screen shot just for the wiring diagram, but we can glean that from the email thread (+5V, GND, and either the PWM or AN)....
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 15:22.

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