Showing posts with label battery. Show all posts
Showing posts with label battery. Show all posts

Monday, September 23, 2013

A Car Battery Monitor

A close call on the road can really focus your mind on the importance of having a battery monitor in a car. I had been enjoying a pleasant week of travelling around the countryside at a leisurely pace and taking in the beautiful scenery each day. It wasnt until the final day, with the big rush to return home, that I had to drive at night.My home is deep in the country and on the road I was travelling the closest petrol station may be 80km away. I was travelling through an area that is full of open-cut coal mines and large heavily loaded semi-trailers constantly pound the roads, travelling at quite high speeds. It was around 8pm at night and everything was very dark no street lights or house lights anywhere.

Just as I was going up a hill, the lights began to dim and the engine coughed. A large semi-trailer loomed in the rear-vision mirror as I pushed the clutch in and tried to restart. My speed was falling rapidly and my lights were blacked out - I was like a sitting duck in the middle of the road, as the semi-trailer came rapidly bearing down on me. I just managed to pull the car off the road, as the semi-trailer came screaming past, missing me by inches! After calling for assistance from the NRMA, the problem was found to be a fault in the alternator, which was failing to charge the battery. The battery voltage had been falling under the heavy load of the lights and at the worst possible time, there was not sufficient power for the lights or the motor.

After the initial shock wore off, I put on my thinking cap to come up with a PIC-based solution to the problem. What was really needed was a display and a buzzer, to get my attention should the voltage fall outside a specified range. So my design criteria was set, a series of LEDs could indicate the voltage and a buzzer would also be used to warn of problems.
Main Features:
  • Visual indication of battery voltage
  • Audible warning when voltage becomes low
  • Screw terminals for easy connection
  • Simple and easy to build
Circuit details:

The circuit is based on PIC16F819 18-pin microcontroller which has an analog-to-digital (A/D) input to monitor the battery voltage and outputs capable of driving LEDs directly, to keep the component count down. There are seven LEDs in all, giving a good range of voltage indication. The topmost LED, LED1, comes on for voltages above 14V which will occur when the battery is fully charged. LED2 indicates for voltages between 13.5V and 14V while LED3 indicates between 13V and 13.5V. Normally, one of these LEDs will be on. LED4 covers 12.5V to 13V while LED5 covers 12V to 12.5V. LED6 covers from 11.5V to 12V while LED7 comes on for voltages below 11.5V. These two LEDs are backed up by the piezo chime which beeps for voltages between 11.5V and 12V and becomes more insistent for voltages below 11.5V.

That might seem fairly conservative. After all, most cars will start with no troubles, even though the battery voltage might be a touch below 12V, wont they? Well, no. Some modern cars will happily crank the motor at voltages below 11V but their engine management will not let the motor start unless the voltage is above 11V. So dont think that a modern car will always start reliably. This little battery monitor could easily prevent a very inconvenient failure to start! So lets describe the rest of the circuit. The incoming supply is connected via diode D1 which provides protection against reverse polarity while zener diode ZD1 provides protection from spike voltages.

A standard 7805 3-terminal regulator is then used to provide a stable 5V to the microcontroller. The battery voltage is sensed via a voltage divider using 33kΩ and 100kΩ resistors. This brings the voltage down to within the 0-5V range for the A/D input of the PIC16F819. Port B (RB0 to RB7) of the microcontroller is then used to drive the various LEDs, with current limiting provided via the 330Ω resistor network. RB7, pin 13, drives a switching transistor for the piezo buzzer.

Software:

For the software, the design follows the basic template for a PIC microcontroller. Port A and its ADC (analog-to-digital converter) function are set up while port B functions as the output for the LEDs and buzzer. Once the set-up is complete, a reading will be taken at port RA2, the input for the A/D convertor. This reading is then compared with a series of values to determine the range of the voltage. This is similar to a series of "if" statements in Basic language. If the voltage is found to be within a certain range, the relevant port B pin will be turned on. If the voltage is below 12V, the buzzer will be turned on for a brief period, to signal a low battery condition. As the voltage falls below 11.5V, the frequency of the beeps will increase, to signal increased urgency.

