How to choose a MicroController by westfw
Featured
It used to be that the number of different microcontroller chips available to the hobbyist was pretty limited. You got to use whatever you could manage to buy from the mail-order chip dealer, and that narrowed down the choice to a small number of chips.

But times have changed. Digikey lists over 16000 different line items under a 'microcontroller' search. Which one should a hobbyist with no particular prior experience choose?

Here are some hints. These are particularly aimed at someone trying to pick a microcontroller to use for the first time at least partially as a learning experience, rather than someone who wants to accomplish a particular task.

Update 2009-01-28: This Instructable was recently mentioned in some popular blogs, and is getting a bunch of new readers. Be sure to read the 'comments' made by other readers and the responses to them; there's a lot of value in those comments...
 
Remove these adsRemove these ads by Signing Up

Step 1: What IS a "Microcontroller" ?

If you ever took a very introductory computer course, you probably learned about the major components of ANY computer:

  • A Central Processing Unit or CPU. The part that actually performs logic and math
  • Memory. Where the computer stores data and instructions
  • Input and Output or I/O. How the computer moves data between its other components and the real world.

A microprocessor uses microelectronic fabrication techniques to shrink the CPU to a very small size; usually a single "chip."

A microcontroller uses the same techniques to shrink the entire computer to a single chip (or very small module.) CPU, Memory, and I/O all in a little package as small as a grain of rice. Just connect up power and it starts doing its thing; computing and talking to the world. Usually the I/O on a microcontroller is aimed at "low level" hardware like talking to individual switches and LEDs instead of keyboards, internets, and displays (like your desktop computer.) A microcontroller is just the thing you want, if you want to talk to individual switches and LEDs...

1-40 of 174Next »
melissasue says: Dec 26, 2012. 12:54 PM
We were discussing this very topic on the Digi-Key TechXchange forums the other day: http://www.digikey.com/techxchange/thread/4280. If you need help selecting a microcontroller for a specific project, the folks there are a big help!
r0b0t1 says: Jun 22, 2012. 2:48 AM
I'm not sure if anyone will read this instructable, or this comment, any time soon... But I must warn you. Stay away from Zilog. To put it nicely, actually *using* their chips is... not easy.

I've tried to diagnose the problem, but their help desk is no help and by this time (2012) they haven't updated most of their line. It is sad, because a lot of the chips actually have fairly nice features (high drive IO pins, to name one that is hard to find, and a good amount of timers, something I've only seen on SiLabs 8051s) but are impossible to use off of the development boards.

If anyone has solved these problems... I've got some ZNEO motor control µCs laying around I still want to use. Help!
ebidk says: Feb 10, 2009. 12:50 PM
Very nice instructable :)

You could also add http://maxim-ic.com to the free sample list, they have some nice things like DS80C390 and DS80C400 :)
seefriek says: Nov 3, 2011. 12:39 PM
These are 8051 core processors, and are very nice.
denilsonsa says: Oct 17, 2011. 5:38 PM
After doing a very small project using PIC16F870 and doing a big project using ATmega8, I've written a comparison between AVR and PIC on my blog:

http://my.opera.com/CrazyTerabyte/blog/2011/09/08/comparison-between-microchip-pic-and-atmel-avr-microcontrollers

I hope it's useful for other people as well.

