@MHefny i was wondering why you decided to NOT use the Hardware PWM units on the raspberry for PWM creation, but instead create the PWM with a external chip?
There are 4 available on two row pinheader, which would fit quite well for a Quadcopter usecase: PWM at Raspberry Pi GPIO Pinout
There are more available if one plans to build a custom CM4 board.
UPDATE: its actually only 2 PWMs signals but on 4 pins.
Hi,
This scenario may fits but only for quadcopter, and may affect the ability to run ardupilot app itself because of handling this pwm.
my latest solution which is much better is https://medium.com/@mohammad.hefny/ardupilot-linux-based-system-stm32-as-a-breakout-module-part-2-5db4ce7cfe3e which uses a complete co-microprocessor to generate PWM and other ESC signals. It also enables using other boards rather than RPI, maybe Mango -I hope-.
My solution is not final yet. It happened to be betaflight, but nothing is final yet.
Also I am not using the flight control system. I am selecting some libraries and building some.
Glad that you liked it.