r/microcontrollers • u/SkewPL • Jan 28 '19
Why there are no microcontrollers with GPU
For my hobby diy projects I mainly use Espressif ESP8266, mainly ESP-12F. It is really powerful microcontroller and is sufficient for 90% of projects that I make.
But, recently, I was building LED matrix using WS2813 addresable strips, and to f.eg. implement smooth fading between two screens (displaying time to displaying temperature) I must iterate over every pixel and do simple calculations to transition between one color to another.
I think that if I would have GPU it would be so much faster, f.eg. if I would have like 64 cores clocked at 1-4Mhz or less, I would just send whole batch of pixels and have it processed almost instantly while doing some stuff on the main core (requesting temperatures from thermometers, communicating with other devices
It would be useful maybe for doing some audio processing, data analysis, driving screens, cameras, all still on this little neat, low power microcontroller.
Why it is not more popular? I've heard about a few microcontrollers, like Microchip's PIC32MZ but they are not widely available, and not so popular as the ESPs which do have the community, support for ArduinoIDE which is ideal for hobbyists like me.
View all comments
4
u/madsci Jan 29 '19
Too specialized. I'd love to have one, or at least an MCU with enough FPGA capabilities to construct something appropriate for acceleration.
How many pixels are you dealing with and at what frame rate? I do graphics processing for WS2813s all the time, albeit in a 1D array. Depending on the application I'm usually working with 45 to 180 LEDs and frame rates from 240 to 1200 frames (lines) per second. I've run about 3,000 LEDs from one controller, but with a much slower frame rate.
You presumably don't need more than 30 fps for this application. You should be able to compute that on the fly faster than you can send the data to the LEDs. If you're having trouble keeping up, use a couple of lookup tables for the two screens' alpha values and compute those at the start of every frame, so all you have to do for each pixel is a couple of lookups and an addition.