Electronic – How to make a Microcontroller choice

microcontroller

I would like to find a microcontroller but I don't know how to make a choice!

Currently I know I will need my device to be able to:

  • Check the battery level
  • Include a timer
  • Have at least two interrupts
  • Supply 3 devices sometimes with different level power (2 different motors)
  • Small
  • Low Power
  • Have I2C

How can I go about figuring out what microcontroller to use?

Best Answer

There are dozens of microcontrollers that fit that bill. Your choice may depend on some of the following criteria:

  • price
  • availability, especially if you need them in production quantities and for long-time production. In that case choose a supplier who doesn't often outphase controllers.
  • development tools. That's both software and hardware. These days many controllers have on-chip emulation, so that you don't need expensive emulators anymore. Some manufacturers provide a development environment that allows you develop C programs, for others you need third-party tools which may be costly. Many of the more expensive IDEs have a limited version for free or for a small fee. Usually limits the amount of code it can compile, though sometimes the limit can be as high as 32kbytes, which may be more than enough for your needs.
  • ease of use. Some microcontrollers are so versatile that it seems they can solve any problem, but have a long learning curve. You don't want to study a 2000 pages user manual to write a "hello world" program.
  • good (FAE) support. That will be more important for professionals, distributors don't care about hobbyists.
  • package. You will need to find a package that is small enough to fit your needs while being big enough to be able to solder.

Your final choice will depend on how important each of these parameters is for you.