Go to Post Take what you have learned, build on it and share it. Others will do the same. Enjoy the journey. - Bertman [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: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
  #2   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
  #3   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
  #4   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
  #5   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
  #6   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
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