Go Down

Topic: Autonomous Tri-Copter Using (Read 1 time) 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 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.


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: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131