Introduction: Lighting a Light Emitting Diode (LED) With the C Stamp Microcontroller

Picture of Lighting a Light Emitting Diode (LED) With the C Stamp Microcontroller

This is the first Design Project and Activity from the CS310XXX (μC 101)Reference Guide Manual by A-WIT Technologies, Inc.

In this instructable, we will light a Light Emitting Diode (LED) with the C Stamp Microcontroller.

The C Stamp Microcontroller is programmed in a subset of C called WC.

As a result of the C Stamp's user friendliness, we will be using it for the purposes of this demonstration.

Step 1: Parts Needed

Picture of Parts Needed

To complete this Instructable, the following parts are needed:

1      Board of Learning Development Board - Microcontroller Fundamentals - µC 101
1     9 Volt DC 200 mA Power Supply - 120V AC Input (US, etc.)
1     USB Cable (6 Feet USB to Serial DB-9 Adaptor)
1     Green LED
1     287 OHM 1/4W ±1% Metal Film Resistor
2     Medium Length Wires

-------------------------------------------------------------------------------------------------------------------------------------

The above is the bare minimum that is needed to complete this Instructable. However to fully learn and experiment with the C Stamp Microcontroller the Microcontroller Activity Kit - USB Connector - 120V Power Supply (US, etc.) is recommended. This kit not only includes the parts above but also all of the necessary parts to complete all of the activities in the CS310XXX (µC 101) Reference Guide Manual as well as other A-WIT Technologies Instructables.

Step 2: Wiring the Light Emitting Diode (LED)

Picture of Wiring the Light Emitting Diode (LED)

For this instructable the wiring diagram is shown below

The wiring diagram is implemented in the Board of Learning as shown below.
 

Step 3: Building the Program

Picture of Building the Program

Using the MPLAB Compiler, build the program that was in the manual as shown below.

Step 4: Programming the C Stamp

Picture of Programming the C Stamp

After the building the program, you are now ready to program your C Stamp.

Open the CSTAMP(TM) Quick Programmer. You will be presented with the following program.

To program the C Stamp, follow these steps.

1) Select your COM Port and Refresh.
2) Open the HEX File that you wish to use. (This will be in the same directory as the workspace you built in MPLAB.)
3) Connect to your C Stamp.
4) Write Device

After completing the previous steps and waiting for the program to finish writing, it should say "WRITING COMPLETE" where it says "WRITE STATUS".

Congratulations! You should now have an LED that flashes every second.

For more information on the C Stamp visit http://www.c-stamp.com

Step 5: All Done!

Picture of All Done!

After completing the previous steps and waiting for the program to finish writing, it should say "WRITING COMPLETE" where it says "WRITE STATUS".

Congratulations! You should now have an LED that flashes every second.

For more information on the C Stamp visit http://www.c-stamp.com

Comments

About This Instructable

4,408views

5favorites

License:

Bio: A-WIT offers the MOST affordable, easiest to use, and professional tool enriched microcontroller based electronics and robotics activity kits. Our low prices, the high quality ... More »
More by adashwit:Lighting a Light Emitting Diode (LED) with the C Stamp Microcontroller
Add instructable to: