Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 10:27:24 10:27


Login with username, password and session length


Pages: [1]
Print
Author Topic: help need for developing UPS  (Read 5119 times)
0 Members and 1 Guest are viewing this topic.
prawin
Guest
« on: March 23, 2009, 08:28:17 08:28 »

Hi friends i m praveen working on micro controller based line interactive UPS with PUSH PULL INVERTER.Can anyone help me how to detect mains failed. In my circuit i am having 3 inputs for MAINS.

First one is to Analog channel-0 RA0 of PIC micro controller 16F72.
Second one is zero crossing input given to external interrupt pin RB0.
Finally third is output feed back given to Analog channel-2 RA2.

Help me thank you


Logged
looser
Junior Member
**
Offline Offline

Posts: 40

Thank You
-Given: 23
-Receive: 11


« Reply #1 on: March 23, 2009, 09:55:18 09:55 »

Pravin
how fast you need to get the mains failed info.

A slow one something like a relay fed from mains and drops his contacts to provide the kick to your pic or
A rezistor divider to mains for powering an optocoupler continuously and  check the power existancy at each half cyle  passing a few miliseconds after zero cross.

regards
Logged
prawin
Guest
« Reply #2 on: March 23, 2009, 11:07:41 11:07 »

THank you sir for reply,I will be thank full to you sir if i can solve this problem in my project....

i need to detect mains failed in less than 10 milli second using relay change over.That is this relay i have to activate it in less

than 10 milli second.
Logged
looser
Junior Member
**
Offline Offline

Posts: 40

Thank You
-Given: 23
-Receive: 11


« Reply #3 on: March 23, 2009, 12:51:31 12:51 »

Dear prawin

I guess we are missing some points.

Detecting the failure of mains is something and action after detection is some other thing.
A fast acting relay on the average can swing the contact states in about 40mS. Activate a mechanical relay less than
10mS is very hard to achieve. You should think of solid state relays. ( Opto coupler and triac combined packages)

regards.
Logged
prawin
Guest
« Reply #4 on: March 24, 2009, 06:49:56 06:49 »

Is it but the already developed UPS is having relay of 24V DC transfering it in 6-7 milli second.they are activiting with micro controller.
Logged
looser
Junior Member
**
Offline Offline

Posts: 40

Thank You
-Given: 23
-Receive: 11


« Reply #5 on: March 24, 2009, 12:03:48 12:03 »

Ok if you can find such one go ahead. but I suggest obtain that relay first for your projects.
Logged
prawin
Guest
« Reply #6 on: March 25, 2009, 12:10:35 12:10 »

I want the logic to activate the relay using micro controller. That is when mains failed it has to switch to inverter mode in less than 10 ms...
Logged
ALLPIC
Active Member
***
Offline Offline

Posts: 114

Thank You
-Given: 64
-Receive: 72


« Reply #7 on: March 25, 2009, 12:18:00 12:18 »

Microcontroller can activate a relay in microsec but you have to calculate a delay because of relay magnetism.. one way arround that I am useing is I kept relay voltage on higher side that means if relay is of 24v then I will apply a voltage of 30v by putting current limiting resistance you can protect a coil. This will increase a response time. Keep in mind that To make relay on is always faster than to making it off...

Hope this will help you. If you can put your schamatics and code then I can help you more preciously

regards
Logged
emotion2000
Guest
« Reply #8 on: March 25, 2009, 12:54:32 12:54 »

maybe this helps

http://www.vsholding.com/datasheets/7105_D5G500A20.pdf
Logged
Walkura
Active Member
***
Offline Offline

Posts: 123

Thank You
-Given: 56
-Receive: 82


« Reply #9 on: March 25, 2009, 04:01:41 16:01 »

Microchip has a datasheet about a UPS .
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en010947
But to detect mains voltage i would either measure linevoltage or detect zerocrossings (or combine those 2 data)
Logged
sohel
Senior Member
****
Offline Offline

Posts: 442

Thank You
-Given: 167
-Receive: 149



« Reply #10 on: March 27, 2009, 08:03:19 08:03 »