Building it:

All the parts are mounted on a small PC board measuring 46 x 46mm (available from Futurlec). The starting point should be the IC socket for the PIC16F819, as this is easiest to mount while the board is bare. The next item can be the PC terminal block. The resistors and capacitors can then follow. Make sure the electrolytics are inserted with correct polarity.

Make sure that you do not confuse the zener (ZD1) with the diode when you are installing them; the diode is the larger package of the two.

Even more important, dont get the 78L05 3-terminal regulator and the 2N3906 transistor mixed up; they come in identical packages. The 78L05 will be labelled as such while the 2N3906 will be labelled "3906". And make sure you insert them the correct way around. The buzzer must also be installed with the correct polarity. The 330Ω current limiting resistors are all in a 10-pin in-line package. There are four green LEDs, two yellow and one red. They need to be installed in line and with the correct orientation.

Testing:

Before you insert the PIC16F819 microcontroller, do a voltage check. Connect a 12V source and check for the presence of 5V between pins 14 & 5 OF IC1. If 5V is not present, check the polarity of regulator REG1 and the polarity of the diode D1. If these tests are OK, insert the IC and test the unit over a range of voltage between 9V and 15V. Make sure that all LEDs come on in sequence and the piezo buzzer beeps for voltages below 12V.

Now it is matter of installing the unit in your car. It is preferable to install the unit in a visible position for the driver. However, it should not obscure any other instruments. The unit should be connected to the cars 12V supply after the ignition switch. This will turn the unit off with the other instruments and prevent battery drain while the motor is not running.

Author :Alan Bonnard Copyright : Silicon Chip Publications Pty Ltd

ReadMore....

Wednesday, May 1, 2013

9V Battery Replacement Power Supply

This circuit was originally designed to power a motorcycle intercom from the vehicle supply system. This type of intercom, which is used for communication between driver and passenger, generally requires quite a bit of power. In order to improve intelligibility there is often elaborate filtering and a compander is sometimes used as well. The disadvantage is that a battery doesn’t last very long. You could use rechargeable batteries, of course, but that is often rather laborious. It seems much more obvious to use the motorcycle power supply instead. A 9-V converter for such an application has to meet a few special requirements.

9V Battery Replacement Power Supply
 
For one, it has to prevent interference from, for example, the ignition system reaching the attached circuit. It is also preferable that the entire circuit fits in the 9-V battery compartment. This circuit meets these requirements quite successfully and the design has nonetheless remained fairly simple. In the schematic we can recognize a filter, followed by a voltage regulator and a voltage indicator. D1, which protects the circuit against reverse polarity, is followed by an LC and an RC filter (C3/L1/L2/C1/R1/C2). This filter excludes various disturbances from the motorcycle power system.

Moreover, the design with the 78L08 and D3 ensures that the voltage regulator is operating in the linear region. The nominal system voltage of 14 V can sometimes sag to about 12 V when heavy loads such as the lights are switched on. Although the circuit is obviously suitable for all kinds of applications, we would like to mention that it has been extensively tested on a Yamaha TRX850. These tests show that the converter functions very well and that the interference suppression is excellent.
ReadMore....

Friday, April 12, 2013

A Discharger for Receiver Battery Packs

You may have read about cycling NiCad batteries. If not, read a little here ( Reds R/C Battery Clinic) for an excellent overview. Overcharging apparently leads to voltage depression, which can be corrected by one or two complete discharges (to 1 to 1.1 volts per cell). On the other hand, over discharging the batteries to a low or zero voltage can damage them, and if the batteries have not been overcharged and have no voltage depression, cycling just uses up regular battery life. I designed and use this discharger occasionally to remove voltage depression and insure battery capacity is still ok for those planes that have no low voltage alarm.

Note that the 100 ohm resistors are 1/2 watt (these are the load resistors), the rest are 1/4 watt. The red LED lights while discharging, buzzer sounds and discharge rate drops to 15-25mA (for the buzzer) when complete. The discharge load is 60mA to 110mA depending on the battery voltage. Since thats about the same current draw as my Hitec receiver and two HS-80s draw while flying handlaunch, I can use discharge time almost directly to indicate flying time. The buzzer uses enough current to keep a 150mA battery down, but when discharging a 600mA battery, the battery recovers quickly when the load is removed--the buzzer/discharger cycles on and off. Threshold voltage of the discharger is set to 4.2 volts. Since the discharger still draws some current when buzzing, try to disconnect the discharger once the alarm sounds--dont leave it going for hours lest the battery be over discharged.

Discharger for Receiver Battery Packs circuit

There are a couple ways you could modify the circuit to work with a 5-cell 6-volt receiver battery pack. The two 1k resistors are a divider network, so one way would be to change the resistors to change the sampling voltage at the comparator. The formula for a divider network is Vout=Vin(R2/(R1+R2)) or R1=R2*((Vin/Vout)-1). Here, R1 is the resistor connected to the positive lead and pin 7 of the comparator, Vin is 5.25 volts (1.05 volts per cell discharge shutoff threshold), and Vout is the reference 2.1 volts (the voltage produced by the LM317T and the 180 and 270 ohm resistors). You can use R2 as the same 1k value that was there before. So R1=1000*((5.25/2.1)-1)=1500=1.5k. So swap the top 1k resistor in the schematic for a 1.5k, and the new shutoff voltage for your device will be 5.25 volts.

To increase the discharge rate, decrease the resistance of the load resistors. You could use four 100 ohm resistors in parallel instead of two, for example, and it would discharge twice as fast. Resistance of a number of resistors in parallel is the value of the resistor devided by the number of the resistors. Here, 100 ohms/ four resistors is 25 ohms. At five volts, current is (5 volts)/(25 ohms)=0.2 ampere or 200mA. Be careful not to decrease resistance too much however--the small signal transistor used in this particular circuit is probably only rated for maximum 500 mA.

Circuit diagram :
Discharger for Receiver Battery Packs circuit 1 Discharger for Receiver Battery Packs1
Parts:
273-074 Miniature Piezo Buzzer, 12v, PC board mount
271-312 1/4 watt 5% carbon film resistors, 500 pieces (Just do it!)
276-1778 LM317T adjustable voltage regulator
276-1712 Quad comparator LM339
276-1622 LED assortment (20 count)
276-2009 NPN Silicon transistor MPS2222A (2N2222)

Custom electronics:
 
I post this design not because I think this is a brilliant piece of circuit design but because the design works, and it can give you a start on your own experimentation. The idea is to use the power available from the discharging battery to monitor the voltage of the battery, shut off discharging at a preset voltage (here 1.05 volts/cell), and sound an alarm when discharging is complete. To do so means a voltage reference powered by the changing voltage of the battery, here the LM317T and the 180 with 270 ohm resistors. You could just as easily use a LM336 (see the low voltage warning buzzer page) or a zener with resistor, or something else as a reference. Since the reference voltage must be below the ambient battery voltage, a pair of 1k resistors provides the divided test voltage. The LM339 is a four way comparator.
 
This design uses really three comparators: in addition to the one driving the transistor, a comparator drives the LED and another drives the buzzer. But you could use a single comparator (like the LM311) with the buzzer across the emitter and collector of the transistor, and the LED in series with a 270 ohm resistor across (parallel with) the 100 ohm load resistors. With the transistor conducting, the voltage drop across base and emitter is low, and the buzzer is quiet. The tiny current in a piezo buzzer (7 mA), when the transistor is not conducting, would be divided between the load resistors and the LED, and the LED is dark.
A word about the comparator.

 
Source :  http://www.ecircuitslab.com/2011/06/discharger-for-receiver-battery-packs.html
ReadMore....

