Pages: [1]   Go Down
Author Topic: Autonomous Tri-Copter Using  (Read 1556 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26350
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just out of interest, how do you balance torque with three rotors?
Logged

"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.

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8856
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Pages: [1]   Go Up
Jump to: