This post is to share a bit more details on how to control LED brightness using Raspberry PI and a bit of python code.

First of all, all the credit goes to Ingmar Stapel who posted all the details on his website https://custom-build-robots.com/ on how to setup LED dimmer and recently added the wiring diagram that makes it very easy to reproduce.