The easiest way to program the most powerful robots.
Use technologies by leading industry experts.
ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.
That's great but you need to write a script like below (DJ's code for the mpu6050) in order to use it the way you saw on the video DJ made of JD getting up after falling over... This is for the MPU6050 not for the MPU9150, however the code can be easily adapted to work with the MPU9150
I know... the example is for the mpu6050 ... but tweaking it a little and it will work with the 9150,,, Download the Example Project from the cloud for JD and the MPU650....
nomad TMBS , you are very close , yes use the MPU9150, but first add an MPU9150 control to your project. Then look at the variables in the MPU9150, they are not the same as the MPU6050. Try this,
Nomad will post the working script. For some reason, the variables were not recognized in the script (even using the correct names). We had to assign new variables and then assign these variables the values from the AccelX and AccelY variables and then use the new variables in place of these in the script. He will post it and you will see what I am talking about. Weird.
Code:
in his video and text it chows mpu 9150
but i try yours.
Code:
Code:
Try this,
ControlCommand("MPU9150", Init)
sleep(100)
:loop
ControlCommand("MPU9150", RunOnce)
$initheading=round($CompassHeading,0)
print($initHeading)
print("AccelX AccelY AccelZ CompassHeading")
print($accelx + " " + $accely + " " + $accelz + " " + $initheading)
print("CompassX CompassY CompassZ")
print($compassx + " " + $compassy + " " + $compassz)
print("GyroX GyroY GyroZ")
print($gyrox + " " + $gyroy + " " + $gyroz)
sleep(1000)
goto(loop)
Code:
Code:
how long your gyro works ?
I have the Ez Robot 4-in-1 Orientation Sensor and after a few minutes my Controller cut the W-Lan connection and freeze.
It works fine for a while but then ..
regards
Marty
i just tested for about 10 min,no disconnecting
did you use the script from d.cohran?
and i use a router from EnGenius N 300 mbps