Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 9th January 2007, 08:22 PM   (permalink)
Default Good Beginner Micro Controller

well I am pretty new to the whole micro controller part of electronics (heck IC's still give me problems sometimes) but I was really wanting to get one to play around with and just experiment with. My first thought was to buy a BASIC 2 stamp with the board of education dev board but now I've been reading all these people talk about pic processors. What would the best micro controller be for a complete beginner just to do simple stuff with? Should I get the BASIC 2 or something else? Programming will be no big deal because I know C++, Java, Basic, and some others.
psecody is offline  
Reply With Quote
Old 9th January 2007, 09:01 PM   (permalink)
Default

There are many ways to go.

Since you already know C++ I would suggest that you may be happier using a C language development system.

Look at the UBW (USB BIT WACKER) http://greta.dhs.org/UBW/index.html. You can build the thing yourself of buy a ready made one from sparkfun for $25. The thing comes with a bootload that can download your compiled code over USB. The microchip C18 (student version) compiler is free as is the MPLAB development toolset.

If you want to run an in circuit debugger such as the ICD2 (and clones) you can use the UBW as a target. They run from about $35 (inchworm kit) to about $200 for USB based versions.
3v0

Last edited by 3v0; 9th January 2007 at 09:03 PM.
3v0 is offline  
Reply With Quote
Old 9th January 2007, 10:01 PM   (permalink)
Default

From SparkFun, I picked up one of their simple $12 serial programmers, a 16F876A, and a crystal. (Stupidly, I didn't get any small caps to use with the oscillation...) For programming languages, I didn't want to jump right into ASM because I suck at it, so I downloaded SourceBoost (http://www.sourceboost.com/). The IDE download comes with a C, C++, BASIC, and PASCAL compiler and the full license isn't TOO expensive for BoostC ($70 for a full no-limits license). Check it out, I've liked it so far.
ArtemisGoldfish is offline  
Reply With Quote
Old 10th January 2007, 12:16 AM   (permalink)
Default

Basic Stamps are a waste of time really. I prefer AVR's myself (Made by a company called Atmel) The architecture is a little more elegent in my opinion, and there isn't such a landslide of devices to chose from so picking an individual device is a little easier. Something like a Tiny12 or Tiny13 are only 8 pin devices, the I/O is limited but they're still a very good learning experiance and cheap. Less than 2 bucks per chip. There's a development board for the entire DIP package AVR line called the STK500 which has switches, LED's onboard oscilators an RS232 port that's converted to logic level, and a dedicated RS232 port just for programming.
The STK500 runs 80 dollars the chips and comes with a couple sample AVR chips to program (bigger 20+ pin ones) The development environement is a free download from their web site with a built in assembler and AVR GCC is a C program. Best bang for your buck in my opinion.
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."
Sceadwian is offline  
Reply With Quote
Old 10th January 2007, 02:44 AM   (permalink)
Default

I think, 8051 is very easy for a beginner and there is a free C Compiler call SDCC which support it.
__________________
Microcontroller Programming:
http://mcu-programming.blogspot.com
uC - News, Resources and Tutorials
sci-3d is offline  
Reply With Quote
Old 10th January 2007, 04:31 AM   (permalink)
Default

Does the AVR STK500 have a usb version by any chance because I am on a laptop and kinda don't have serial ports....
psecody is offline  
Reply With Quote
Old 10th January 2007, 05:46 AM   (permalink)
Default

I'm with Sceadwian- BASIC Stamp is a waste of time. It is a grossly inappropriate setup for any real use and makes it so you don't learn much but their setup. The nasty part is they keep saying how tough it is to learn assembly (and don't even mention C) and IMHO it's doing a disservice to students by misrepresenting the field.

Microchip's C18 ("MCC18") is indeed pretty good.

PIC18's actually don't have a really confusing array of likely possibilities. Unless you've got a special project, the really common general-purpose ones are 18F1320 (like 14 pins I think), 18F2520 (28 pin), 18F4620 (40 pins) IMHO. 18F2680/4680 if you want CANBus. Doesn't hurt to get a bigger part (more memory) than you think you need at first.

Some may disagree with this, but I strongly recommend not mucking around with homemade or "bargain" programmers. Go to Sparkfun and get the cheap clone of the ICD2 (the $99 one). $99 is actually pretty cheap. It's not just a very reliable, supported programmer, the GREAT thing is the In-Circuit Debugging part allows you to read everything it's doing. Really makes debugging 100x less confusing.
__________________
I thought what I'd do was I'd pretend I was one of those deaf-mutes.

Last edited by Oznog; 10th January 2007 at 05:54 AM.
Oznog is offline  
Reply With Quote
Old 10th January 2007, 06:01 AM   (permalink)
Default

thanks for the info. After looking at all the chips my main problem is I want a programmer thats A. USB and B. Is basically a "developement board" like the board of education that the basic stamp came with. I was lookin into the PIC's but I couldn't find something like this dev board for them thats why I was leaning more toward the AVR but I still haven't decided yet. Any recommendations for a dev board like that for the PIC's? Also the fact that the PIC's were like 5 bucks helped it alot as opposed to the BASIC stamp being like 30 bucks.
psecody is offline  
Reply With Quote
Old 10th January 2007, 06:39 AM   (permalink)
Default

You might check my PIC tutorials?, no 'need' for an expensive dev board!, if you do want one there are plenty available - probably far more than other processors?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply With Quote
Old 10th January 2007, 01:05 PM   (permalink)
Default

Quote:
Originally Posted by psecody
Does the AVR STK500 have a usb version by any chance because I am on a laptop and kinda don't have serial ports....
Use a RS232 to USB adapter, they're cheap and easy to find.
__________________
Bill
Home of the
Firefly PIC Tutor
Inchworm ICD2

http://www.blueroomelectronics.com
William At MyBlueRoom is offline  
Reply With Quote
Old 10th January 2007, 01:34 PM   (permalink)
Default

Quote:
Originally Posted by psecody
thanks for the info. After looking at all the chips my main problem is I want a programmer thats A. USB and B. Is basically a "developement board"...
In the past when microprocessors needed support chips like memory and A2D converters a development board was very helpful. The PIC processors are for the most part 1 chip solutions. Many do net even require a crystal. Most development boards just add a few switches and LEDs.

A pic in a solderless breadboard is a very good place to start. The USB ICD2 clone (program and debug) mentioned by another poster is at
http://www.sparkfun.com/commerce/pro...?products_id=5

If you can do without in circuit debugging the UBW I mentioned in my first post can get you going for $25
http://www.sparkfun.com/commerce/adv...ds=UBW&x=0&y=0
Or you can build on yourself
http://greta.dhs.org/UBW/index.html

3v0
3v0 is offline  
Reply With Quote
Old 10th January 2007, 05:17 PM   (permalink)
Default

Thanks I'm not sure if I would need the debugger, can you explain how it functions? Thanks also I was looking at the Bitwhacker and it says you plug it into windows pc. I don't use windows because its a pain to deal with most of the time (I'm dual booting windows and mac right now but I really hate to use windows.) So are there any programmers and stuff that are good for mac? Sorry for so many questions. Thanks for everything.
psecody is offline  
Reply With Quote
Old 10th January 2007, 07:30 PM   (permalink)
Default

Has anyone used the Atmel ATMega64 microcontroller? How is it and would it be a good choice?
psecody is offline  
Reply With Quote
Old 10th January 2007, 09:08 PM   (permalink)
Default

Quote:
Originally Posted by psecody
Thanks I'm not sure if I would need the debugger, can you explain how it functions?"
Debuggers make the debugging process much easier and faster. An "In Circuit Debugger" provides run control. It allows you run and single step your program at the C (high level) or machine code level as it executes on your processor (not a simulator). This is done via hardware and/or software breakpoints. It also allows you to view data (memory). For general info on debuggers see http://en.wikipedia.org/wiki/Debugger

Quote:
"Thanks also I was looking at the Bitwhacker and it says you plug it into windows pc. I don't use windows because its a pain to deal with most of the time (I'm dual booting windows and mac right now but I really hate to use windows.)
Microchip provides a development environment including C compiler for free. But it runs on the PC. I think there are open source efforts to create a similar tool for the non PC world. Not sure how far along they are.

If you have a USB port on your mac you can get it working there. Not sure how packaged the info is. Visit http://www.sparkfun.com/cgi-bin/phpb...pic.php?t=3591

Regardless of which processor family or development board you choose, check out the tools, info and hand holding you can get on the mac side. It will be at least a bit harder to find the tools and get them working on anything other then a PC. There may be execptions. Some will be easier then others.

You may want to start on a windows machine till you get a handle on things. Then move to the mac.

3v0
3v0 is offline  
Reply With Quote
Old 11th January 2007, 01:05 AM   (permalink)
Default

The AVR Dragon might be a sollution if you want something with a native USB interface. It is much smaller, and actually a bit more full featured than the STK500 as far as it supports Debugwire and Jtag debugging interfaces as well as emulation of all AVR devices with 32k or less memory. It's more of a programming tool than a development board though, the main thing it lacks is LED's push buttons and well plugs =) The connector side of the board is shipped blank and you provide your own interface connectors (which have to be soldered on). Basically IDC style jumpers. But even if you have to buy all the extra's to make it equivilant to an STK500 such as a breadboard and some LED's and resistors and what not it's going to cost you the same as Digi-key sells the Dragon for 49 dollars. I don't think it comes with much of anything except the board and a CD with their development software, but it's only been out for a few months now and Atmel will likley support it as a development/programming tool for a long time.
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."
Sceadwian is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Micro Controller Tachometer WilliamN Micro Controllers 0 15th December 2003 08:39 PM
Beginner questions mattg2k4 Robotics Chat 17 13th August 2003 10:38 PM
Micro Controller Switcher Help Fuad General Electronics Chat 3 25th May 2003 07:47 AM
PBX question waqar Electronic Projects Design/Ideas/Reviews 0 30th March 2003 06:21 PM
Light Controller or rather Electrical Outlet Controller mammanoti Electronic Projects Design/Ideas/Reviews 1 11th January 2003 03:09 AM



All times are GMT. The time now is 10:37 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.