brown out resets


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Posts
    63

    Default brown out resets

    hey again guys, ive managed to create my program eventually.. the pic is basically the controller of the rectifier controller of a wind turbine... :P everything works nice and smooth and how id like it to.

    however there is one last thing i want to implement. im trying to display total kilowatt hours on the LCD, however obviously when the wind dies then the pic has no power and therefore turns off... but when the wind revives the pic restarts due to the brown out reset.

    however when the brown out resets occurs i will have lost all temporary data in the ram. i was wondering if there was a way to use some form of brown out interupt to quickly save the data of "total energy accumulated" before the voltage goes so low that the pic turns off. and then when the reset occurs the energy accumulated is then taken from flash and carried on counting the energy?

    or if there is another way of doing this effectively

    thanks :P

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    966


    Did you find this post helpful? Yes | No

    Default

    What I'd recommend is to use an early warning signal. The raw voltage input to the 5V regulator would be a good point to monitor the power. Use this voltage to signal a power failing and if this is set properly, you can get sufficient time to put your counter to EEPROM. Your 5V should be bypassed sufficiently to allow the write to complete.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    This might give you an idea or two
    http://www.picbasic.co.uk/forum/showthread.php?t=11567
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Aug 2009
    Posts
    63


    Did you find this post helpful? Yes | No

    Default

    thanks guys, unforuantely i didnt really understand much of what was going on in that thread mack! it seems a bit advanced for me..

    i havnt actually got a voltage regulator, or ever used one... so they take the input and then give me an output voltage which i can send to the pic? how would i measure the output voltage, just use an ADC port?

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    OK, lets back up and tell how you are powering the PIC. Voltage and voltage source(source is from wind machine) but it has to be brought down/up to PIC levels.

    If you are still on the same PIC and project I think you are running at 20Mhz, so I will assume you are getting around 5 volts from some place. ????
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Aug 2009
    Posts
    63


    Did you find this post helpful? Yes | No

    Default

    well basically we have got the analogue high voltage part of the circuit which is converted to a 5v voltage for the CAP inputs and the ADC measuring voltages.

    we also have a DC 12v supply from another part of the power electronics which i attach to a 12DC to 5DC converter... this is wheree i get the voltage to power the pic

Similar Threads

  1. 16f877a porta.5 resets chip
    By lecoind in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 1st October 2009, 18:29
  2. Device Resets / erratic operation - 16F88
    By turbokinetic in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 11th April 2009, 03:08
  3. servo motor resets 16f877a
    By burak450 in forum mel PIC BASIC Pro
    Replies: 85
    Last Post: - 19th October 2008, 22:25
  4. PIC resets every now and then
    By passion1 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th June 2007, 21:41
  5. Freqout resets port pins?
    By MikeLewis in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th July 2004, 04:29

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