Skip to main content

Posts

Showing posts with the label PIC

PIC Digital Clock Timer

his clock timer uses a PIC16F628 microcontroller to display 3 and 1/2 digit time and control an external load. The clock includes a calendar with leap year and optional daylight savings adjustments. The timer output can be set from 1 to 59 minutes and manually switched on and off. The clock also has a correction feature that allows an additional second to be added every so many hours to compensate for a slightly slow running oscillator.  The oscillator uses a common 32.768 KHz watch crystal and the frequency can be adjusted slightly with the 24pF capacitor on the right side of the crystal. There are 7 displays that advance each time the 'D' switch is toggled. To make adjustments, set the RA5 switch to the "B" position and then toggle the E and F switches to advance the data in the hours or minutes digits. Then toggle the "D" switch to move to the next data. After the 7th display, it will go back to the top and display the current time. Or, just press the tim...

16 × 2 LCD Volt Meter Ampere Meter With PIC

Volt meters & ampere meter with PIC can be used to measure voltage and current simultaneously. The series of volt meters & ampere meter with PIC16F876A PIC is used as a data processor voltage and current are measured.  This circuit uses the viewer in the form of 16 × 2 LCD used for the data display voltage and current measurements. In the article volt meter and ampere meter with PIC are discussed kerannya limited to devices only. More detail can be seen from the image sequence volt meter and ampere meter with PIC below.  The images of Volt Meter & Ampere Meter With PIC Circuit Volt meters & ampere meter with PIC  

USB Powered PIC Programmer Circuit Diagram

This simple circuit can be used to program the PIC16F84 and similar "flash memory" type parts. It uses a cheap 555 timer IC to generate the programming voltage from a +5V rail, allowing the circuit to be powered from a computer’s USB port. The 555 timer (IC1) is configured as a free-running oscillator, with a frequency of about 6.5kHz. The output of the timer drives four 100nF capacitors and 1N4148 diodes wir-ed in a Cockroft-Walton voltage multiplier configuration. USB-Powered PIC Programmer Circuit diagram: USB-Powered PIC Programmer Circuit Diagram The output of the multiplier is switched through to the MCLR/Vpp pin of the PIC during programming via a 4N28 optocoupler. Diodes ZD1 and D5 between the MCLR/Vpp pin and ground clamp the output of the multiplier to about 13.6V, ensuring that the maximum input voltage (Vihh) of the PIC is not exceeded. A 100kΩ resistor pulls the pin down to a valid logic low level (Vil) when the optocoupler is not conducting. The circuit is compa...

TV B Gone Ported to PIC 12F1840

Exapod ported TV-B-Gone, the universal TV off button, to the tiny PIC12F1840. He used the free version of the Hi-Tech compiler so the optimizations leave a lot to be desired, but the code only uses 17% of program memory. The prototype was made on a protoboard and an SOIC packaged PIC. [ ]

DC motor control with PIC16F877A Practical example of PIC PWM

We all know what a motor is and what it does. The simplest way to run a motor is to just connect it to a power source. For a DC motor, that would mean, just connecting the motor to the DC voltage that the motor was rated for (or less). But, can you control the speed? Yes. The simplest method is to control the speed of the motor by controlling the voltage the motor runs off. Imagine we have a 12V motor. If you run it off 12V, you get maximum speed (you can get more at higher voltage, but let's not go over rated specifications!). So, simple logic dictates that as we decrease the voltage to the motor, the speed must decrease. You can use a simple LM317 regulator to adjust the voltage to the motor and thus the speed. But, this method of speed control has one huge disadvantage - inefficiency when using a linear regulator (and you may find the motor not running at all at lower voltages). Let's talk about the inefficiency. If we use a linear regulator to give 6V output from 12V input,...

Multi PIC Programmer

This Multi PIC Programmer works as a usual JDM Programmer,  This Multi PIC Programmer works as a usual JDM Programmer. When the switch-2 is on, this Multi PIC Programmer changes into VPP-FIRST mode. The switch-2 will be used only when both INTOSC and internal MCLR options are selected (PIC12Cxxx,PIC12CExxx,PIC12F629, and PIC12F675,etc. Please refer to the data sheet of each PICs for more details).                                                                                                    ...