Schematic Overview
The schematic for this tutorial was kept as simple as possible so that the focus could remain on how the touch screen works and how we interface to it. You can see the completed schematic for this project below. The main parts in the schematic are the RGB LED, 18F452 and LM7805.
View Full Schematic
Schematic Specifics
Power Regulator
The power regulation circuit is a LM7805 +5v regulator that will convert the +9v from the battery to a steady +5v output to the PIC.
PIC Microcontroller Circuit
The microcontroller circuit consists of the PIC 18F452, it's 40 MHz crystal clock and the 10k resistor connected to pin 1, MCLR. Along with power and ground connections, these are the basic connections necessary to run the program loaded on the PIC.
RGB LED Circuit
Three general purpose 2n2222 transistors are used to drive each color of the Red/Green/Blue LED. This method ensures that the LED shines as bright as it should be since it's power is coming directly from the regulated voltage.
The schematic for this tutorial was kept as simple as possible so that the focus could remain on how the touch screen works and how we interface to it. You can see the completed schematic for this project below. The main parts in the schematic are the RGB LED, 18F452 and LM7805.
View Full Schematic
Schematic Specifics
Power Regulator
The power regulation circuit is a LM7805 +5v regulator that will convert the +9v from the battery to a steady +5v output to the PIC.
PIC Microcontroller Circuit
The microcontroller circuit consists of the PIC 18F452, it's 40 MHz crystal clock and the 10k resistor connected to pin 1, MCLR. Along with power and ground connections, these are the basic connections necessary to run the program loaded on the PIC.
RGB LED Circuit
Three general purpose 2n2222 transistors are used to drive each color of the Red/Green/Blue LED. This method ensures that the LED shines as bright as it should be since it's power is coming directly from the regulated voltage.