12V Powered 12V Lead Acid Battery Charger with Indicator

Some of you might wonder why a charger is needed at all, to charge a 12 Volt battery from a 12 Volt source! Well, firstly the "12 Volt" source will typically vary anywhere from 11 Volt to 15 Volt, and then a battery needs a controlled charge current and voltage, which cannot result from connecting it directly to a voltage source. The charger described here is intended for charging small 12 Volt lead acid batteries, such as the gelled or AGM batteries of capacities between about 2 and 10 Ah, using a cars electrical system as power source, regardless of whether the car engine is running or not. I built this charger many years ago, I think I was still in school back then. On request of a reader of my web site, Im publishing it now, despite being a rather crude circuit.

12V Powered 12V Lead Acid Battery Charger with Indicator
It works, it is uncritical to build, and uses only easy-to-find parts, so it has something in its favor. The downside is mainly the low efficiency: This charger wastes about as much power as it puts into the battery. The charger consists of two stages: The first is a capacitive voltage doubler, which uses a 555 timer IC driving a pair of transistors connected as emitter followers, which in turn drive the voltage doubler proper. The doubler has power resistors built in, which limit the charging current. The second stage is a voltage regulator, using a 7815 regulator IC. Its output is applied to the battery via a diode, which prevents reverse current and also lowers the voltage a bit.

12V Powered 12V Lead Acid Battery Charger with Indicator
The resulting charge voltage is about 14.4V, which is fine for charging a gelled or AGM battery to full charge, but is too high as a trickle charger, so dont leave this charger permanently connected to a battery. If you would like to do just that, then add a second diode in series with D3! There is a LED connected as a charge indicator. It will light when the charge current is higher than about 150mA. The maximum charge current will be roughly 400mA. There is an auxiliary output, that provides about 20V at no load (depending on input voltage), and comes down as the load increases. I included this for charging 12V, 4Ah NiCd packs, which require just a limited current but not a limited voltage for charging.

12V Powered 12V Lead Acid Battery Charger with Indicator
Note that if the charge output is short-circuited, the overcurrent protection of U2 will kick in, but the current is still high enough to damage the diodes, if it lasts. So, dont short the output! If instead you short the auxiliary output, the fuse should blow. I built this charger into a little homemade aluminum sheet enclosure, using dead-bug construction style. Not very tidy, but it works. Note the long leads on the power resistors. They are necessary, because with shorter leads the resistors will unsolder themselves, as they get pretty hot! The transistors and the regulator IC are bolted to the case, which serves as heat sink. The transistors dont heat up very much, but the IC does.

 
Source: Homo Ludens
ReadMore....

Thursday, April 11, 2013

Ultra Fast Battery charger circuit

Ultra Fast Battery Chager for Nickel-Cadmium battery cells [NiCad] which will be discussed in this article is Fast NiCad Battery Charger, called the Ultra Fast Charger Battery Charger NiCad because it can make filling fast NiCad Batteries Cell. A battery charger in Desai has a fast charging capabilities such as Ultra Fast Battery Chager for Nickel-Cadmium battery cells [NiCad] on this article shall be equipped with some ability to protect the battery and charger circuit itself.

Feature owned by Ultra Fast Battery Chager for Nickel-Cadmium battery cells [NiCad] 

  • Autoshut-off, is the ability of the charger to stop charging current to a NiCad battery if the capacity NiCad battery is fully charged.
  • Polarity Protection, with the existence of this capability so if there are mounting the battery on the charger upside yan can be known.
  • Constant output voltage
  • Output currents enough to fill some NiCad batteries at once in parallel.
  • Short Circuit Protection, with the existence of this protection circuit so if there is short-circuit caused by a battery and a charger circuit itself will not damage the other parts are not damaged.
  • Series Ultra Fast Battery Chager for Nickel-Cadmium battery cells [NiCad]



