Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Matrix Bot LV-MaxSonar-EZ1 Code? (http://www.chiefdelphi.com/forums/showthread.php?t=101309)

sand500 27-01-2012 18:50

Matrix Bot LV-MaxSonar-EZ1 Code?
 
what class do we use for the LV-MaxSonar-EZ1 ?
do we use the ultrasonic class, if so, what are the ping and echo slots?

it seems like the ultrasonic class is for older sonar sensors so what do we use?

mikets 30-01-2012 15:28

Re: Matrix Bot LV-MaxSonar-EZ1 Code?
 
I don't think the ultrasonic class works with this sonar sensor. You should just instantiate an analog channel for this sensor (if you are connecting it via analog input).

DonRotolo 30-01-2012 22:06

Re: Matrix Bot LV-MaxSonar-EZ1 Code?
 
Use an Analog channel. Each inch = 0.01 volt, so you'll see 0.73 volts for 73 inches, for example.


All times are GMT -5. The time now is 22:20.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi