Go Down

Topic: Autonomous Tri-Copter Using (Read 3117 times) previous topic - next topic


Hi Everyone,

    I am using an Arduino Uno Board as the microcontroller behind my autonomous project. I am using 4 XL-MaxSonar Pin Out Ultrasonic Range Finders (MB-1200). I am setting Pin1 - low. I want to know how to read the reflected data/pulse.


^ Datasheet for MB-1200


Just out of interest, how do you balance torque with three rotors?
"Pete, it's a fool (who) looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.


You probably meant: http://www.maxbotix.com/uploads/MB1200-MB1300_Datasheet.pdf

"Pin 2 -MB1200 (PW) This pin outputs a pulse width representation of range. To calculate distance, use the scale factor of 58uS per cm."

You probably want to connect Pin 2 to some Arduino data pin and use pulseIn(dataPin, HIGH) to get the length of the pulse in microseconds.  Then divide by 58 to get cm.

Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp

Go Up