Image series above is a series of schematic drawings for Ultra Fast Battery Chager for Nickel-Cadmium battery cells [NiCad]. Ultra Fast Battery Chager for Nickel-Cadmium battery cells [NiCad] can be used for 8 to 10 NiCad batteries at once with 12 volt output voltage and max current is 3.5 A. The main components in the circuit of Ultra Fast Battery Chager for Nickel-Cadmium battery cells [NiCad] is UC3843 and MC34181. UC3843 chip is a voltage regulator and M34181 is a JFET OpAmp with characteristic low offset voltage, input impedance is very high. MC34181 serves as a voltage comparator.
ReadMore....

Wednesday, April 10, 2013

Automatic Battery Charger

Normally, chargers available in the market do not have any sort of control except for a ro-tary switch that can select different tap-pings on a rheostat, to vary the charging current. This type of control is not adequate because of the irregular fluctuations in the mains supply, rendering the control ineffective.  A simple circuit intended for automatic charging of lead-acid batteries is presented here. It is flexible enough to be used for large capacity inverter batteries. Only the rating of transformer and power transistor needs to be increased.

Circuit diagram :
Automatic Battery Charger Circuit Diagram
Automatic Battery Charger Circuit Diagram
 
The circuit has been basically designed for a car battery (about 40 Ah rating), which could be used for lighting two 40W tube lights. The circuit includes Schmitt trigger relay driver,float charger,and battery voltage monitor sections.  The Schmitt trigger is incorporated to avoid relay chattering. It is designed for a window of about 1V. During charging, when the battery voltage increases be-yond 13.64V, the relay cuts off and the float charging section continues to work. When battery voltage goes below 11.66V, the relay is turned on and direct (fast) charging of the battery takes place at around 3A.  In the Schmitt trigger circuit, resistors R1 and R2 are used as a simple voltage divider (divide-by-2) to provide battery voltage sample to the inverting input terminal of IC1. The non-invert-ing input terminal of IC1 is used for reference input derived from the output of IC2 (7806), using the potentiometer arrangement of resistors R3 (18 kilo-ohm) and R4 (1 kilo-ohm). 

LED1 is connected across relay to indicate fast charging mode. Diodes D3 and D6 in the common leads of IC2 and IC3 respectively provide added protecion to the regulators.  The float charging section, comprising regulator 7812, transistors T3 and T4, and few other discrete components, becomes active when the battery volt-age goes above 13.64V (such that the relay RL1 is deenergised). In the energised state of the relay, the emitter and collector of transistor T4 remain shorted, and hence the float charger is ineffective and direct charging of battery takes place. 

The reference terminal of regulator (IC3) is kept at 3.9V using LED2, LED3, and diode D6 in the common lead of IC3 to obtain the required regulated output (15.9V), in excess of its rated output, which is needed for proper operation of the circuit. This output voltage is fed to the base of transistor T3 (BC548), which along with transistor T4 (2N3055) forms a Darlington pair. You get 14.5V output at the emitter of transistor T4, but because of a drop in diode D7 you effectively get 13.8V at the positive terminal of the battery. When Schmitt trigger switches ‘on’ relay RL1, charging is at high current rate (boost mode). The fast charging path, starting from transformer X2, comprises diode D5, N/O contacts of relay RL1, and diode D7. 

The circuit built around IC4 and IC5 is the voltage monitoring section that provides visual display of battery voltage level in bar graph like fashion. Regulator 7805 is used for generating reference voltage. Preset VR1 (20 kilo-ohm) can be used to adjust voltage levels as indicated in the circuit. Here also a pot meter arrangement using resistors R7, R8, and R9 is used as ‘divide by 3’ circuit to sample the battery voltage. When voltage is below 10V, the buzzer sounds to indicate that the safe dis-charge limit has been exceeded.


Author : Yash Deep - Copyright : EFY Mag
ReadMore....

