Since I know Arduino, I spend some of my time. I'm about 2 months about arduino. Here, like my previous problem (some solved in this awesome forum), Let me ask you in relation to the flow of working controlled self balancing robot.
Before I do something, 3rd question is "How do they work together?"
Here, understanding the circuit diagram and codes, I want to know exactly HOW bluetooth hc-05 controls the motor while the mpu6050 balances the motor.
If the power is ON then
The mpu6050 starts to balancing the robot by Kp, Ki and Kd to force motor to stable the body - can go forward or backward, even stop.
If bluetooth commands to go forward or backward .... What will mpu6050 do???
I assume that there must be new MPU6050 configuration, such as Kp2, Kd2 and Ki2, for bluetooth. What do you think?
When I want to write the codes, is this following flow correct?
If bluetooth commands then mpu2 willl motors will ...
I get stuck on this, really.