2

I am looking for a microcontroller that is small (like a attiny10) which is the smallest one I could find. Requirements I need: analogRead on 1 pin, 7 pins for analogWrite to micro leds so in total 10 pins (ground, power, analogRead, analogWrite). It's circuitry has to be basic no adding extra things like a crystal oscillator etc.. This will allow me to send a certain code to the recieving pin and then the microcontroller decide which led to turn on.

13
  • 2
    10 pins already rules out the smallest microcontrollers. Also I'm sure you have other requirements, like the minimum amount of (flash/ram) memory it has, does it have to be through-hole or surface mount. Since you're posting this on an Arduino site, does it need to be compatible with the Arduino IDE? Does it need to be an AVR processor? There are other ways to control individual LEDs that don't need an output pin per LED. Have you looked into those? – StarCat Oct 9 '20 at 14:15
  • 1
    The physical size of a microcontoller is mainly dictated by its pins. The distance between each pin is set by the package type. The typical hobbyist microcontrollers use the DIP package with 0.1" pin pitch. But when you have chosen a fitting microcontroller, which fits all your requirements, you can choose a different package, which is small enough for you. Though that will be difficult to solder, if you don't have the right tools – chrisl Oct 9 '20 at 14:22
  • 1
    PSoC 4000 are truly small (even tinier than an ATtiny10): about 1.5 x 1.5mm in a WLCSP package (16 "pins"/balls). They're still quite powerful: 32-bit Cortex M0@16MHz with 16KB of flash and 2KB of RAM. They don't have enough PWM outputs though... – StarCat Oct 9 '20 at 14:34
  • 1
    PSOC doesn't match my requirements. I'll study more of the specifics and get back to you. thanks <3 – Macaroni Oct 9 '20 at 15:21
  • 2
    For LED driving you don't need hardware PWM - software generated PWM is more than adequate. A little bit of jitter really doesn't matter for LEDs. – Majenko Oct 9 '20 at 15:39
2

I don't know whether it's really the smallest you can find but... The ATtiny84 has an ADC, more digital pins than you need, and is available in 3 mm packages (UFBGA and VQFN). There is also an Arduino-compatible core available for it.

8
  • The Attiny84 is huge compared to what I need sadly. I need something like the attiny10 but with more pins. preferabily avr – Macaroni Oct 9 '20 at 15:14
  • 3
    More pins = more size - unless you want to go BGA or chipscale, which is normally outside the abilities of hobbyists. – Majenko Oct 9 '20 at 15:31
  • @Macaroni, 3mm x 3mm is huge? – Gabriel Staples Oct 10 '20 at 1:50
  • @Majenko I changed my plans but I still need alot of pins so I might use BGA. I found 2 microcontrollers but I'll have to watch a video to learn about how to solder them because they are WACK. Which one is compantibe with arduino ide and which one should I choose etc.. I need alottt of pins its a big project. Like a mini computer is what im working to. – Macaroni Oct 10 '20 at 5:23
  • lcsc.com/product-detail/… 15 X 15mm 324 pin lcsc.com/product-detail/… 11 X 11mm 624 pin – Macaroni Oct 10 '20 at 5:23
0

I made a Arduino develop board with ATtiny3217, it has a 24-pin VQFN form factor, but as powerful as ATmega328p, with no external crystal and capable running at 20MHz.

If this is not suitable for you, look into the new tinyAVR family, they are the new generation of ATtiny with more functionalities than the older ATtiny family with the smaller footprint.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.