Pages: [1]   Go Down
Author Topic: Autonomous Tri-Copter Using  (Read 1591 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
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.

^ Datasheet for MB-1200

Global Moderator
Offline Offline
Brattain Member
Karma: 310
Posts: 26626
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?

"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: 212
Posts: 8975
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You probably meant:

"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

Pages: [1]   Go Up
Jump to: