PIC Schematic
Explanation about this schematic circuit.

PIC16F877A need 5V of power supply, therefore regulator circuit consist of regulator IC 7805, Diode IN4007 and capacitor are used to maintain the power to the PIC at 5 Volt. A voltage higher than 5V will damage the PIC. Notice that 2 pin are connected to 5V and 2 pin are connected to Ground. The MCLR pin are connected to power supply through 4.7k resistor and push button will connect this pin to ground to reset the operation of the program during run time.
Pin B0 is connected to power supply through 4.7k resistor and to push button. Pin D0 is connected to LED and pin D1 is connected to transistor to turn ON the relay.
Pin B0 will be used as input pin. This input pin will detect about 5V when push button is not being pressed and will detect 0V when you press the push button.
Pin D0 and D1 will be used as output pin. This pin can generate 0V or 5V. When this pin generate 0V then the LED and transistor is OFF. But when this pin generate 5V, the LED will light up and the Motor will work.

                                                                        
Next Page >>
<< Back to Electronics