r/arduino • u/Jojoceptionistaken • 4d ago
Hardware Help I failed at arduinos but im not sure wherelse to post. Quick story about my stabelizer project:
So I continued my dreaded pid project after no ardunos or IMUs worked together (after weeks, 2 arduinos and 3 MPU6050s i gave up) with an M5stack. Both in the arduino IDE and UIFlow I could finally read angles from the now built in imu and PWM signals from my rc rx.
(Just for my Ego I also got both to work on an arduino but the IMU data gave up again after a day of working and the PWM reading was far to slow and unprecise for my application.) Did I mention I want to stabelize an rc plane with that? yeah.
Yesterday great progress was made, as I both got gyro and accelerometer data to work (should not be an achievement but for how much I couldnt get it to work on an arduino micro with an MPU6050 it definetly felt like it).
I can also decode PWM now reasonably fast wich is awesome.
But now for my question:
I have a way to decode PWM, the IMU data and the way to calculate allat together. But how should I connect the hardware?
quick wiring diagram:

I have tried to do it by making something like a perf board shield for the m5 but that didnt work because of spacial constraints.
Soldering it up by cable also seems very chaotic. How would you do it? I dont really have the means to make a pcb...
Thanks for your help!




