I am looking for the right microcontroller to use in my project.
Requirements:
I need the smallest possible size.
I need 8 digital pins (I will be using these for 4 lines of serial communication)
I need 3 analog or digital pins (I will be using these for 3 LEDs)
b707
November 25, 2022, 6:39am
2
Do you talk about controller size or board size?
It means that you need a controller with 4 UART rather than just 8 digital pins
Microcontrollers like the ATmega328P. I need the smallest possible microcontroller size.
With SoftwareSerial, 8 digital pins can be used for making 4 UART.
Hello grayrawlins
Take a view here to get some information.
This is a non-exhaustive list of Arduino boards and compatible systems. It lists boards in these categories:
Where different from the Arduino base feature set, compatibility, features, and licensing details are included.
Many versions of the official Arduino hardware have been commercially produced to date:
pins vs soldering
b707
November 25, 2022, 6:55am
5
"smallest" it's not specific. What size do you need in millimetres?
Is 7x7mm atmega328 too big for you? it meets your requirements
LarryD
November 25, 2022, 6:59am
6
This has no meaning.
You need to say something like this:
My enclosure is 5CM by 5CM by 2CM the controller must fit in this size, the battery is external.
I am asking a general question. The size I need is the smallest size that fits my requirements.
Yes, ATmega 328 is pretty small, but is there a microcontroller smaller that fits my requirements?
b707
November 25, 2022, 7:11am
8
raspberry pico QFN56 ?
I never chose controllers by size. Do you think a difference of 1-2mm matters for homemade device?
It seems to me that you are asking about "small controllers" without having any expierence to work with them. Will you be able to solder at least QFP32 atmega328?
@LarryD your response has no meaning.
I am asking, what is the smallest microchip that has 8 digital pins and 3 analog pins?
I am not asking, what microchip will fit an XYZ enclosure? There could be many chips that do that but I need the smallest.
What are the 4 thing's you are communicating with via Serial?
grayrawlins:
The thing that is being communicated is irrelevant to my question.
Potentially, but if you let us know what you are communicating with, then it could save you a lot of hassle, as software serial can indeed be very limiting
grayrawlins:
Why can't anyone just answer my original question?!
Ok, how about an ATTINY3216 in a VQFN package at 4mm x 4mm?
1 Like
noiasca
November 25, 2022, 7:41am
22
check the ATmega 4809 in TQFP (7x7x1 mm)
1 Like
b707
November 25, 2022, 7:49am
24
grayrawlins:
I am not asking about the limitations of SoftwareSerial.
It would be better if you asked
Yesterday you could not connect two arduinos with the simplest sketch, but today you are sure that you can ensure the operation of 4 ports at once?
Well, you could be falling into a common beginner trap of interconnecting multiple close-range Arduino’s together, due to inexperience in multitasking. This can make things extremely overcomplicated, especially when dealing with half-duplex software serial (can’t send in 2 directions simultaneously).
Micro controllers takes important positions in all over electronics world, microcontroller gets more power, abilities and it rises day by day. Some applications like IoT (Internet of things), wearable electronics…
Est. reading time: 1 minute
No idea which one will suite your needs. Also no idea which one will be programmable with the Arduino IDE but that wasn't a requirement.
1 Like
grayrawlins:
Perfect, thank you!
The MCU ATTINY3216 has two Hardware UART Ports (Fig-1). How are you going to have other two UART Ports?
Figure-1:
This ^^^^
Small size with four hardware serial ports, more flash memory and ram than an atmega328.
2 Likes