A microcontroller is a small computer which fits on a single chip. Like other computers, the microcontroller follows a sequence of instructions, one at a time, to carry out a program. With the help of a microcontroller we are going to make a morse code flasher which flashes FSC.
Step 1: Materials Required
the things required are:
1] 10k ohm resistor
2] 470 ohm resistor
3] 0.1 uf capacitor
4] 1000 uf capacitor
5] 5V regulator
8] Bread board for prototyping and a strip board for soldering
Step 2: Schematic!!!!
This circuit uses the PIC 12F683, as the controller. Not shown in the schematic is the voltage regulator and battery clip/battery. There is an additional resistor, with a value of 10KΩ ; it is labeled R1 in the schematic. It has brown, black, orange, and gold bands on it, standing for 1, 0, three zeros, and 5%, respectively. This is quite a bit more resistance than the R2 resistor, which is 470 Ω, so don't mix them up. C1 should be .1μFarad.
The schematic looks quite complicated. The LED and 470Ω resistor are turned around, though. In this circuit the positive side of the LED connects to the PIC12F683 and the negative side of the LED connects to the resistor. The resistor connects to ground, instead of the positive bus.
If you are externally programming the chip no need of the programming header.
Step 3: Making The Circuit
First use a breadboard to prototype and test the circuit and then solder all the components on the pref board.
Step 4: Setting Up The Software
Before we can actually use this circuit, we need to set up the program on the microcontroller, and before we can do that, we need to install the appropriate software in the PC. The software we will install is:
+GPASM -- which you can probably run directly from the folder on the USB drive.
+PICKit 2 software, which is also on the USB drive
+Also on the USB drive, but which we will not use today, is the CC5X compiler for writing programs in the C language instead of assembler. Many people prefer this option.