Showing posts with label LM324. Show all posts
Showing posts with label LM324. Show all posts

Tuesday, August 15, 2017

Inverter cooling circuit


Circuit Description:
The circuit is based around the LM324 quad Opamp configured as differential amplifiers.
QA1a generates a very stable voltage, set to 10v, while QA1b will compare this stable voltage against the voltage difference generated by the thermistor. The thermistor is an NTC 47K. NTC stands for Negative Temperature Coefficient i.e. the resistance decreases when the temperature rises.
Opamp QA1b inverting input (-) is preset to 8v while the non-inverting input (+) is fed from the voltage difference between the 47K preset and the 47K thermistor. When the temperature rises, the thermistor resistance will decrease and therefore the the non-inverting input (+) voltage will rise. Once the non-inverting (+) input is higher than the inverting input (-), the output of the opamp will go high, turning on the transistor Q1 which in turn will turn on the relay RLY1. The relay will in turn switch on the cooling fans.
Capacitors C2, C3, C4 & C6 offer some hysteresis so that the fans will not switch on/off continuously.
U1 is a 7812 voltage regulator. Since the available voltage inside the inverter is 24v and the circuit needs 12v, the regulator is used to step down the voltage, smoothed further by C1.

Parts List:
D1 - 5.6v Zener Diode
D2, D3 - 1N4001
D4 - Red LED
U1 - 7812 voltage regulator
OA1a, OA1b - LM324
R1 - 4.3K
R2 - 5.6K
R3 - 1K
R4 - 5.6K
R5 - 47K Preset
R6 - 1K
R7 - 47K Thermistor (NTC)
R8 - 47K Preset
R9 - 1.2K
C1, C5 - 2200uF
C2, C3, C4, C6 - 1000uF
Q1 - TIP122
RLY1 - Relay

Monday, February 3, 2014

Chimney space heating

Project Description


My fireplace (located on the ground floor) has been installed in a way that the chimney passes through the main bedroom (located on the first floor) before emerging from the roof. The idea being that heat generated from the chimney pipe will be radiated also in the bedroom before being lost once it reaches outside. I liked the idea however the implementation is very poor and inefficient. In fact, very little heat is actually transferred to the bedroom. The main reason is that the original system relied only on the fact that natural air will flow around the chimney pipe and get heated in the process (through both convection and radiation). My problem is that very little air can flow around the chimney pipe since it has been enclosed in gypsum board. There are only two holes through which air can flow, a 15x15cm hole at the bottom and a 20x20 hole at the top. Cold air will theoretically be sucked from the bottom and get heated as it flows out from the upper hole. In theory that's what is should happen however in practice, very little heat is transferred!

To improve this concept, I have installed a fan at the bottom opening which sucks in cold air and pushes it against the chimney pipe, while four smaller fans installed at the top opening will push the warm air out from the chimney enclosure into the bedroom.

Circuit Description

The designed circuit is based on the popular quad opamp LM324. It will control a small number of fans, these switching on depending on temperature, i.e. once the chimney temperature rises beyond a pre-defined threshold, the fans will be powered on (slow speed). Once a second pre-defined threshold is reached, the fans are powered fully on. This two-step switching has been implemented because these fans are installed in a bedroom and it's very undesirable to have a number of fans fully blowing at night. Also, the chimney will eventually get cooler at night because the fire will diminish and therefore it's useless having the fans blowing at full speed.
The circuit is powered by a 12v supply. Supply regulation is not critical. In my case, I've used the house 12v which I have wired around the house. I'm getting this supply from a 12v battery, charged by a solar panel. More details about the off-grid system can be found here. Capacitors C2 and C3 have been included to stabilise the supply rail.
I've used one of the opamps (IC1D) to generate a very stable 10v supply. This 10v is used as a reference voltage for the other two comparators.
The temperature is measured using a 47K (ntc) thermistor. An ntc thermistor will decrease it's resistance as the temperature rises.
The two comparators are IC1B and IC1C, both are identically wired with preset P1 setting the temperature (reference voltage) for IC1B and preset P2 setting the temperature (reference voltage) for IC1C. This reference voltage is applied to the opamps Inverting input.
The non-inverting input is fed through resistors R9 and thermistor R10. As the temperature rises, the voltage at this junction will increase and therefore the voltage at the opamp's non-inverting input will increase.
Opamps IC1B and IC1C outputs are buffered using transistors TR1 and TR2 respectively. These provide enough current gain to power the fans. Resistor R8 has been specifically choosen to power the fans at a lower speed. Please note that both transistors have to be placed on a small heatsink. Although the transistors will operate only as switches, i.e. either fully off or fully on, they will get pretty hot with as little as 0.5amps of current.


