$30.00 Microcontroller Tutorial

All microcontrollers consist of three components the interpreter (the processor and ram), resonator (the clock), and the EEPROM (long term memory).

Tree parts of a microcontroller

We are going to build the parallax BS2sx microcontroller (normally $60.00) for $30.00.

You can get the basic parts at www.jamco.com and the specialty parts at www.parallax.com .

Here is the parts list:

2N3904 NPN transistors…………Jamco part#: 38359…………….$0.069............x2

2N3906 PNP transistor…………..Jamco part#: 38375……………..$0.051............x1

0.1uF capacitors………………….Jamco part#: 151118……………$0.155...............x2

10uF cap capacitor……………….Jamco part#: 330692…………....$0.039.............x1

 1.5pF capacitor……………………Jamco part#: 332188…………...$0.056................x1

4.7K resistors……………………..Jamco part#: 691024…………...$0.01..................x2

10k resistors………………………Jamco part#: 691104…………...$0.01..................x8

50 MHz resinator …………………Parallax part#: 250-05060…….$1.95..............x1

9 pin female conector……………..Jamco part#: 104978…………..$0.96..............x1

LM2940-5.0 5volt regulator……….Parallax part#: 601-00506…….$1.85............x1

16K Bytes EEPROM………………Parallax part#: 602-00013…….$5.95............x1

BS2sx interpiter chip………………Parallax part#: PBASIC2SX/P...$12.00..........x1

1 bread bord and jumper kit.....................................................................x1

 

Ones you have the parts its time to assemble here is the schematic.
http://www.parallax.com/dl/docs/prod/schem/bs2sxrevd.pdf

Start by placing the three main components.

 

Then put in the main components for the programming interface followed by wiring the components together with 22 gage jumpers (pay extra attention when placing and wiring the components on the programming interface).

Ones you have completed the circuit attach the 9 pin plug to your bread board.

Now download the BASIC stamp editor software from:.

http://www.parallax.com/html_pages/downloads/software/software_basic_stamp.asp

then plug the bread board into the computer and inter this program:

 

'The first application

' {$STAMP BS2sx}

' {$PBASIC 2.0}

 

DEBUG "Hello World!"


END

 

 

If a box on the screen and reads hello world you have successfully made a BS2sx microcontroler.


Happy programming