Showing posts with label MCU. Show all posts
Showing posts with label MCU. Show all posts

USB-Powered PIC Programmer

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-diagramw
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 compatible with the popular "JDM" programmer, so can be used with supporting software such as "ICProg" (see http://www.ic-prog.com).


Author: Luke Weston - Copyright: Silicon Chip Electronics

DCF77 Preamplifier Circuit Diagram

A popular project among microcontroller aficionados is to build a radio-controlled clock. Tiny receiver boards are available, with a pre-adjusted ferrite antenna, that receive and demodulate the DCF77 time signal broadcast from Mainf lingen in Germany. DCF77 has a range of about 1,000 miles. All the microcontroller need do is decode the signal and output the results on a display. The reception quality achieved by these ready-made boards tends to be proportional to their price.
In areas of marginal reception a higher quality receiver is needed, and a small selective preamplifier stage will usually improve the situation further. The original ferrite antenna is desoldered from the receiver module and connected to the input of the preamplifier. This input consists of a source follower (T1) which has very little damping effect on the resonant circuit. A bipolar transistor (T2) provides a gain of around 5 dB. The output signal is coupled to the antenna input of the DCF77 module via a transformer.
DCF77 Preamplifier Circuit Diagram Circuit Diagram:
DSf 77-preamplifier-circuit-diagram DCF77 Preamplifier Circuit Diagram
DCF77 Breadboard circuit
The secondary of the transformer, in conjunction with capacitors C4 and C5, forms a resonant circuit which must be adjusted so that it is centered on the carrier frequency. An oscilloscope is needed for this adjustment, and a signal generator, set to generate a 77.5 kHz sine wave, is also very useful. This signal is fed, at an amplitude of a few milli-volts, into the antenna input. With the oscilloscope connected across C4 and C5 to monitor the signal on the output resonant circuit, trimmer C5 is adjusted until maximum amplitude is observed.
It is essential that the transformer used is suitable for constructing a resonant circuit at the carrier frequency. Our proto-type used a FT50-77 core from Amidon on which we made two 57-turn windings. It is also possible to trim the resonant frequency of the circuit by using a transformer whose core can be adjusted in and out. In this case, of course, the trimmer capacitor can be dispensed with.

DCF77 Preamplifier Circuit Diagram

A popular project among microcontroller aficionados is to build a radio-controlled clock. Tiny receiver boards are available, with a pre-adjusted ferrite antenna, that receive and demodulate the DCF77 time signal broadcast from Mainf lingen in Germany. DCF77 has a range of about 1,000 miles. All the microcontroller need do is decode the signal and output the results on a display. The reception quality achieved by these ready-made boards tends to be proportional to their price.

In areas of marginal reception a higher quality receiver is needed, and a small selective preamplifier stage will usually improve the situation further.

The original ferrite antenna is desoldered from the receiver module and connected to the input of the preamplifier. This input consists of a source follower (T1) which has very little damping effect on the resonant circuit. A bipolar transistor (T2) provides a gain of around 5 dB. The output signal is coupled to the antenna input of the DCF77 module via a transformer.

DCF77 Preamplifier Circuit Diagram

The secondary of the transformer, in conjunction with capacitors C4 and C5, forms a resonant circuit which must be adjusted so that it is centered on the carrier frequency. An oscilloscope is needed for this adjustment, and a signal generator, set to generate a 77.5 kHz sine wave, is also very useful. This signal is fed, at an amplitude of a few milli-volts, into the antenna input. With the oscilloscope connected across C4 and C5 to monitor the signal on the output resonant circuit, trimmer C5 is adjusted until maximum amplitude is observed.

It is essential that the transformer used is suitable for constructing a resonant circuit at the carrier frequency. Our proto-type used a FT50-77 core from Amidon on which we made two 57-turn windings. It is also possible to trim the resonant frequency of the circuit by using a transformer whose core can be adjusted in and out. In this case, of course, the trimmer capacitor can be dispensed with.



Power On Indicator

This is a Power On Indicator Circuit diagram. Some types of electronic equipment do  not provide any indication that they are  actually on when they are switched on.  This situation can occur when the back-light of a display is switched off. In addition, the otherwise mandatory mains  power  indicator  is  not  required  with  equipment  that  consumes  less  than  10 watts. As a result, you can easily forget  to switch off such equipment. If you want  to know whether equipment is still drawing power from the mains, or if you want  to have an indication that the equipment  is switched on without having to modify the equipment, this circuit provides a solution. 

image

One way to detect AC power current and  generate a reasonably constant voltage  independent of the load is to connect a  string of diodes wired in reverse parallel in series with one of the AC supply  leads. Here we selected diodes rated  at 6 A that can handle a non-repetitive  peak current of 200 A. The peak current  rating is important in connection with  switch-on  currents.  An  advantage  of  the selected diodes is that their voltage  drop increases at high currents (to 1.2 V  at 6 A). This means that you can roughly  estimate the power consumption from  the brightness of the LED (at very low  power levels). The voltage across the diodes serves as  the supply voltage for the LED driver. To  increase the sensitivity of the circuit, a  cascade circuit (voltage doubler) consisting of C1, D7, D8 and C2 is used to double  the voltage from D1–D6. Another benefit  of this arrangement is that both halve- waves of the AC current are used. We use  Schottky diodes in the cascade circuit to  minimise the voltage losses.
Power On Indicator Circuit diagram :
 
Power On Indicator-Circuit-Diagram
Power On Indicator Circuit Diagram
 
The LED driver is designed to operate the LED  in blinking mode. This increases the amount  of current that can flow though the LED when  it is on, so the brightness is adequate even  with small loads. We chose a duty cycle of pproximately 5 seconds off and 0.5 second  on. If we assume a current of 2 mA for good  brightness with a low-current LED and we can  tolerate a 1-V drop in the supply voltage, the  smoothing capacitor (C2) must have a value of  1000 µF. We use an astable multivibrator built around two transistors to implement a  high-efficiency LED flasher. It is dimensioned to minimise the drive current of  the transistors. The average current consumption is approximately 0.5 mA with a  supply voltage of 3 V (2.7 mA when the  LED is on; 0.2 mA when it is off). C4 and  R4 determine the on time of the LED (0.5  to 0.6 s, depending on the supply volt-age). The LED off time is determined by  C3 and R3 and is slightly less than 5 seconds. The theoretical value is R × C × ln2,  but the actual value differs slightly due to  the low supply voltage and the selected  component values.
 
Diodes D1-D6 do not have to be special  high-voltage diodes; the reverse volt-age is only a couple of volts here due  the reverse-parallel arrangement. This  voltage drop is negligible compared to  the value of the mains voltage. The only  thing you have to pay attention to is the  maximum load. Diodes with a higher  current rating must be used above 1 kW.  In addition, the diodes may require cool-ing at such high power levels.  Measurements on D1–D6 indicate that  the voltage drop across each diode is  approximately 0.4 V at a current of 1 mA.  Our aim was to have the circuit give a  reasonable indication at current levels  of 1 mA and higher, and we succeeded  nicely. However, it is essential to use a  good low-current LED.
 
Caution: the entire circuit is at AC power potential. Never work on the circuit with the mains cable plugged in. The  best enclosure for the circuit is a small,  translucent box with the same colour as  the LED. Use reliable strain reliefs for the  mains cables entering and leaving the  box (connected to a junction box, for  example). The LED insulation does not  meet the requirements of any defined insulation class, so it must be fitted such that it  cannot be touched, which means it cannot  protrude from the enclosure.

Sourced By: www.circuitsproject.com
Older Post ►
eXTReMe Tracker
 

Copyright 2011 Diagram Digital Schematic is proudly powered by blogger.com