3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Microcontroller Help!!!

I want to connect a microcontroller to LEDs to make them blink. I know how to wire LEDs and how to write computer programs, but I don't know which controller to use, where to get it, or how to wire it. Any help?

15 comments
sort by: active | newest | oldest
Jul 29, 2008. 11:50 AMguyfrom7up says:
just a personal preference, use AVR, you find a lot more help on the web, I think the software is easier to use, it's more powerful, more widely used, and more power efficient
Jul 29, 2008. 11:59 AMwhatsisface says:
Or something like a Basic Stamp II or Picaxe is something simpler is required.
Jul 29, 2008. 1:58 PMguyfrom7up says:
I've never used Picaxe, but Basic seems a bit expesive to me, at that point I'd wrather get an arduino or an arduino clone
Jul 29, 2008. 9:01 PMastrozombies138 says:
I've somewhat asked the same question lately. Some instructables post a code for lke a regular 555, some use AVR. I have never programmed before. I assume avr can only be programmed on AVR chips? and a regular ne555 can only be programmer on like a JDM?
Jul 30, 2008. 10:59 AMwhatsisface says:
A 555 isn't a uC, it's just a chip that produces a digital pulse, a timer.
Jul 30, 2008. 11:18 AMastrozombies138 says:
ah, so for all my projects I wont have to worry about programming microcontrollers, excluding projects that require code of which i could put onto an AVR?
Jul 30, 2008. 11:21 AMastrozombies138 says:
could an AVR program a picaxe?
Jul 30, 2008. 11:44 AMguyfrom7up says:
well, here a brief run down a lot of people (when programming) program in C. C is a language for code C is then compiled into a hex file, which is then programmed into the uController For the 555 speed and duty cycle is just based on 2 resisors and a capacitor
Jul 30, 2008. 12:05 PMastrozombies138 says:
alright, but do AVR, picaxe, stamp etc... all use C-compilers? Or if I want to do a project that requires an AVR and a project requiring a Picaxe, I would need different programmers and compilers.
Jul 30, 2008. 5:24 PMgmoon says:
I'm no expert; I've used AVRs and some Cypress uCs... But yeah, generally different microcontrollers all require specific hardware to upload data into the chips. Sometimes it's very simple, sometimes not. But different, yes. If you can build your project(s) with only one "flavor" of micro controller, that's a plus... Same with programming languages. AFAIK, all "bare" micros (as they arrive from the factory) can each be programmed with their respective assembly languages for free. Not so for higher-level programming languages (BASIC, C, etc.) Most of those higher level languages cost $$$. AVRs are an exception-- avrgcc is a completely free C compiler. However, some BASIC and C variants have free demo compilers; the PIC, for instance. Usually there's an upper limit to the code size the "free" compilers will produce--but you'd be surprised how much code you can cram into 2K or 4K.... Assembly language code isn't portable, of course. The source code for languages like C won't be portable, either. Micros are quirky, and compilers use proprietary ways to solve issues (and save memory) that would never be added to the ANSI C specs... You couldn't take the source code from a avrgcc project and compile that with Imagecraft C, even for the same AVR chip. Or vice versa. Forget about using code from a PIC in an AVR (doesn't imply that much of the code couldn't be adapted, of course.) I differentiate the "bare" micros from the "composite" ones: those that add something to the bare chips to create a "new" microcontroller. Some, like the BASIC stamp have complex hardware additions. Others, like PICAXE or the Arduino can work alone, but essentially have souped-up firmware installed (almost a mini-operating system.) But even those chips need specific hardware--usually as a convenience (the standard programming interface for the Arduino is USB--but the pre-programmed AVRs need support hardware such as a crystal, which the "bare" chip doesn't require.) You can program an Arduino with a simple ISP interface, but at that point, you're in essence using it a "bare" AVR chip...
Jul 30, 2008. 5:09 PMzachninme says:
Each target platform (AVR, PIC, Windows) that uses C will have a different compiler. Different chips, however, will usually use the same compiler. You can also program in assembly, which lets you get right down into the code, but I don't reccomend it for beginners :P
Jul 30, 2008. 1:45 PMwhatsisface says:
Picaxe are programmed in BASIC, usually via the serial port of your PC. I built my rig myself, it's only a couple of resistors and a home made cable needed to program it. The code is very easy to learn and there's a good community on the PICAXE forums for those willing to learn.
Jul 30, 2008. 12:36 PMguyfrom7up says:
hmmmm, I'm not sure, I think the most knowledgable person hereon the topic is gmoon
Jul 30, 2008. 4:51 PMgmoon says:
collectively, everyone here constitutes a pretty decent knowledge base...

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!