Showing posts with label opamp. Show all posts
Showing posts with label opamp. Show all posts

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.

 

Thursday, November 3, 2011

Air-X new controller

I have removed the internal Air-X circuit board from the turbine nacelle as described here and instead built three simple circuits to convert and connect my 24v Air-X marine turbine to the batteries.

I've called the circuits;
  1. Rectifier Circuit
  2. Brake Circuit
  3. Controller Circuit.

1. Rectifier Circuit
Below is the main three-phase rectifier circuit. B1, B2 and B3 are 35 amps 200v rated bridge rectifiers. I've used three separate bridge rectifiers instead of one three-phase rectifier simply because it was easier to source and it turned out to be cheaper too. The three phases from the turbine is fed into the three rectifiers producing a wild varying DC voltage. This output is connected to either the 12 or 24 battery sets through a relay as described below in the Controller Circuit.

2. Brake Circuit
The braking system I opted for my wind turbine is a manual system.
The original Air-X used it's internal controller to electronically brake the turbine. This used to happen by applying a brute short circuit across the phases without first slowing the turbine down. This sudden braking used to violently shake the turbine, transmitting the vibrations down the turbine tower, adding unnecessary  stresses on the turbine blades and thus increasing the possibility of blade fractures!
I decided to improve the braking system by stopping the turbine in two stages. First a load is applied across the three phase, slowing down the turbine and approximately 10 seconds afterwards, the three phases are shorted out.

With reference to the below circuit, switch S1 is the braking switch. When it's closed, i.e. the brake applied, two things will happen;
1) Relay RL1 is immediately energised and the three phases are shorted out through resistors R3, R4 and R5. These resistors are 1Ω 100W resistors mounted a heat sink. This will slow down the turbine.  
2) The 'delay circuit' kicks in. Capacitor C1 starts charging through diode D1 and resistor R1. When it reaches a certain voltage (thus the delay), transistor TR1 is switched on and this in turn will energise relay RL2. Relay RL2 will short out the turbine three phases, thus applying the maximum load which will stall the turbine. Diode D3 will protect TR1 from RL2 back emf. The delay can be increased by increasing R1 and/or C1.
 
3. Controller Circuit
The below circuit is the new controller I've built for my Air-X. It's much simpler than the original internal regulator, however I now have the added benefit of charging 12v batteries in low wind conditions.


The three phase from the turbine is rectified by two bridge rectifiers B1 and B2. These are 1 amp rated rectifiers and their output is used to;
1) Power the circuit itself, including the controlling relay. No external supply is needed to power the controller. I will just use 0 watts in no wind conditions.
2) Used as a reference voltage to control the controller (relay) output.
Capacitors C1 and C2 provide smoothing to the rectifiers output, while LED D2 acts as a quick reference to indicate the current turbine power strength. The higher the turbine spins, the brighter the LED.
The varying DC voltage is fed to a 12v voltage regulator IC1 and it's output is further smoothed by these large capacitors; C3, C4, C5 and C6. These capacitors act as reservoirs to power the circuit. They are needed to reduce any voltage fluctuations due to fast changing wind conditions. 
IC2 is the popular quad opamp LM324. In this case, I'm using only one of the opamps in a comparator mode.
Pin 2 is held fixed at 6v (half the regulated supply voltage) by the voltage divider resistors R5 and R6. Capacitor C8 helps in keeping this reference voltage constant.
On the other hand, Pin 3 is fed from the turbine unregulated output through potentiometer P1, R7 and D5. This varying voltage is smoothed by capacitor C9 which also act as a reservoir to eliminate any fast-changing wind conditions.
When pin 3 is lower than pin 2, i.e. in low wind conditions, the output from the opamp is off, TR1 is off and relay RL1 is De-energised and therefore the output from the turbine connected to the 12v batteries.
When pin 3 goes higher than pin 2, i.e. in high wind conditions, the output from the opamp is on, TR1 is on and relay RL1 is energised and therefore the output from the turbine connected to the 24v batteries.
Potentiometer P1 is used to adjust the threshold voltage at which the turbine is connected to either the 12v or 24v batteries.
LEDs D3 and D4 indicate whether the turbine is charging the 12v or 24v battery sets. D3 is on when the opamp is on i.e. in the 24v mode while the green LED is on when charging the 12v batteries.

Completed circuits
The three above circuits have all been housed into a plastic box as shown below.


  • Attached to the top heat sink are the three bridge 35 amp rectifiers.
  • Attached to the right heat sink are the three 1Ω 100W resistors used for the first stage of the brake system.
  • The three relays in the middle
    • The left relay controls the output from the controller, i.e. charging either 12v or 24v.
    • The middle relay is the dead-short across the turbine output. Full break.
    • The right relay is the brake first stage relay which shorts the turbine output across the power resistors, slowing it down.
  • The controller circuit is sitting at the bottom of the box.