TL;DR: In my opinion, AVR is better than PIC.
VIRON says: Apr 3, 2007. 3:20 PM
8031 and 8032 is cheap, can be pulled as a 8051/8052 and bootstrapped from 64K each of RAM and ROM, if you have an eprom programmer. Eproms are cheap nowadays and I once built my own eprom programmers and was able to erase them on a fluorescent "blacklight" tube overnight, when I was REALLY unable to afford new equipment. Every non-USB keyboard probably has an 8048 chip, which may be EPROM compatible, but with limited external memory and different instructions, and has been around since the days of ATARI 2600. MicroProcessor mode systems just require extra wiring for address and data buses and separate i/o and memory but are otherwise doing the same things as MicroControllers. The chips I just mentioned have both modes. Many others do too. The art of emulating unsupported i/o is called bit-banging, which is easy for serial (except USB, ethernet, and other monsters), challenging for video, and annoying are those monsters which have wasteful complex protocol overheads that drive me nuts and slow everything down.
C.D33 says: Jan 8, 2011. 1:01 PM
Entertaining, VIRON. I just happen to have an extra keyboard lying around. Could you direct me on how to build an EPROM programmer- the circuit side? This question almost 4 years later.
westfw (author) says: Jan 8, 2011. 1:30 PM
You understand that you need the microcontroller from the keyboard (that "maybe" is the correct type), PLUS an EPROM (and maybe RAM) chip that you have to buy, plus a couple of "glue" chips and a couple dozen wires or a PCB to connect it all. It's sort of an entertaining exercise if you've harvested the components from trash, and the alternative is $30 "new" chips (that still need those extra components), but that has long since ceased to be the case. Even if you were to want to experiment with the older architectures, the cost for a flash version of the 8052 (new) is about $2 (http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=AT89S52-24PU-ND )
akusumakar says: Aug 1, 2011. 12:07 PM
go for p89v51rd2 make a simple development board interfacing max232, it is d best
signalelektronik says: Jun 27, 2011. 2:31 PM
I've use ST ARM module. STM32VL Discover kit very Succesfull. http://www.signal.com.tr/arananurun.php?urun=STM32VLDISCOVER&&id=129339
STM32VLDISCOVER.jpg
elias.alberto says: Jun 12, 2011. 5:18 AM
What about the STM32F103 series? Not so hobbist-friendly because they don't have DIP packages, but they seem to be very reasonably priced (cents more than 8-bit atmega48v) and a performance beast, having 32-bit ARM cores and reaching 72 MHz. I have no idea if are there free IDEs and cheap ways of "burning" the mcus, though. Anyone ever had any experience with them?
panic mode says: Dec 30, 2010. 10:43 PM
very nice article and fair review,
i've been using PIC AVR Zilog and now Rabbit
tokomikon says: Nov 12, 2010. 2:53 AM
I use ARM microcontroller.


Regards,
Dave T.
ATmega8535 | ATmega16 | ATmega32 | AVR USB ISP Seller
shaggs31 says: Nov 2, 2010. 5:49 PM
Thanks for the info. I really like free stuff!
Goddard007 says: Sep 25, 2010. 12:51 PM
Thanks for all the information. It really helped me out.
jastreich says: Jan 28, 2009. 7:35 AM
You mention Parallax;s Basic Stamp, but you missed their coolest and most useful two MCUs. The SX and Propeller. The SX is sort of in the Basic Stamp family, but it runs assembly and I think it is a RISC chip. They are cheap, easy to program and are less "hobby" than the Basic Stamps or Javalin chips. The Propeller can run Assembly natively or interpret Spin out of the box, it has 32 general purpose I/O lines which are accessible on all 8 Arithmetic Logic Units (cores they refer to as "cogs").
westfw (author) says: Jan 28, 2009. 8:30 AM
There is a SX-based Stamp, IIRC. Otherwise, I'd describe the SX and Propeller as being sufficiently "far from mainstream" as to not be good choices for a beginner...
coilgunman222 says: Sep 21, 2010. 1:54 PM
I'd agree, while I love the propeller IDE and programming language, it is totally importable across architectures, as nothing else uses their proprietary spin code. However, they now have a C compiler for the Propeller, so it may not be as bad a choice for a beginner as it used to be.
devinmccloud says: Aug 5, 2010. 6:48 AM
I would like to see a start to finish tutorial on recovering parts from old boards, reading the data sheets and learning what the individual chips are capable of doing. I have hundreds of chips from Motorola to Toshiba sitting around that i removed from electronic boards. It would be nice to know where to start to use this stuff.
WVvan says: May 18, 2010. 12:37 PM
This is instructable is just what the doctor ordered. I want to get into microcontrollers and spent several hours reading piecemeal accounts trying to gather enough information before I found this most excellent write up. I should have know that Instructables was the place to start.

FYI - this link is broken: "Trip report to an Early TI seminar"

Double Plus Good.
westfw (author) says: May 18, 2010. 2:26 PM
Thanks!  Broken link fixed (geocities went away...)

duct tape says: May 31, 2010. 9:04 PM
RIP geocities
You will be missed T_T
WVvan says: Jun 1, 2010. 10:37 AM
Another bad link.
Step 10.
Device list at AVR Freaks
westfw (author) says: Aug 3, 2010. 9:53 PM
honestly, this instructable was mostly about relatively SMALL microcontrollers, where most of the electronics of the entire project is in the single chip. Your project sounds more complex than that (and not at all an ideal introduction to microcontrollers or hardware in general for a person with your background.)

You could look at the modules that claim to run JAVA or JAVA-like programs, for example: http://www.systronix.com/store/tini.html
Or linux/android Single-board computers (Beagleboard ?)
Or even a conventional laptop or DC-powered PC-class machine, perhaps with things like Arduinos to use for real-world interfacing...

duct tape says: Aug 3, 2010. 10:45 PM
double post :)
westfw (author) says: Aug 4, 2010. 12:45 AM
Huh. It WASN'T, it had different text. Honest...
Anyway: that link isn't bad, it's just (now) an empty page (with a referral to a relevant page at Atmel.) There are hints that it might come back, so I want to leave the link here alone...
thegoogleist says: Aug 2, 2010. 8:08 PM
Ok, I am so confused, I have been looking around for the better part of a day now trying to make sense of this all. You see, where I work we are converting a gas powered go-kart to run on hydrogen, and to manage the fuel system, which is quite complex actually, consisting of several different stages of fuel, we needed to code our own fuel system controller. To do this, one of the other people working on the project was going to use one of the Renesas M16C microcontrollers to do this, but he moved, and now, as the only one on the team with any programming experience, the job has fallen to me. Now granted, I am an amateur Android developer, but the way things are done with these microcontrollers is truly baffling to me. So basically, my boss has said that we can get whatever other controller we need for the project, but it needs to be done fairly quickly. What microcontroller or any other type of product can I use to accomplish this task in a timely manner, going from average Java knowledge, minimal C++ knowledge, and no microcontroller/computer hardware design knowledge? I know this topic is old, but I didn't know where else to ask. Thank you so much!
westfw (author) says: Aug 3, 2010. 9:51 PM
honestly, this instructable was mostly about relatively SMALL microcontrollers, where most of the electronics of the entire project is in the single chip. Your project sounds more complex than that (and not at all an ideal introduction to microcontrollers or hardware in general for a person with your background.)

You could look at the modules that claim to run JAVA or JAVA-like programs, for example: http://www.systronix.com/store/tini.html
Or linux/android Single-board computers (Beagleboard ?)
Or even a conventional laptop or DC-powered PC-class machine, perhaps with things like Arduinos to use for real-world interfacing...

bigjeff5 says: Jul 11, 2010. 8:22 AM
I know this post is a couple years old now, so chances are things have changed a little since you wrote it, but I have to disagree with your assessment of the "module" type setups (arduino, picaxe, etc) as being bad for learning about microcontrollers in general.  I personally have been using an Arduino for about a week and I have to say what I've learned about the ATMega controller, and microcontrollers in general, is nothing short of amazing to me. 

Before the Arduino, these things were black boxes, and while I had an interest in electronics I had nearly zero working knowledge.  Now I feel relatively confident that I could read some reference material on an Atmel chip and work out how to utilize it in a project without the Arduino platform.  Other brands would likely take a little more work getting used to the differences, but it now definitely feels within my reach, whereas before I didn't even think such a thing was possible.

That's the power of boards like the Arduino and other hobby boards - they abstract away the nitty gritty, but it's only one layer of abstraction, so that learning the nitty gritty isn't a huge leap if that's what you want to do.  I'm pretty sure that's what I'm going to do, but like I said I've only been into it for about a week so far.  Even without learning the absolute bare metal workings of the chips, though, the Arduino and others can do anything their respective chips can do, you're simply locked in to certain chips lines. 

The hobby boards allow you to play with microcontrollers without making you start from scratch, which is a significant barrier to entry.  It makes microcontrollers significantly less accessible.  Plus, while the brand-name boards may be $30+, you can easily find kits for less than $15, and if you move certain functionality off board (like the USB or Serial connection) you can drop it down to below $10 - about what you'd spend to use the same micro-controller without the platform.  And once you know how the board works, incorporating it directly into a project board is no problem at all and does not cost much, if any, more than it would to use the microcontroller directly.   At that point you're only paying for parts.
chazpdx says: Jun 5, 2010. 10:01 PM
I recently used a PICAXE18x for a school project. I needed something cheap, easy to learn, and easy to get setup. The PICAXE turned out to be the best choice. It kicked butt, was really easy to program, really cheap to set up, the chips are really cheap, and it was powerful enough for what I was doing. It was the first time I'd really played around with a microconroller, and I had it working the day I got it.
Tuxifant says: May 2, 2010. 1:12 PM
Well done! I've been reading some off-the-net material about these things before but this instructable sums the thing up - compact and informative.
Archive555 says: Jan 2, 2010. 6:10 AM
This is by-far the most comprehensive, understandable, and informative Instructable regarding electronics I've ever seen. Without even actually including something to build, as most electronics Instructables do, you've far surpassed my expectations of this guide.

You've helped my decision alot, as I was using AVRs from Atmel, and was experimenting with Arduino, but was thinking of switching to (or expanding to) Pic, as it is far-wider spread, and more comprehensively documented, and you guide re-affirmed this for me.

As I type this, I've ordered a Pic starter kit, including some Pic chips of various sizes, a programmer, and a book detailing some simple, beginner-level circuits. Thank you very much for this extremely well-written instructable!

Bravo!
DavidRobertson says: Jan 28, 2010. 12:55 PM
 AVRs are becoming more and more popular than thy ever were. Just interested, what PIC starter kit did you buy?
westfw (author) says: Jan 2, 2010. 2:59 PM
Thank you!  Don't forget to read the comments as well as the instructable itself; I was very pleased with the level of additional contributions via the comments threads...

ngenius says: Dec 26, 2009. 9:49 AM
Just a great article/write-up/instructable end-to-end. 

Excellent Job.
thebear1 says: Oct 6, 2009. 8:53 PM
great write up give me some good places to start on microcontroller's thanks
johngineer says: Oct 6, 2009. 5:50 PM
I've been working with MCUs for a while, but I recently started a new project with vastly different criteria to anything i'd done before, and this provided a nice step-by-step with regards to choosing the brains of the operation. Thanks!
cgosnell says: Jul 30, 2009. 1:45 PM
I have had very good experiences with Freescale so far. Not only for small quantities of their microprocessors, but also other chips like motor drivers, supervisor chips, etc... Their e-mail assistance has been very good also. My one problem was using the Codewarrior IDE. It was recommended by Freescale as an IDE, but cost more than the project I was developing, and the 'Free' version had features that timed out after a period of time (memory size limits, and or app 'beans') that made me vary wary of using this. In the end, I waited for the software 'free trial' to time out and then I know the features I have now will not expire unexpectedly. The other cost limitation is for the JTAG or BDM interfaces that are used for programming. These can also be quite expensive, and sometimes are processor specific. Lastly, as long as you can get SOIC chips, you can find sources on ebay that sell SOIC to DIP converters that are quite a lot less expensive than Digi-Key or Mouser. (No disrespect meant, they are great sources) I have yet to burn out an SOIC chip during soldering to the adapters, but you have to remember to do a continuity check on all of the pins after soldering.
pharoah says: Jun 28, 2009. 7:47 PM
This instructable is essentially rewritten into an eHow article here http://www.ehow.com/how_2319026_choose-microcontroller.html without attribution. I believe eHow editors get paid for their submissions, so if you're not Tiesha Whatley you might want to send them an email about this.
westfw (author) says: Jun 28, 2009. 8:50 PM
The eHow article is very skimpy, and is little more than a list of the standard platitudes on this topic. As would be my instructable here as well, if each step were reduced to two sentences. It is my abundant examples, pithy philosophical comments (blush; I'm so modest), along with the general leaning toward non-professional users, and the multitude of user/reader comments reflecting real world experience that make this instructable stand out from the usual text-book list, IMO, and I do not feel plagerized by the eHow article...
1-40 of 174Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!