can anyone help me...


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    22


    Did you find this post helpful? Yes | No

    Default

    Thanks for the reply.

    I will explain u wat i did(using assembly).
    inputs to controller:
    1.Actually main is an analog i/p to M/C.
    2.power failure indication(digital).
    3.volt zero cross and current zero cross are two digital i/p.
    4.Overload and battery i/p are two analog.
    -----------------------------------------------------
    1.first step,i intialised all requirements.then using PA0,i read the mains voltage range.and compared with reference for stabilizer operations.zero crossings are used for stabilizer operation.
    2.if the voltage is outof reference range,i will start the inverter.here i m readin overload and battery i/p.

    plz tell me how can i know whether i/p main is present or not(can use interrupt).which pin need to connect.
    plz correct me,if wrong.If u want i'll give u my code.
    Last edited by kvrajasekar; - 27th August 2008 at 11:36.

  2. #2
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Use zero cross on portb.0

    Hi,

    16F72 has portb.0 interrupt which can be used to detect zero crossing easily. Since the current zero cross would be normally close to the voltage zero cross. It may be detected right within the ISR. However entirely depends on the capacity of the UPS and power factor. You can also use the PORTB.7-PORTB.4 Interuupt on change. Here however you need to decide in the ISR whether it is volt/current zero cross or overload. You can use four different signals here.

    I assume that you are in India from your name. So the nominal line frequency would be 50Hz. That means you should get interrupts after every 10mS. Add to that a range of +/- 5 Hz so your window becomes 45Hz to 55Hz wide. Thus you know when your interrupts are too-late or too-early. This is a definite detection of blackout/brownout. But power sags are cannot be detected by this methods.

    So you can start a AD sampling cycle from each zero cross and continue sampling the input (unfiltered). At the end of the cycle you can detect even the RMS voltage through calculations. But this takes a whole cycle (10mS) which may be too much. So the alternative is to compare each sample with known values. Use a lookup table +/- constants for allowed deviation range. This has its own pros and cons. Almost fail proof mains detection but sometimes false detects too.

    However it entirely depends on the equipment in use. All of the offline UPS in the marker under Rs.1500.00 (USD $36 approx) state that they offer a transfer less than 2ms. Not always. In fact the relays which comes for Rs. 6.00 (USD $0.15) exhibits transfer time more than 7mS themselves. Datasheets lie for chinese products. If the supply is to a PC then the PC SMPS itself withstands 20mS sags. That's why the low cost UPS actually seem to work.

    When I started working on the project (I normally try to get industrial applications) I was frustrated achieving goals. Realized the limitations later that a reduced BOM price achieves less.
    Regards

    Sougata

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts