Hi Everyone,
I am currently using my uconsole with a CM4 paired with HackerGadgets AIO V1 extension board. I would like to add a heatsink and fan as the uconsole gets very warm to the touch under load or while charging. I purchased this 52Pi heatsink with fan module that has 4 wires for V,G,PWM, and TACH. I would like to control the fans speed with PWM and understand that there are essentially no exposed/available PWM pins via the GPIO or on the AIO V1 extension board.
Since the AIO V1 extension board has an internal USB-C port, I thought about adding a fan controller that would be both powered and controlled via USB. I didn’t find any existing solutions specifically for this use case but came across this USB-C fan controller for 5V fans. My plan is to build a similar pcb based on either a STM32 or RP2040. To my understanding, I would need to write the firmware to convert data packets to PWM output. Does this sound like a viable solution? I am well in over my head but would like to use this opportunity to learn pcb design and writing the firmware. Please let me know if this sounds like a viable solution, a waste of time, or if there are better existing solutions.