Tuesday, April 9, 2013

Battery Saver

A small electronic switch that connects a battery to the equipment for a certain amount of time when a push-button is momentarily pressed. And we have also taken the ambient light level into account; when it is dark you won’t be able to read the display so it is only logical to turn the switch off, even if the time delay hasn’t passed yet. The circuit is quite straightforward. For the actual switch we’re using a well-known MOSFET, the BS170. A MOSFET (T2 in the circuit) used in this configuration doesn’t need a current to make it conduct (just a voltage), which makes the circuit very efficient. When the battery is connected to the battery saver circuit for the first time, capacitor C2 provides the gate of the MOSFET with a positive voltage, which causes T2 to conduct and hence connect the load (on the 9 V output) to the battery (BT1). C2 is slowly charged up via R3 (i.e. the voltage across C2 increases).

Battery Saver Circuit Diagram

battery-saver-circuit-diagramw

This causes the voltage at the gate to drop and eventually it becomes so low that T2 can no longer conduct, removing the supply voltage to the load. In this state the battery saver circuit draws a very small current of about 1 µA. If you now press S1, C2 will discharge and the circuit returns to its initial state, with a new turn-off delay. Resistor R5 is used to limit the discharge current through the switch to an acceptable level. You only need to hold down the switch for a few hundredths of a second to fully discharge C2. In our prototype, connected between a 9 V battery and a load that drew about 5 mA, the output voltage started to drop after about 26 minutes. After 30 minutes the voltage had dropped to 2.4 V. You should use a good quality capacitor for C2 (one that has a very low leakage current), otherwise you could have to wait a very long time before the switch turns off!
The ambient light level is detected using an LDR (R1). An LDR is a type of light sensor that reduces in resistance when the light level increases. We recommend that you use an FW150, obtainable from e.g. Conrad as part number 183547-89. When there is too little light its resistance increases and potential divider R1/R2 causes transistor T1 to conduct. T1 then charges up C2 very quickly through R4, which limits the current to a safe level. This stops T2 from conducting and the load is turned off. The choice of value for R2 determines how dark it has to be before T1 starts to conduct. The battery saver circuit can be added to devices that use 6 or 9 volt batteries and which don’t draw more than 100 mA. The circuit can be built on a piece of experimenter’s board and should be made as compact as possible so that it can be built into the battery powered device.
Copyright : Elektor Electronics

Source:  http://www.ecircuitslab.com/2011/06/car-battery-saver-circuit.html
ReadMore....

Thursday, April 4, 2013

NiCd Battery Charger

The design of the charger is similar to that of many commercially available chargers. The charger consists of a mains adaptor, two resistors and a light-emitting diode (LED). In practical use, this kind of charger is perfectly all right. Resistor R1 serves two functions: it establishes the correct charging current and it drops sufficient voltage to light the diode. This means that the LED lights only when a charging current flows into the battery. The charging current is about 1/4 of the battery capacity, which allows a slight overcharging, and yet the charging cycle is not too long (4–5 hours).

NiCd Battery Charger Circuit DiagramThe value of the resistors may be calculated as follows, for which the nominal e.m.f. and the capacity of the battery must be known. Adjust the output of the mains adaptor to 1.17 times the nominal battery voltage plus 3.3 V, which is the potential across R1. Note that the adaptor must be capable of supplying a current of not less than half the battery capacity. The value of R1 in ohms is equal to 3.3 divided by 1/4 of the battery capacity. The value of the resistors for various battery voltages is given in the Table. The battery capacity is taken as 1 Ah.

NiCd Battery Charger Circuit DiagramThe rating of R1 should be 5 W. If the battery to be charged has a different capacity, the theoretical value of R1 in the table must be divided by the battery capacity. Its actual value is the nearest one in the E12 series. For instance, if a 6 V battery with a nominal capacity of 600 mAh is to be charged, the value of R1 must be 20/0.6 = 33R.
ReadMore....