Tuesday, September 20, 2011

Misc circuits

Transformerless power supplies

Transformerless power supplies are very useful in some applications, but remeber that eliminating the transformer eliminates the safety factor. You should this type of power supply only if the circuit you want to power has no external connections to anything else (unless they are properly isolated from the rest of the circuit). Line isolation is essential for safety with respect to electrical shock - no part accessible to the user must be connected to either side of the power line. A regular transformer provides this automatically.

  • Off-line power supply requires few parts - This simple non-isolated off-line power supply can provide up to 150 mA 5V and uses only a handful of components from 110-230V AC input voltage. Note that the low voltage output is directly connected to the mains; it can not be used when the low voltage part can be touched.
  • Transformerless mains power supply - This power supply does not really excel in power efficiency, but it is the cheapest and most compact solution for a small power supply. Note that the low voltage output is directly connected to the mains; it can not be used when the low voltage part can be touched. With the component values of the schematic, the circuit can supply 12V /15mA max.
  • Transformerless supply fits CATV applications - coaxial CATV systems derive their power from a 60-Hz square wave that shares the center conductor with the television channelsm this circuit generates 10 mA at 5V DC from it

Tesla Coil

Tesla coil is high voltage technology discovered by Nikola Tesla over 100 years ago. A Tesla coil is a high-voltage air-core resonant transformer. The Tesla coil achieves a great gain in voltage in a very different way than a conventional transformer. Tesla coil's voltage gain is based upon the different impedances of the primary and secondary circuit components.
Tesla coils are extremely dangerous. The entire circuit of a Tesla coil contains deadly levels of voltage and current. A Tesla coil can radiate high voltage sparks many feet out into the air that will strike anything including you. Extreme caution must be exercised whenever operating a Tesla coil. Tesla coils can generate huge amounts of radio frequency interference (should preferably operated only inside a shielded room). Tesla coil operation involves high energy electrical discharge, high voltages, and often high speed rotary gaps. For the beginner, there are plenty of ways to injure or kill yourself. Safety is an important part of fun, successful tesla coiling.

High voltage experimenting

Stun gun circuits

Special application power supplies

Power supply monitoring and protection circuits

DC to AC converter and UPS circuits

Have you ever wanted to run a TV, stereo or other appliance while on the road or camping? Well, a power inverter should solve that problem. An inverter is an electrical device that converts 12-volt power into mains power (120V 60Hz AC or 230V 50 Hz AC typically). Typically you run an inverter off of your car's battery or off of a deep-cycle battery that you buy specifically to power the inverter. An inverter is usually a very easy and inexpensive solution to get mains power where it is not normally available if you can keep your power demands in the 200-watt range.
With around 300 watts of continuous power inverter you can run items like desktop computers, monitors, full size fax machines, battery chargers and AC adapters for notebook computers, cellular phones, camcorders, small power tools, drills, mid-sized TVs, soldering guns, and a variety of rechargeable equipment on the road. If you have a higher power inverter, you can run more devices or more powerful devices. With a lower power converter you can use only devices which use less power. Power inverters are also very useful in solar power system which generally use low voltage batteries (usually 12V DC) to be able to run mains powered devices in them.
The three most common outputs for inverters are square wave, modified sinewave (sometimes called a quasi sinewave), and sinewave outputs. Most devices with variable speeds such as electric drills, or devices with chargers such as cordless drills or screwdrivers, can behave irrationally when operating with modified sine or square wave inverters. Small wall based chargers (called wall warts) can have overheating problems with modified sine or square wave inputs. Some computers and stereo equipment use switching power supplies that utilize SCR's and Triacs as well. These pieces of equipment may experience the same troubles with non-sinewave power. True sine wave output allows connected loads and equipment to operate the same as they would from utility supplied power. Unfortunately the true sine wave output inverters are more expensive than the ones which use square wave or modified sinewave.
Generally you can buy a small 150- or 300-watt quasi-sine-wave inverter for about $50. Higher power or true sinewave models cost generally more.
An Uninterruptible Power Supply (UPS) is a device that sits between a power supply (e.g. a wall outlet) and a device (e.g. a computer) to prevent undesired features of the power source (outages, sags, surges, bad harmonics, etc.) from the supply from adversely affecting the performance of the device. UPS devices generally consist of some form of internal battery, inverter and intelligent switching electronics. When normal mains power is available, it is supplied to the devices connected to UPS. When mains power is not available, the devices connected to UPS output are powered by the inverter circuit inside the UPS. UPS devices aren't designed to let you keep working for a long period of time after power outage; they're designed to give you enough time to shut your system down in the normal manner.
NOTE: Most of the circuits below have square wave output and are not suitable for driving sensitive electronics equipments. The AC from those inverters can damage some equipments connected to them.

    General articles

    Circuits

    • 24 Volt DC to 110 Volt AC Power Inverter - Converts the power from two 12 volt batteries to AC to power a drill or whatever
    • 5W Inverter - A single transistor is all you need for this simple inverter. The main aim of this circuit is to provide a suitable supply for all kind of low power battery chargers that normally connect to the mains such as mobile phones, electric shavers, etc, even an electronic neon light rated at 5W.
    • Basic 200 W power inverter - 12V DC to 110V 60 Hz AC, up to 200W continunous, square wave output
    • Building a dc to ac converter - Otherwise known as a dual axis drive corrector, this unit is intended to provide 240 volts/50 Hz (or 120 volts/60 Hz with minor modifications) for a right ascension (ra) drive and a reversible declination motor. The supply requirement is from 11 to 16 volts d.c. at 500 mA. The overall output frequency is adjustable from 47.5 Hz to 52.5 Hz or from 40 Hz to 60 Hz on the remote unit. This frequency is stabilised against voltage or temperature change.
    • DC/AC inverter - 12V DC to 110V AC
    • DC to AC power inverter - convert 12V DC to 120V AC, based on SCRs and FETs
    • Inverter - takes 12 VDC and steps it up to 120 VAC
    • Inverter offers design flexibility - works from a 12V car battery and produces mains voltage with closed-loop voltage regulation
    • SCR Inverter - outputs 300V 400Hz, waveform is vaguely sinusoidal, 5W output power
    • The I2K Power Inverter - This circuit is a 2kVA 12VDC to 120VAC inverter for power backup. This description of the inverter is preliminary and incomplete.

    UPS techology

    • Uninterruptible Power Supply (UPS) FAQ - This is a FAQ document on Uninterruptible Power Supplies. It is intended to provide a starting point for those people that want to find out what they are, what they do, and what's available. Most of this document is very US-centric. The power numbers, companies and services all emphasize US consumer needs.
    • Uninterruptable Power Supply Reference Design - Application note from Microchip
    • Uninterruptible Power Supply Types - Most people know that UPSes exist, but many seem to think that there is just one kind of device that goes by that name. In fact, there are several different major designs in use for UPS models. Those who sell these devices share much of the blame for this situation, because too often, the different kinds of UPS are all called the same, generic name.
    • UPS Semiconductor Technologies

Computer power supplies

Computer power supplies

The power supply converts the alternating current (AC) line from your home to the direct current (DC) needed by the personal computer. In a personal computer (PC), the power supply is the metal box usually found in a corner of the case. The power supply is visible from the back of many systems because it contains the power-cord receptacle and the cooling fan.

Battery information and circuits

    Normal batteries have generally 1.5V per cell voltage (except some Lithium cells which have 3V voltage). The batteries which have higher voltage output are built genrally from many 1.5V cells in series all put inside same "case". Rechargeable batteries have generally somewhat different lower voltages and capacity than their their "only once usable" counterparts. Normal alkalines are 1.5V each, but Ni-Cd batts are only 1.2V each. If you use four of them for instance, you only get 4.8V instead of 6V. You can make up for it by adding a cell for each four cells, so five cells will give you 6V. That's probably why some equipment instructions don't allow them. Another reason could be that NiCd batteries have enormous short-circuit current capability (easily tens of ampreres or more) compared to many traditional batteries (causes greater risk of fire in case of short circuit). NiCd batteries are easy to charge at slow charge mode. Just apply a charging current, typically around 50 mA for 500mah cells, for 12-14 hours to change them. It does not hurt the batteries if you charge the batteries at the current with somewhat longer times (even few times longer) than needed. When batteries are are charged after they are full, the applied power is converted to heat, so NiCd batteries should start to become warm then. Some will say sinking C/10 (50mA for 500 mAh battery) indefinately into NiCd is acceptable but this is not a recommended practice. NiCd batteries can also be charged faster with special "smart chargers" which use controlled higher current to the batteries until they are charged and stop this current when batteries are full (the charger has special sense circuitry for this). Exercise extreme precaution when handling and testing NiCd batteries. NiCd batteries include some amount of cadmium (Cd), which is dangerous material for enviroment. Do not throw NiCd batteries away with your trash. You should bring those batteries to recycling. When discharging NiCd battery packs be cautious about over-discharge. Individual NiCd cells can go to zero volts but in a battery pack letting them drop below 1V each may reverse and ruin a weak cell since they are in series. In some applications NiCd batteries are replaced with higher capacity NiMH batteries. Those batteries have pretty much similar characteristics to NiCd (except that they need somewhat different charger). NiCad and NiMh cell voltages are identical. There is some difference at end of charge and used by sophisticated chargers. NiMh are sensitive to overcharge. NiMh should be preferably be always charged with "smart chargers" designed to charge NiMh batteries. NiMh batteries can also be charged with constant current C/10 (50mA for 500 mAH cell) current, but you should avoid excessive overcharge because this will shorten battery life. Compared to Nicad NiMh are nearly twice the capacity, can be recharged from any level, selfdischarge more tha twice as fast, have about half the full cycle number life, and are not as robust when charging. Many new small gadgets like cellular phones use Li-ion batteries. Li-ion batteries have a high energy density. Exercise extreme precaution when handling and testing Li-ion batteries. Do not short circuit, overcharge, crush, drop, mutilate, penetrate, apply reverse polarity, expose to high temperature or disassemble them. Only use the Li-ion battery with the designated protection circuit (cellular phone batteries usually have this). Abuse of Li-ion can cause "explosion" like happening, because in short circuit the case temperature can get very high and the electrolyte inside Li-ion battery is highly flammable. Car batteries are built are lead acid cells. They have a cell voltage of around 2 volts (means 6 cells in series makes 12V battery). Normal 12V car battery is designed to be quite robust. It can be carged with almost any reasonably current limited constant voltage source of around the nominal voltage of the battery (for example 13.5V for 12V car battery). Car batteries are built for heavy currents but DO NOT deep discharge them, only shallow discharge. If you repeatedly run a car battery down to much below 50% of capacity you will seriously shorten its life. Warnings on car batteries: Car batteries contain dangerous acid hare heavy, so handle carefully. Charging car batteries can generate highly flammabble hydrogen, so it is best to charge those only in well ventilated spaces. Car batteries have very large short circuit current (hundreds of amperes), so do not short circuit them (a fuse near battery terminal is essential for safety to avoid wire fires in short circuit happens). There are also other types of lead acid cells than car batteries. Some are designed for deep discharge use and some for some other applications. Generally lead acid batteries don't like to be discharged below 1.67 volts per cell (10V for a 12V battery) and their full capacity can only be extracted if the load current is something like C/10 or C/20 (where C is the barrery capcity in Ah and resulting current is in A). Short list of most common battery characteristics:
    • Lead Acid: most economical for larger power applications where weight is of little concern (cars, boats, wheelchairs, emergency lighting, UPS systems), low energy density (30-50 Wh/kg), available in low cost versions, cell voltage 2V, voltage limiting rather than current limiting is used for charging
    • Sealed lead acid (SLA,Gelcell): maintenance-free lead acid battery with electrolyte in moistened separators, enclosure is sealed, used for wheeled mobility, typical charge times are 8 to 16 hours, must always be stored in a charged state, 200 to 300 discharge/charge cycles
    • Nickel Cadmium (NiCd): mature and well understood technoogy used in chargeable batteries used in many applications (power tools, two-way radios, video cameras), standard against which other batteries are usually compared, not very good energy density (45-80 Wh/kg), cell voltage 1.25V, life cycle 1000-1500 charges
    • Nickel-Metal Hydride (NiMH): higher energy density (60-120Wh/kg) compared to the NiCd at the expense of reduced cycle life, no toxic metals, used in mobile phones and laptop computers, cell voltage 1.25V, life cycle 300-500 charges
    • Lithium Ion (Li-ion): fastest growing battery system, high-energy density (110-160 Wh/kg) and lightweight, technology is fragile and a protection circuit is required to assure safety, applications in notebook computers and cellular phones, cell voltage 3.6V, life cycle 500-1000 charges
    • Lithium Polymer (Li-polymer): uses a dry solid polymer electrolyte, cell thickness measuring as little as one millimeter, suffers from poor conductivity (high internal resistance)
    • Lithium Ion Polymer (Li-ion polymer): uses a combination of dry polymer electrolyte combined with some gelled electrolyte, ultra-slim geometry, high energy density (100-130 Wh/kg), used in mobile phones, cell voltage 3.6V, life cycle 300-500 charges, promotional reasons most battery manufacturers mark this kind of battery simply as Li-polymer
    • Reuasable Alkaline: Special alkalinen battry which can be charged few times (energy density 80 Wh/kg), cell voltage 1.5V, life cyle around 50 cyled of 50% charge/recharge

    General battery information

    General charging circuits

    Battery chargers for NiCd batteries

    • Battery charger indicates rate of charge - a single LED indicates whether the battery charger s delivering a trickle charge or a fast charge, cricuit designed to charge 2-14 cells
    • Constant Current Nicad Charger - The schematic for this charger is pretty simple. You can charge from 1 to 20 +/- nicads at a constant current of from 20 to 200 ma +/-.
    • Make Your Own Simple Rx/Tx Battery Charger with Peak Detect - This circuit is designed to peak charge Rx and Tx batteries. It's programmed for a C/2 charge rate for 250mAh and 500mAh batteries (charge currents of 125mA or 250mA). It'll charge Rx from 12V at the field, Tx from a 15V supply (like a car w/engine running). Use a 15-18V supply to charge at home (you should be able to find wall cubes with this rating). It is based on a Maxim IC, the MAX713.
    • Ni-Cd Batteries Charger - A very basic circuit that takes approximately 12-15 hours of charge AA-batteries at 50mA charging current.
    • Nicad Battery Charger - uses a single transistor as a constant current source
    • NiCd or NiMh battery charger - This charger can be used for AAA, AA and Baby C batteries. This battery charger is based on MAX712/MAX713.

    Li-ion battery chargers

    • Charge Li-ion batteries from ac line voltage - converts energy from 120V ac to a regulated voltage or current as necessary to charge two Li-ion cells in series
    • Supply derives 5 and 3.3V from USB port - This circuit derives its power from a USB port and produces 5 and 3.3V supply rails for portable devices, such as digital cameras, MP3 players, and PDAs. The circuit allows the port to maintain communications while, for example, charging a lithium-ion battery. IC2 boosts the battery voltage, VBATT, to 5V, and IC3 buck-regulates that 5V output down to 3.3V.

    Lead-acid battery cargers

    Combined power supplies and batery chargers

    Battery discharging circuits

    Battery backup circuits

    Battery protection

    Battery status sensors

    Normal battery chargers

    Bascially all types of alkaline cells can be recharged, although the battery manufacturers discourage this (dangers of overcharging and battery leaking). You will need a special charger for charging alkaline cells (normal NiCd chagers are not suitable for this). There are some special alkaline cells nowadays which chan be charged better than normal alkaline cells. The best practice is not to discharge completely the cell or battery but rather to give a short charge often. Do not attempt to recharge a totally discharged cell or a cell showing even the slightest sign of damage.
    • Alkaline Charger - This circuit was specifically designed to recharge alkaline cells. It will take around 1 day for a discharged AA cell or 9V battery and up to several days for a large D type cell to carge.

    Other battery circuits

