I wonder if it looks like this because I don’t have the files of the motor and ESC parts. I understand what you said very well. Then we’re done when we replace the batteries with the power supply. I’m right, right?
No, the new parts are in the sketch and should be in the temp parts bin. I can also include them here just in case but they should load with the sketch. Also to be finished you need to select a new gyro part as the current one isn’t working in schematic (and likely won’t work unless you have a board the matches the connections in the part you have, the ones I see online are different.
edit
forgot to add the latest sketch and the parts.
esc-PCA9685-work.fzz (144.3 KB)
ESC-degz-Blu-30A.fzpz (4.0 KB)
degz-thruster-motor.fzpz (3.0 KB)
Note the 21V power supply needs to be able to provide a very large amount of current (7 x 30A) to power all 7 thruster motors at once. The 24V power supply is only 10A or so and is insufficient for the kind of currents those thrusters require.
Peter
For some reason, I don’t get those parts.
If the accelerometer can include HW-579, fine. It’s a more comprehensive sensor.
This part looks like it should be what you want.
I’ll let you figure out how to connect it in your sketch as I don’t know where it needs to connect to do what you want. If you post your sketch I will look it over.
Peter
SBecause I don’t know the pins of the module you sent
, let’s use MPU6050, something standard will suffice.
It is the same as the module you supplied the data sheet for I expect, they appear to be the same board.
There are several of these available though such as this one
A google search of the form “fritzing part MPU6050” will turn up others as well if that doesn’t suit.
Peter
I think it’s over after changing the accelerometer last time. Thank you for everything, you’re the man.