Instructables

Does anybody know a tiny MCU for PWM and USB Connection?

I need a microcontroller with 3 PWM pins, for an RGB LED. I also need to connect it to a computer using USB.
I`ve seen the attiny2313 has enough PWM pins for this, but is quite big. As I understand, the attiny 25 has just 2 PWM channels.
Does the attiny24(or 44 or 84) have enough pins for USB Serial comunication and 3 PWM pins?

flixer (author) 1 year ago
Thanks for the answers, but (as mpilch said) I only need an microcontroller, not an entire board. I want to put this little MCU and the LED in a candle or paper cube and send them as gifts for christmas.
What are you trying to achieve with this project? If you want the LED to fade through its colors then you can buy RGB LEDs that have that functionality built into them. Then all you need to do is add a small button battery and you can put them anywhere you want.

http://adafruit.com/products/679?gclid=CI6gvrPshbQCFYZM4AodY3gASQ
It wouldn't have to be bigger than the microcontroller. I was alluding to the IOIO board, so you can use the same processor.
You could always use the yo-yo boards. https://github.com/ytai/ioio/wiki
frollard1 year ago
I highly recommend the Teensy (arduino compatible) boards. They are extremely inexpensive, very powerful, and have lots of pwm.

http://www.pjrc.com/teensy/

Can't recommend them enough!
While an attiny in a DIP package may be too big there are other sizes. Buy one that is in an SOIC package should be more then small enough for you. You'll need to do some surface mount soldering but it won't be that hard to do.

Have you looked at the Arduino Nano? I don't know your size restrictions but its .73"x1.7" and has USB interface built in. With 14 I/Os and 6 of them being PWM it should more then handle your needs.