|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Help for LV-MaxSonar-EZ1
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.
|
|
#2
|
|||||
|
|||||
|
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. |
|
#3
|
||||||
|
||||||
|
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.
|
|
#4
|
|||
|
|||
|
Re: Help for LV-MaxSonar-EZ1
Quote:
Thank you all for your help! |
|
#5
|
||||
|
||||
|
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. |
|
#6
|
|||
|
|||
|
Re: Help for LV-MaxSonar-EZ1
Quote:
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|