Go Down

Topic: Autonomous Tri-Copter Using (Read 1 time) previous topic - next topic

barkbarks86

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.

http://www.google.com/url?sa=t&source=web&cd=1&ved=0CBgQFjAA&url=http%3A%2F%2Fwww.maxbotix.com%2Fuploads%2FMB1200-MB1300_Datasheet.pdf&rct=j&q=mb1200%20datasheet&ei=dszOTZWXO4jYgQe_tIDGDA&usg=AFQjCNFYEQz13sNFrhCtzs2uQ_YnUSmdmg&sig2=9-gHRTBgwxt3VaZpyVPrrg

^ Datasheet for MB-1200

AWOL

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.

johnwasser

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