The below image is displaying the finished circuit board built on a small vero board. The circuit will be installed in a 6x3 conduit box.

 
 
The image below is showing the connections and major components of the circuit.
 

 
 
The image below is showing the location/conduit box into which the circuit has been placed. I have added an external switch to turn off the circuit during the warm months.
 
 
 
The next two images are showing the bottom and top holes into which the fans have been installed. The chimney pipe is installed in the corner of the room enclosed with gypsum boards. The bottom fan will suck cold air and push it into the chimney enclosure. The sucked in air will heat up as it passes next to the hot chimney pipe and will eventually be blown out from the top fans into the room, thus heating up the room.
 





 



Friday, May 10, 2013

Diversion load circuit


Scope

The circuit below has been designed to control the amount of charging applied to my house forklift batteries, while diverting the ‘not used’ power to a small grid-tie inverter. The circuit has been kept simple, minimising cost and making trouble shooting easier in case of problems.

Please refer to the Off-Grid System Update Post for more details.
 
 

Circuit Description

The relays contacts have been connected in a way to automatically (while de-energised) route the power to the batteries. Therefore if the batteries are low, no power is wasted to power the circuit/relays! Once the battery voltage starts rising, the circuit will come on, the relays will energise incrementally (depending on the threshold voltages) and power is redirecting from the batteries to the inverter.

Power from the arrays is fed via diodes D10, D11, D12 & D13 to power the circuit itself. The voltage is fed to IC1 - 7812, a linear voltage regulator via dropping resistor R21. The voltage is stepped down to a stable 12v which is used to power the opamps and relays. R21 was needed because the 7812 maximum input voltage is about 35v. This is a bit low considering the voltage coming in from the panels which can reach even 45v (Uoc). Resistor R21 will reduce the input voltage to 20-30v which is within the regulator input operating voltage. Diodes D14 and D15 will increase the regulator voltage by a further 1.4v thus getting around 13v (no load) from the regulator. The circuit voltage is further smoothed and stabilised by capacitor C1, C6 and C7. Varistor RV1 clamps the maximum voltage to 14v.  
The basic principle behind the circuit is simple. Switching is performed by comparing the battery voltage to a fixed reference voltage. Different thresholds have been pre-set thus switching power incrementally at fixed intervals. The four opamps found in the LM324 chip (IC2) have been configured as comparators.

The fixed reference voltage is provided by IC3A. The opamp configuration outputs a very stable 10v through resistor R9. This fixed voltage is applied to the inverting input of IC2 four opamps.
The circuit has got four distinct comparators IC2A, B, C, and D. Since all four are identical, I’ll write only about IC2A. Voltage from the battery is taken via potentiometer POT1 through resistor R20. This voltage is stabilised by resistor R19 and capacitor C11. This will eliminate any sudden voltage fluctuations (which may be caused by sudden huge loads on the batteries or clouds passing over the panels) thus reducing unnecessary switching of the arrays. Further switching stabilisation is also provided at the output of the comparator via resistor R1 and capacitor C2. When the voltage at the non-inverting input (Pin 3 – Connected to the battery sense) is higher that the inverting input (Pin 2 – connected to the reference voltage), the opamp switches on. This will bias the transistor TRN1 which will energise relay RLY1.Once energised; the relay will direct the access power to the grid tie inverter. Diode D1 protects the transistor TRN1 against the relay coil back emf, while LED D5 signals the relay state.

The circuit has been calibrated to divert power at specified battery voltages. These have been set at 27v, 28v, 29, and 30v.