Switchers

A switching power supply is a device transforming the voltage from one level to another. Typically it is taken from the mains and transformed to the DC levels that logic requires in a PC or a battery loader. The main differences between the linear and switched-mode regulator are in the size, weight and efficiency.
Since a switched-mode converter can operate at significantly high frequencies, then a smaller transformer using ferrite cores can be used. Also since the high rectified mains voltage is chopped, then energy storage for hold-up can be accomplished on the primary side of the step-down transformer and so much smaller capacitors than the linear counterpart can be used. A switching-mode power supply (SMPS) is a power supply that provides the power supply function through low loss components such as capacitors, inductors, and transformers -- and the use of switches that are in one of two states, on or off. The advantage is that the switch dissipates very little power in either of these two states and power conversion can be accomplished with minimal power loss, which equates to high efficiency. Usually a switching-mode power supply is circuit that operates in a closed loop system to regulate the power supply output. Although the benefits of switched-mode techniques are great, there is a penalty paid in the increased noise present at both input and output of the supply due to the power switching techniques. Also the associated control circuitry is much more complicated than its linear counterpart.
The switching mode power supply contains a transformer/coil and to make this as small as possible, the internal switching frequency has to be quite high, something typically in the range between 20KHz and 1MHz. This also makes the device noiseless to human ears. The oscillator noise is often conducted onto the input and output lines with a frequency that varies with the load.
There are many different types of withing power supplies. Off Line Switching Mode Power supply is a power supply in which the ac line voltage is rectified and filtered without using a line frequency isolation transformer. After rectifications and filtering the voltage is converted to the needed voltage using a swithing regulator circuit, which usually provides also isolation function (power goes though high frequency transformer). The typical PC power supplies (AT and ATX power supplies for example) are built in this way.
For DC/DC type conversion there are many alternatives. One option is to use switched capacitor converter (usullay used for voltage doubling or negative voltage generation). Switched capacitor type converters are generally used only for low power applications. More often used technique for low and high power is switched inductor converter. This converter type can be used for converting voltage up, voltage regulation and for current regulation.
Designers often categorize power converters into two basic types: isolated and nonisolated. These categories refer to the relationship between the input power ground and the output power ground. Many applications require isolation between the two grounds. The isolation requirement often stems from various safety agencies, and the main purpose of isolation is to protect personnel from exposure to dangerous voltage levels. In some cases, the grounds must have sufficient isolation so that applying a potential of 1500V or more between them shows no indication of breakdown. An isolated power-converter design imposes several extra design challenges on a power-supply designer.
Switchers are suitable for many applications, but not to all. Unless you're willing to spend a great deal of blood, sweat, and tears on the job, it's a bad idea to try to use a switching power supply to power a sensitive analog circuit. Switch-mode power supplies tend to generate impressive amounts of noise - conducted through the power supply rails, radiated, induced, etc. - and this noise can quite easily cross-couple onto your analog signal lines. For some analogue applications switchers are suitable, but then you need to use a very "quiet" switcher type.