hmm

crystal value ?

topology (modifide or sine)?

10ms = whats the value for instruction ( i think there huge time to make sure with 4 mhz)


first u may use normal relay for chenge line to ups .

why u want to use zero crossing ?

you must to see when drop line voltage (low cut , high cut)
use only one adc for detect line volt ( if line_volt < 1** volt ac. or line_volt > 240v ac then go to ups mode)

« Last Edit: March 27, 2009, 08:10:57 08:10 by sohel » Logged
prawin
Guest
« Reply #11 on: March 28, 2009, 01:19:12 13:19 »

hello sohle sir after reading the adc pin for mains failed my problem has'nt solved it is taking 150ms time to switch over to inverter.My design is line interactive 600 VA using PIC controller and i am working on 20 MHZ frequency.I am having three inputs for MAINS:-ADC input,zero crossing and feed back input.

Logged
ALLPIC
Active Member
***
Offline Offline

Posts: 114

Thank You
-Given: 64
-Receive: 72


« Reply #12 on: March 29, 2009, 08:40:54 08:40 »

Which PIC are U useing. I am useing PIC16f72 for my one of design similar to you and I connected zero cross of mains to interrupt and all relay operation I am doing in Interrupt vector. because of this I am gatting 6ms.
At crystal frequency of 4mhz and 6ms is changeover time that means this is relay turn on time...

If you can please share your schamatics and source then there will be easier to give you right soulation.

I done this design for some of customer and that is NDA so I can't share my design, but I know this can be achived my putting every thing on interrupt



Logged
sohel
Senior Member
****
Offline Offline

Posts: 442

Thank You
-Given: 167
-Receive: 149



« Reply #13 on: March 29, 2009, 09:22:33 09:22 »

ok, have u any hardware design? it will clear all things. my all product are ups mode .
Logged
9thwonder
Newbie
*
Offline Offline

Posts: 26

Thank You
-Given: 5
-Receive: 11


« Reply #14 on: April 05, 2009, 01:03:50 13:03 »

you may use timer0 for the pwm and scr firing both  a frame of 200us will do every thing for you. 
Logged
tAhm1D
Senior Member
****
Offline Offline

Posts: 326

Thank You
-Given: 103
-Receive: 180



« Reply #15 on: April 06, 2009, 04:45:12 16:45 »

Hi prawin,

You can use this circuit : 

The circuit senses mains failure using opto TLP620. It has dual LED input which means that while mains is present, during both phases the input LED will be ON and the output transistor will be ON, thus 0v at the output. But when mains failure occurs, the input LED will be OFF and the output transistor will be OFF, thus 5v at output. This means, when mains is present there will be 0v at the output but 5v at the output when mains fails. Using this and connecting the output to your uC and writing code in that way, you can sense mains failure in less than 1ms.
Logged
HeliEye
Newbie
*
Offline Offline

Posts: 8

Thank You
-Given: 13
-Receive: 1


« Reply #16 on: April 17, 2009, 09:03:11 09:03 »

I seem to remember in the dim and distant past a circuit for a 'Missing-Pulse' detector using a standard logic IC.
The mains was stepped down to logic level volts, and full-wave rectified (no capacitor filtering), the resulting waveform fed into the IC (can't remember which.. re-triggerable flip-flop maybe?)
Capacitor timing was applied for the frequency period (100Hz) if one pulse was missing, this action produced a logic 1 at the output.
I'll see if I can find this circuit, among the tons of data I have here ;-)  The one thing I remembered.. it was fast.
And yes, I have an 'Offline' 1250VA UPS here under my workbench, this changes very fast..using a relay on a mains brown-out or failure.

Steve
Logged
babatundeawe
Junior Member
**
Offline Offline

Posts: 43

Thank You
-Given: 60
-Receive: 13


« Reply #17 on: April 23, 2009, 12:17:03 12:17 »

 i tried the 4n35 and moc3020 opto couplers with respect to tahm1d circuits and it worked well.
the switching time was very fast and it is easily adaptible to uc.
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC