i dont get a full functioning code to make a stabilizing platform....
i use 12v 200rpm motor(X2), MPU6050, GY521
how to connect more than 2 motors at a time and control them with the gyro????
help me
i dont get a full functioning code to make a stabilizing platform....
i use 12v 200rpm motor(X2), MPU6050, GY521
how to connect more than 2 motors at a time and control them with the gyro????
help me
Read this. It would help a lot.
let me narrate the project...
im just doing a self balancing platform and using arduino uno MPU6050, gy521 and dc motor or servos
which program wud u prefer-
1.self balancing robot
2.self stabilizing drone
3. some other??
Hi,
Welcome to the forum.
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html
How are you going to control the level of the platform?
Are you going to use a Stewart Table system.
Can you please tell us your electronics, programming, Arduino, hardware experience?
Thanks.. Tom...
Hi,
Do you have any code to work with?
Please answer the questions in post #3.
As we need to know your level of programming and what your hardware is?
Is this an eductional project/exercise ?
Tom...
Sorry I have to go, its after midnight here, Australia, I will check in the morning to see if you have received any help.
im not too good in arduino codes coz im new in here..
the program i wanna change is....
#include <Wire.h>
#include <Servo.h>
const int MPU=0x68; // I2C address of the MPU-6050
int16_t GyX, GyY; //Variabile int a 16bit
Servo ServoMot_X;
Servo ServoMot_Y;
void setup(){
Wire.begin();
Wire.beginTransmission(MPU);
Wire.write(0x6B); // PWR_MGMT_1 register
Wire.write(0); // set to zero (wakes up the MPU-6050)
Wire.endTransmission(true);
ServoMot_X.attach(8);
ServoMot_Y.attach(9);
Serial.begin(9600);
}
void loop(){
Wire.beginTransmission(MPU);
Wire.write(0x3B); // starting with register 0x3B (ACCEL_XOUT_H)
Wire.endTransmission(false);
Wire.requestFrom(MPU,14,true); // request a total of 14 registers
GyX=Wire.read()<<8|Wire.read(); // 0x43 (GYRO_XOUT_H) & 0x44 (GYRO_XOUT_L)
GyY=Wire.read()<<8|Wire.read(); // 0x45 (GYRO_YOUT_H) & 0x46 (GYRO_YOUT_L)
int PosServo_X = map(GyX, -16000, 16000, 0, 179);
int PosServo_Y = map(GyY, -16000, 16000, 0, 179);
ServoMot_X.write(PosServo_X);
ServoMot_Y.write(PosServo_Y);
Serial.println("Giroscopio");
Serial.print("Asse X : "); Serial.println(PosServo_X);
Serial.print("Asse Y : "); Serial.println(PosServo_Y);
Serial.println(" ");
delay(100);
and it'a an edu project
You deserve no help. You ignored completely the links given to you. If we give you any further help we will be wasting our time because you will ignore that too.
my bad......
and got it rectified though
athi11:
and got it rectified though
I don't see any evidence of that.