Hello world ,My name is Tarkesh ,i am currently working on a Quadcoptor ,the micro controller i am using is Arduino UNO,with 2Xbee radio modules,one xbee is set to a router and another a coordinator i am using router as a transmittor ( controlling device) via laptop(xctu software) or a remote made of/from arduino ,and coordinator as a reciever ,i am nearly towards the end of my project ,but sadly i am stuck in a problem ,
I want my quad to fly as steady as possible ,for that i used MPU6050 GY521 ,which has an accelerometer and gyro sensor ,I have been successful in getting normalized values from mpu6050 libraries ,and i have quiet an idea of how to work with arduino PID library,The only problem is my quad doesnt seem to work fast enough or to say work at all , i am using the PID as shown in the pic,i attached(in my code i was trying to stabilize pitch ,taking 2 PID loops one for angle and other for angular rate)
And in order to drive my quadcoptor to various direction i will just change the setpoint for pitch and roll,
this can be done in same way as sending command from xbee ,or sending Alphanumeric string where we can parse the integer for values ,and parse character such as 'F' for foward .
Sorry for modification just wanted to talk about remote i made -- so basically my remote is made of arduino UNO ,xbee ,and adxl 345 accelerometer and some push buttons , all stucked in a breadboard ,so i can control my quadcoptor by rotating the breadboard ,just like the one in mobile ,used to play games,i have attached the file for you guys.
Guys please look at my code below any help will be appreciated thnks
quadcoptor_UNO.ino (4.78 KB)
remote.ino (1.57 KB)