Integration of the MaxBotix MB-1200 Sonar Device possible?

Post Reply
ApoC
Posts: 31
Joined: Fri Feb 10, 2012 2:16 pm

Integration of the MaxBotix MB-1200 Sonar Device possible?

Post by ApoC »

Hey

The MB 1200 is an Sonar Sensor, so its possible to get it in the Mwii Code? Have this one from my Arducopter, but i would check, if its possible to get it in the MWii Code.

It can:

- Serial, 0 to Vcc, 9600Baud, 81N
- Analog, (Vcc/1024) / cm
- Pulse Width (MB1200)

Here is the Sheet: http://www.maxbotix.com/documents/MB120 ... asheet.pdf

Greetz
Chris

Waldmensch
Posts: 31
Joined: Sat Dec 31, 2011 12:10 am

Re: Integration of the MaxBotix MB-1200 Sonar Device possibl

Post by Waldmensch »

Think using the Serial is not an option. You should check the Sonar_update function in sensors.pde (the sketches posted in soar I2C thread). If you get the Sensor value assigened to the Sonar_Alt variable everything should work like in the standard sonar approach. Sonar_Alt is shown in GUI debug2 in the posted sketches.

You have to use an analog pin and request the value in Sonar_Update + assign it to Sonar_Alt in cm.

Waldmensch
Posts: 31
Joined: Sat Dec 31, 2011 12:10 am

Re: Integration of the MaxBotix MB-1200 Sonar Device possibl

Post by Waldmensch »

Do you have an example code for this device on Arduino?

Post Reply