Log in

View Full Version : Matrix Bot LV-MaxSonar-EZ1 Code?


sand500
27-01-2012, 18:50
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
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
Use an Analog channel. Each inch = 0.01 volt, so you'll see 0.73 volts for 73 inches, for example.