Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Specification
Battery Input voltage :
12V DC 48V DC
0V 440V, 45Hz-65Hz
AC Output
Inverter topology
300VA - 3000VA
Battery charging
Charging current
(Inverter)
Highlights
1.
2.
3.
4.
5.
6.
7.
Protections against all possible errors like battery low, over load, heavy load, short circuit etc.
8.
Early warning for battery low and overload conditions. System continue normally if the error is
corrected.
9.
Cutoff and auto restart with permanent cut after 5 consecutive cutoff.
10.
11.
Pure sinewave output resulting in silent operation of motor and fans. Safe to all kind of loads.
12.
13.
14.
Auto detect of LCD and LED. Can change between LED / LCD while the system is powered.
15.
Pin Number
Functional Description
GND pin
10
11
Buzzer pin
12
13
14
Solar Switch
15
Relay Drive
16
17
18
19
GND pin
20
21
22
23
24
25
26
27
GND pin
28
These pins are very sensitive. Do not touch these pins or extend wires from them, which can cause
unwanted reset of DSPIC.
ADC section
AC input and output sensing
The AC input and AC output sensing is with the sense module. The resistors R44-R49 and R51-R56
determine the scale-down of the mains voltage. It is recommended to use metal film resistors for these
parts. The module scale down the voltage and give to the dsPIC. It was found that it is better to put a
filtering capacitor of 0.1uF disc from the mains sensing pin to GND. (From pin 2 to Pin 27). This give
better stability for mains sensing. Whenever this capacitor is connected or removed the mains input is to be
re-calibrated.
Load Sensing
The load sensing is through the current transformer (CT) T1. You can use CT1200 or the equivalent. The
shunt resistor R61 determine how much voltage is sensed for the load. A recommended value for this
resistor is 100 Ohm divided by KVA. That is, for 1KVA R40 = 100 / 1 = 100 Ohms. For 500VA R40 = 100
/ 0.5 = 200 = 220 Ohms or 180 Ohm.
Note: When mains is absent and inverter is switched off the voltage at pin 2, 3 and 4 will be very near to
completed.
Battery Sensing
The battery sensing is through a simple resistor divider with R43, R69. The capacitor C31 is used for a
filtering. The values of the resistors is not critical because the system has battery voltage calibration. But
much drift in the values of the sensing resistors will result in improper sensing of the battery voltage. A
usual mistake that found is that for 2 battery system the manufacturer put R43 = 47K which is the value of
single battery. In this case when the battery reach near full charge the ADC input will reach its peak
voltage and further increase in the battery voltage will not be sensed. The formula for R43 is:
R43 = 47 + 51 X (N-1) where N = number of batteries.
With this formula you get the resistor value in Kilo Ohms.
It is expected that the voltage appear at pin 7
example when battery voltage = 12V voltage at pin 5 = 12/4.92 = 2.44V. If number of battery = 2, the
value K = 4.92 X 2 = 9.84. So when battery voltage = 24V the voltage at pin 5 is same 2.44V. If the battery
voltage divider resistor values are changed the battery voltage sensing will be improper.
The usual error happen is the capacitor C31 across R69 has a leakage and hence the sensing
voltage at pin 5 is much below the expected voltage. In this condition the battery voltage
calibration can not be completed as expected. Other error that manufacturers make is the
value of R43 is not increased when number of battery = 2 or more. This will make the
voltage at pin 5 above 5V. In this condition the system will not sense the battery voltage if it
rise above 25V (approximate) and hence the full charge will not be sensed.
Temperature sensing
Temperature is sensed with an NTC or dedicated temperature sensing IC MPC9701. We recommend to use
MCP9701 because non standard NTC cause improper working. The MCP9701 is placed near the heatsink
with it flat surface facing the heatsink so that it can be tightned to the big heatsink. See the figure below
Sensing of Switches
The switches are sensed through one ADC pin itself. This is for saving the controller pins. Resistances
R57, R58, R59 and R70 form a divider network. The values of these resistances are selected in such a way
that the voltage at pin 7 of the controller will be significantly different in different possible combination of
the switches.
The 3 switches that can be connected to the connector CN4 are:
1.
ON/OFF switch
2.
3.
10
Relay driving
Pin 15 is for relay driving. This is done through Q26 transistor BC639. Also note that a torroid core T12.5
page 19 (or around). In order to speed up the changeover the relay switch on is
done with a separate circuit. This is shown in the next page.
Buzzer
Pin 11 through a transistor is for buzzer control. You can use a good quality B20 buzzer. It was practically
found that low quality buzzers available in market which will fail without any reason after few weeks.
Fan control
Pin 12 is for fan controlling. It is driven through a transistor. A regulator IC 7812 is used to assure that the
voltage for fan does not go above 12V. This is recommended for reliable operation.
The fan should be screwed to the heatsinks, in such a way that air from the fan blow
directly towards the heatsinks. The small heatsinks are aligned in such a way that a
commonly available 3 inch fan can be screwed to the heatsink.
The fan is controlled as per the temperature sensed with the sensor connected to pin 6 of the controller.
11
LCD control
The six pins 17, 18, 21 and 22 are used for LCD driving. These pins along with +5V, GND coming to the
connector CN5 which is used to connect the LCD driving PCB. The wiring of LCD is given somewhere in
the following pages of this document.
12
The circuit shows one side drives of the MOSFETs. The upper and lower drives are shown. The upper and
lower drives of the other side is exactly similar to this. The circuit also shows the current sensing and short
circuit signaling section based on LM393 (U3)
13
MOSFET drive to the ground side MOSFETs is done with 4 transistors Q24, Q14, Q12 and Q22. Similar
circuit is used to drive the other lower side MOSFETs. Higher side drive is with opto-coupler and its
associated circuit.
Current sensing
High speed sensing of MOSFET current is done with diodes D7, D8, D9, D10 and resistors R22, R23.
Common point of D7 and D8 will have the voltage corresponding to the MOSFET current. This is
compared by the opamp U3 (LM339) and the signal is given to pin 16 of the dsPIC. Note that this is only
for the hazard current sensing of MOSFETs. The load measurement is done with current transformer
CT1200.
14
ON/OFF switch
2.
3.
One more connection terminal is present in the CN4 which is used for solar charger selection. Note that
solar charger / mains charger selection is not done manually, but automatically by the solar charger circuit.
Normally the ON/OFF switch is provided in the front panel. The UPS/Inverter selection switch is placed at
the rear panel. Solar charger / Mains charger selection is not connected to a switch but is driven from the
solar charger circuit. When the solar charger is active and charging the battery (there is sufficient sunlight
to charger the battery) the solar charger will make the solar charger selection pin low. At this time the
inverter will disable mains charger.
The Automotive battery / Tubular battery selection switch can be placed at the rear panel of the system.
The +ve connection of the battery taken from the big heatsink and the -ve wire taken from the PCB should
have sufficient thickness to carry the battery current. When the battery is connected, the system will start
with a special beep, like: beep-beep-beep-beep. This indicates the power on of the controller. This beep
will be heard only when the battery is connected. After that this kind of beep will not be heard until the
battery is disconnected and connected again.
If the above said power-on beep is heard during normal working of the system it means that
the system got an unwanted reset. This can happen if the high current / high voltage wiring
is taken near the low current signal wiring (LCD / switch wiring). This also result when the
capacitors from pin 9 and 10 are not soldered. There is a chance to miss this capacitors
since they are SMD parts fixed under the PCB. Also take care to fix the LCD without any
electrical contact with the cabinet. It is wise to use not metal front panel and fix the LCD on
it.
When the mains is in acceptable range the system will bypass mains and will charge the battery. The
battery charging current will depend on the set value. When the battery voltage reach the full charge level
restarts. The magnitude of T depends on the type of battery selected (Automotive battery / Tubular battery
selection). If tubular battery is selected T = 2.4V per battery. If automotive battery is selected T = 1.44V
per battery. Also note that this depends on the correctness of the resistors R43, R69 connected to pin 7 of
the microcontroller.
Fan controlling
The fan is controlled as per the temperature sensed with the MCP9701. Temperature is sensed and fan
controlling is done in mains as well as inverter mode. In case of excess temperature also the system will
be inactive. The display will show the status. See the section temperature sensing at page 8 (or around).
15
The system will consider the mains voltage as OK when the mains is within a specified range. In inverter
mode the acceptable range is from 100V to 285V and in UPS mode this is from 180V to 265V. When the
mains voltage cross this range the system will activate the inverter if the standby mode is ON (front panel
switch is ON). The software is giving a hysterisis gap for the changeover voltages. For example in UPS
mode if the mains voltage is dropped below 180V the system will changeover to inverter but the system
will return to mains if the mains voltage rises above 190V. That is, there is a gap of 10V. This is for the
stability of the changeover. For low voltage changeover the hysterisis gap is 10V and in high voltage
changeover the gap is 5V. This is because high voltage changeover will get a natural hysterisis.
In UPS mode the changeover to inverter will be fast and in synchronous with mains waveform. In inverter
mode the changeover will be comparatively slow, but will be in synchronous with mains waveform.
Slow starting of the system is done if the mains is already absent and the standby mode is switched on in
the absence of mains.
Inverter mode
When the system is in standby mode the inverter will start if the mains is not in acceptable range. As stated
above the smooth start will be done if the standby mode is switched on in the absence of mains. In inverter
mode the system will be continuously checking the mains and if the mains is acceptable the system will try
to synchronous the inverter waveform with mains. The inverter to mains changeover will happen only after
the mains-inverter synchronization is correct.
If the load is within the overload limit, the output voltage will be maintained at the set value. Even if the
output feedback is accidentally disconnected the system will not boost the output voltage, but instead will
In inverter mode the system will be continuously sensing overload and battery low voltage conditions.
These levels are user settable in setup mode. When the error conditions exist the system will display the
status and will give buzzer beep also. If the error condition continues for more time then the system will
activate cutoff. The system will automatically restart from cutoff mode after a delay. In case of battery low
cutoff there will be only one restart allowed. In case of overload cutoff system will give 5 restart chances.
16
Overload sensing
The system sense the load through the current transformer CT1200. The value of shunt resistor across the
CT determine the proper sensing of load as well as overload / short circuit condition. The load should be
properly calibrated using calibrate menu in setup mode.
In setup mode there are 2 parameters that determine the overload sensing level. (1) load calibration under
calibration menu and (2) Inv Load level in parameter menu. For example for a 500W system you can
calibrate the load by connecting a 300W and making the display = 300. Then you can make the load limit
parameter = 500.
When the system is set for 500W load limit the overload sensing will start from 12% above the level, that
is 500+12% = 560W. The software is designed to limit the current through the CT at the rated current only.
That is, if the load is set for 4A through the CT then the system will limit the output voltage so that the
current through the CT will not exceed 4A. This means that when overloaded the output voltage will be
dropped. But voltage dropping will not be done for the first 2 seconds of the overload.
When overloaded the output voltage is not limited for around 2 second. After that limiting starts. A heavy
load or short circuit is detected by the dedicated circuit explained in page 10. The short circuit signal from
the IC U3 will trigger a current limiting section in the dsPIC and will immediately limit the voltage.
Compared to our earlier design the present method for short circuit sensing is different. Earlier the short
circuit sensing was done with software. In case of heavy load or short circuit the output will be dropped to
very low level and will be smooth started from there. Now the short circuit protection is done with
hardware + software. In case of a heavy load the output is limited but it is immediately restored when the
load is removed.
Cutoff mode
The system enter cutoff mode in case of battery low, over load, short circuit or no feedback conditions.
System will stay in cutoff mode for few second and will restart automatically. If the error condition still
exist the system will enter cutoff mode again and will restart again. In case of cutoff due to battery low,
system allow only one restart. Other cutoff will have 5 restart chances. If the system fail to work even after
the last restart then permanent cutoff is done. When the system is in cutoff mode or permanent cutoff
mode, quick restart will happen if the front panel switch is turned off or if the mains is applied.
Inverter-Mains changeover
In inverter mode when the mains is restored the system will first try to synchronous the inverter waveform
with mains waveform. The ac input sensing network and the capacitor between pin 2 and 27 are very
important for the proper sensing and synchronization of the waveform. When the mains and inverter
waveform are in phase the system will activate the changeover. The relay will be switched off and the
display will show the changeover message. If battery low or overload condition was present at the time of
changeover these conditions will be stopped and buzzer beep will be paused.
17
Connection diagram
The connection diagram is given in the next page.
While connecting the LCD it is very important that the GND connection of the LCD SHOULD
NOT come in contact with the cabinet through the fixing screws. If this happens the
microcontroller will get unwanted resets and sometimes will hang, resulting in strange
behaviors. These sometimes cause damage to the LCD. It is recommended to use plastic front
panel instead of metal.
The connection to the LCD display can be done with thin wire. The connection of 0-250 winding of the
transformer to the PCB and connection of AC terminals to the PCB is to be done with 40/36 guage (0.75
sq mm) wires. The connection of battery ve, 7.5V winding of the transformer are to be done with 10mm 2
wire.
The 40A relay used in the PCB is having high current terminals on the top side of the relay itself. It is
recommended to take the Phase-In, Phase-Out connections from these high current terminals. For neutral
connection a similar connection tag is provided on the PCB. Phase-in can be taken from the NC contact of
the relay and Phase-Out can be taken from COM contact.
The connection diagram shown is the one used in the finished product. During setup mode exactly the
same connection can be followed but connector CN4 for on/off switch connection will be used for setup
switches. This will be explained later.
There are 3 switches that select various modes of the system. These are: ON/OFF switch, automotive /
tubular battery selection switch and UPS/Inverter selection switch. The switches are connected from CN4
connector. ON/OFF switch can be a microswitch or ordinary rocker type switch. The two other switches
will be always ordinary rocker type switches. Whether to use microswitch or ordinary rocker type switch
for ON/OFF switch can be programmed during setup mode.
The 3 switches used to browse through the menu during setup mode are connected to the same CN3
connector. During setup mode:
1.
2.
3.
Also note that during setup mode all the three switches are microswitches. (press to ON, release to OFF
type switch). There is no meaning to use rocker switch.
18
19
LED connection
The software is designed to automatically sense when the LED or LCD PCB is plugged while the system
is powered. When the LED pcb is plugged it is sensed immediately and LEDs are driven accordingly.
When LED PCB is unplugged and LCD is plugged the system will sense it immediately but it may take
few seconds to display something. This is due to the LCD re-initialization delay.
The LED as well as LCD is connected from the same connector CN5. The diagram below shows the
connection for LEDs. The ground pin (near to the relay) is considered as Pin 1.
During Setup-Mode the system will be permanently in LCD mode only, because LCD is essential in setup
mode.
20