Using ports for LED brightness

So i have a preject were i have to control RGB leds, and I have to use 12 ports to control each color (4 different LED) can i use any of the arduino uno ports to do so? I ask this because I know not all ports have PWM, in case i can't wich alternative do you guys recommend?

Common 4-pin RGB LEDs need three PWM pins per LED if you want to control brightness of each colour.
A string of addressable RGB LEDs only needs one Arduino pin.
Addressable LEDs come in all shapes and sizes, even in common 5mm.
Leo..

I want to control a 4x1 RGB LED matrix, this means i have 12 different LED to control, the problem is I want to control each color brightness so i can make any color I like, researching i bit i found multiplexing with MOSFET’s but I can’t figure out how to write the code, the thing I’m looking for is a simple code where i can just change the brightness value to change colors, heres the schematic

Wawa:
Common 4-pin RGB LEDs need three PWM pins per LED if you want to control brightness of each colour.
A string of addressable RGB LEDs only needs one Arduino pin.
Addressable LEDs come in all shapes and sizes, even in common 5mm.
Leo..

There are no 5mm ones in my country, sadly

Iluminacion Arcade.png
I think coding for that with software PWM is going to be quite a challenge.

Given that some additional components - in this case the FETs - will be required, I would suggest you "do it properly" and either just use four "Neopixels" - undoubtedly the simplest approach and plenty of code to hand - or use a device purpose- designed for the job such as a PCA9685 module.

Also you show an ATmega328 on its own. Much easier and generally cheaper, to use a cheap Chinese Pro Mini clone. In any case you will need some sort of programming adapter.

I was reading about the module online and it definetly seems way easier, I'll update any progress, for now thanks a lot

Eriol123:
There are no 5mm ones in my country, sadly

And no postal service either?

Do not cross post please.
Topics merged.

Paul__B:
Iluminacion Arcade.png
I think coding for that with software PWM is going to be quite a challenge.

Given that some additional components - in this case the FETs - will be required, I would suggest you "do it properly" and either just use four "Neopixels" - undoubtedly the simplest approach and plenty of code to hand - or use a device purpose- designed for the job such as a PCA9685 module.

Also you show an ATmega328 on its own. Much easier and generally cheaper, to use a cheap Chinese Pro Mini clone. In any case you will need some sort of programming adapter.

Hi it's me again, so, I'm already working a bit with that idea right now, so i found a library called fast LED, is it possible to use it with the PCA9685 module?

so i found a library called fast LED, is it possible to use it with the PCA9685 module?

No.

It is for addressable LED strips or LEDs that contain controller chips.