362Views6Replies

Author Options:

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

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?

Discussions

0
user
flixer

5 years 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.

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

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.