I’m making a drone from scratch and I’m using basic programming in arduino IDE and for communication i’m using my laptop to control it’s thrust, pitch, roll and yaw and right now i’ve directly connected to laptop, later i’ll use Node MCU to fly the drone.
But in the coding, I’m having a doubt that how do i control each motors/ESC’s to perform pitch and rolling movement. Here is the code that I’m working on.
And also, I’ve MPU6050 code and now I need to integrate it with my ESC code, But I need some advice that " how should i do?"
I’m uploading my IMU code and the one i tried to integrate.
Pls suggest what should i try next.
ESC_calibrate>>> motor code
MPU6050_gyro_pitch_roll_yaw >>> mpu6050 code
mpu_and_esc >>> motor and mpu integrated code that i tried.
ESC_calibrate.ino (2.23 KB)
MPU6050_gyro_pitch_roll_yaw.ino (1.19 KB)
mpu_and_esc.ino (5.76 KB)