Close

Benefits or Limitations: The ATmega 328p Pro Mini

A project log for Searching for a better Pro Mini

I LOVE the Pro Mini! But it has limitations. To overcome some of them, I’m designing the Pro Mini XL & Pro Mini nRF52. What do you think?

andyAndy 04/26/2019 at 11:330 Comments
"Any benefit can become a limitation."
                                                   (Anonymous)

I’m sure you’re all pretty familiar with the ubiquitous Pro Mini.

Or at least, this guy, his cheap (~$2) counterfeit cousin!

Based around the ATmega 328p, the “trusty” Pro Mini quickly became a feature of many of my DIY electronic projects.

There wasn’t a sensor or actuator I couldn’t connect to it via some sort of associated circuitry.

And then there were the libraries!

Awesome people around the world had written code to interact with almost anything and everything else.

But that was sometimes where I would hit my first limitation.

32KB Program Memory

Over the years, feature-creep™ has resulted in some of my projects pushing the limits of the 328p’s 32KB program memory.

For example, pan/tilt stepper solar-powered sun-tracking long-range wireless over-the-air programmable crop monitor...with camera and display anyone?!  ;p

Once I started stacking libraries, adding features and increasing the number of external entities I was interacting with, my compiled code size (understandably) started to balloon.

Sketches that would get too far above 90% of the program memory fell prey to memory leaks.

Others would, of course, simply exceed the compiled 32KB limit altogether.

At first, I would attempt to fix the memory leaks, then it was optimize the code, add #IFDEFs to debugging portions and finally play with compiler flags.

If you’re wondering at this point whether all this effort was worth it, well, quite frankly so was I!

Learning to write better code is great.

But I could see the other members of the ATmega family of microcontrollers like the 2560, 1284p (and even the 644p) glittering off in the distance like so much fool’s gold.

[To be continued with…]

No Built-in Wireless

The Need for Speed

Running Out of GPIOs

Fixed Pin Position Interfaces

That Regulator & Power LED

Why Pin-Compatible?

Why Size-Compatible?

Discussions