simple starter microcontroller

dpopiz

Diamond Member
Jan 28, 2001
4,454
0
0
no I have never taken an EE course.
I just know how to program in java and I used to make simple circuits when I was a kid and now I just want to learn how to use microcontrollers to do stuff

I want something that:
*can be programmed in C
*I can program by just wiring it up to my comp (serial or parallel port) without any extra hardware
 

SamurAchzar

Platinum Member
Feb 15, 2006
2,422
3
76
Get some kind of a starter kit. Many companies make that - look around.

As for the microcontroller selection, I'd say go with Atmel AVR. Lots of info on www.avrfreaks.com, too.

I'll try to post something more comprehensive later (at work now).

 

dpopiz

Diamond Member
Jan 28, 2001
4,454
0
0
Originally posted by: SamurAchzar
Get some kind of a starter kit. Many companies make that - look around.

As for the microcontroller selection, I'd say go with Atmel AVR. Lots of info on www.avrfreaks.com, too.

I'll try to post something more comprehensive later (at work now).

thanks!

man that looks intimidating!
I was hoping for something with 8 pins or so like Microchip makes
 

Bassyhead

Diamond Member
Nov 19, 2001
4,545
0
0
Off the top of my head, the parallax basic stamp kits might be good. They're easy to use and use a form of BASIC though, not C.
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Originally posted by: dpopiz
Originally posted by: SamurAchzar
Get some kind of a starter kit. Many companies make that - look around.

As for the microcontroller selection, I'd say go with Atmel AVR. Lots of info on www.avrfreaks.com, too.

I'll try to post something more comprehensive later (at work now).

thanks!

man that looks intimidating!
I was hoping for something with 8 pins or so like Microchip makes

The Atmel AVRs have more than 8 pins, but (at least for simple ones) a bunch of the pins are I/Os that you don't need to wire up (unless you actually want that many I/O lines). I used an ATmega8 for a class... IIRC, of the 20-something pins, you only have to wire up power+gnd (~3), RX/TX (~2, to program the device), RESET (1), and then however many of the I/O lines you want to use (see page 2 of this - the PA*, PB*, PC*, and PD* are just IOs).
 

dpopiz

Diamond Member
Jan 28, 2001
4,454
0
0
oh I see there are many different AVRs -- AVR is just atmel's name for a microcontroller like PIC for Microchip
 

apsd

Member
Oct 13, 2004
58
0
0
Hi,

If you want to get into real embedded programming, skip Basic/Javelin/* Stamp, skip OOPIC, etc.
PIC's are ok.
AVR's rule, and you have avr-gcc which double-owns. Microchip's C-compiler and example code sucks ass.

And Atmel does make small 8-pin AVRs but they are very limited and pointless. If you want to get started I recommend getting a cheap development board from SparkFun/Olimex ( http://www.sparkfun.com ).

Some good AVR chips: ATTiny2313, ATMega32, ATMega128. I'd get the ATTiny2313 for starting out, they're awesome (I have like 5).

I started out with AVR and now I've moved up into developing on ARM microcontrollers with the projects I'm doing, but I still use AVRs for everything else.
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
I started out with AVR and now I've moved up into developing on ARM microcontrollers with the projects I'm doing, but I still use AVRs for everything else.
These ARMs are pretty nice to work with. I used the DIP40 version for the same class I used the AVR in. They have LOTS of RAM compared to the AVRs, and are really fast. They're also expensive, and very easy to fry (as in, destroy).
 

Mark R

Diamond Member
Oct 9, 1999
8,513
16
81
Are there any free (or almost free) development kits (assembler, compiler and programmer) for ARMs?

The offical ARM software costs like $5k - with is a little more than I want to spend at the moment.
 

dpopiz

Diamond Member
Jan 28, 2001
4,454
0
0
Originally posted by: apsd
Hi,

If you want to get into real embedded programming, skip Basic/Javelin/* Stamp, skip OOPIC, etc.
PIC's are ok.
AVR's rule, and you have avr-gcc which double-owns. Microchip's C-compiler and example code sucks ass.

And Atmel does make small 8-pin AVRs but they are very limited and pointless. If you want to get started I recommend getting a cheap development board from SparkFun/Olimex ( http://www.sparkfun.com ).

Some good AVR chips: ATTiny2313, ATMega32, ATMega128. I'd get the ATTiny2313 for starting out, they're awesome (I have like 5).

I started out with AVR and now I've moved up into developing on ARM microcontrollers with the projects I'm doing, but I still use AVRs for everything else.

those are some cool kits, but it looks like Atmel's Butterfly is by far the most cost effective way to start -- lots of good features in a well integrated package and it's $20
 

flyboy84

Golden Member
Jul 21, 2004
1,731
0
76
I used a Cygnal 8051 microcontroller for my senior project with no prior experience programming microcontrollers...worked out pretty well.
 

ScottMac

Moderator<br>Networking<br>Elite member
Mar 19, 2001
5,471
2
0
Most of the manufacturers have "Starter Kits" which usually include a development breadboard, power supply utilities, (some include a C compiler), and many have an Integrated Development Environment (IDE) which act as an editor / debugger / complier interface ... some also do emulation.

The PIC starter Kits are pretty good, and cover pretty much everything from basic chip programming up to RF/wireless. They have a kit for US$35.00 thats pretty good, and attaches directly to a USB port. Half of the board is for build-up and can be detached.

The Atmel starter kits are also very good and cover most of their product range.

Motorola has a kit for their HC11 (12 too, I think) ... comes with IDE and C compiler.

Zilog has kits for their Z80 Acclaim! and Encore! chips. Both come with IDE and C compiler ... the Encore! kit comes with an Ethernet switch (the Encore! has a built-in Ethernet MAC). The Zilog chips are pretty zippy and have many "advanced" features (for a microcontroller ... )

The BASIC Stamp and clones are also pretty good for starters, but the chips are ~$35.00 each ... not cheap compared to the discreet MCs from the other products. There is a Stamp that programs in Java, but I think it's like ~$65.00 a chip. You can get BASIC Stamp kits through Radio Shack and places like Fry's with experimenter kits.

If you really want to jump in heavy, check out the BlackFin processor and kit. The Blackfin is used in things like audio / video processors ... very fast annd has it's own DSP.

Microchip (PIC) will sample some chips to you for free, the IDE is downloadable (free) from their site. The only real expense is the programmer ... the Microchip programmers start at ~$100, but there are third party programmers that can be built from plans for ~$10-15.00. The C compiler can be downloaded and used for free, but it crippled (# of lines of code ... something like that).

I use the CCS compiler for PIC, it has a pretty large library routines for most of the common interfaces (Dallas sensors, clock chips, AD/DA, etc). Their top package is the entire compiler suite (12, 14, 16, 18 series chips) and IDE. They also have compilers for Linux.

If you're looking at the PIC and Atmel ... check out the Warp13 programmer. It's also about $100.00 assembled, but can program all PICS, and most AVRs (DIP form factors standard, I think you can get adapters for other package styles). I think it's also available as a PCB or build-it kit for less.

Aside from the manufacturers direct, you can get most of this stuff through Mouser (www.mouser.com ... very large catalog), and you can also order the other chips (sensors, RT clocks, mux, etc.) and only pay the one shipping fee.

As mentioned, you can get gcc packages that will do Intel 8051-type chips and Atmel, and it's free ... usually in a *nix/BSD environment ... or Cygwin (*nix / POSIX environment under Windows ... ).

Finally, check out the web sites for the manufactureres you're most interested in. Many /most / all have some sort of "road show" presentations they do all over the country. They frequently give out product (Microchip lays out tables full of almost everything they produce ... all for free) and also usually raffle off things like programmers, debugger / ICE modules, and dev kits.

BTW: I'm also "not an EE" and learned from scratch ... it's not too bad learning if you have even a little electronic and / or programming background. Books and hobby sites are a great help.

Have fun ....

Scott
 

dpopiz

Diamond Member
Jan 28, 2001
4,454
0
0
well the butterfly for $20 can be programmed by just hooking up to a serial port
 

cheesehead

Lifer
Aug 11, 2000
10,079
0
0
http://www.rev-ed.co.uk/picaxe/

It's a serially programmable PIC microcontroller with a basic interpreter. In other words, a BASIC STAMP that uses onboard memory and costs a heck of a lot less. Plus, the BASIC software is free!

Alternately, the Atmel AVR's are nice. You'll need a programmer, but with freeware like GCC (Linux) and a few dev tools under Windows, it's very cost effective. They're also quite beefy; an AVR at 16mhz can do quite a lot, from what I've read. Also, with a bit of work, you could probbably set it up to be serially programmable to an EEPROM.
 

jmcoreymv

Diamond Member
Oct 9, 1999
4,264
0
0
Has anyone had any experience using the Freescale HCS12 microcontrollers along with Metrowerks Codewarrior? Opinions?
 

SamurAchzar

Platinum Member
Feb 15, 2006
2,422
3
76
Originally posted by: Mark R
Are there any free (or almost free) development kits (assembler, compiler and programmer) for ARMs?

The offical ARM software costs like $5k - with is a little more than I want to spend at the moment.

Oh yes. After successfully invading the 8-bit market, Atmel has began it's attack on the ARM derived microcontrollers. They've updated their AT91 series of ARMs.

The big news are probably the AT91SAM7 series of microcontrollers. Based on the ARM7TDMI core, they feature internal Flash (up to 256k), internal SRAM (up to 64k), embedded USB Device controller and an optional Ethernet MAC - everything on a low pin count (less than 100, typically) *QFP packages.

The nicest thing though is their evaluation kit, AT91SAM7S64-IAR, here http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3567. You get a board with the 64K flash, 16K SRAM version (no Ethernet though).
With it, you get a 32kb-limited IAR compiler (a really nice IDE), and a JTAG debugger - all for 295$. That's practically free. BTW, Both the JTAG and the compiler can be used for other ARM-based chips, I'm using the same JTAG now with an ARM926EJ-S based chip (also made by Atmel).

You really can't ask for more than that.
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Apparently Atmel is discontinuing the ATmega8 (one of my friends got an email from digikey today).