sht75 code locked up


Closed Thread
Results 1 to 21 of 21

Hybrid View

  1. #1
    microkam's Avatar
    microkam Guest


    Did you find this post helpful? Yes | No

    Default

    thanx mister to try to solve my problem..
    i run the board in my lap without heater load and it's run for three days and all things is ok , but the problem start when i connected the heater load , maybe the spark in contacter cause error in the command through sensor cabel sheild , that why the program locked up in the last code i attached .

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Possibles causes:
    unsufficient ground plane on your PCB
    unsufficient power supply filtering
    usused input/output left floating
    Ground loop/ground bouncing
    unsufficient incoming data filtering/buffering ( can we say buffering ??? ;D )
    ...
    ...
    ...
    Is your stuff share a power supply or it have it's own?

    You can still additional hardware to Enable and Disable your Contactor on the Zero Crossing of the AC line. It could be done in software too. By using one or the other method, you'll have to adjust the timing to compensate the Contactor latency.

    This should solve a part of your problem.
    Last edited by mister_e; - 1st June 2006 at 16:05.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    microkam's Avatar
    microkam Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e
    Possibles causes:
    unsufficient ground plane on your PCB
    unsufficient power supply filtering
    usused input/output left floating
    Ground loop/ground bouncing
    .
    the power supply is clean as can be , i put the filter ,the ground plane on my PCB i think is good.

    Quote Originally Posted by mister_e
    unsufficient incoming data filtering/buffering ( can we say buffering ??? ;D )
    .
    how can i make filtering for the data incoming from sensor , or how can i solve this problem by code to reset the program if any locked up happend in the sht code.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Maybe some opto-isolator could help. Is your unit provide the supply to your Sensor? If so, one more possible cause in the basket.

    Cancel ambient noise by software... i would never try/trust something like that. Sure good enough for analog reading, but as your PIC seems to Stuck in real world and not on a bench... review your hardware first. Software can't really avoid ground bouncing, back EMF, ... If something like that could be done.. i certainely buy the stuff and change the Meteo with

    You really should think about the zero crossing stuff i stated before. Better chance to reduce noise, AND increase the contactor contacts lifetime.
    Last edited by mister_e; - 1st June 2006 at 21:07.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    microkam's Avatar
    microkam Guest


    Did you find this post helpful? Yes | No

    Arrow

    thanks mister very much for your trying to help me again.

    Quote Originally Posted by mister_e
    You really should think about the zero crossing stuff i stated before. Better chance to reduce noise, AND increase the contactor contacts lifetime
    the load is 3-ph heater, so how can i make zero crossing on 3-ph load !!!

    this error (stuck in sht code) is happened one time every 2-3 days,so at this time i want code to detect any stuck will happen in this code.

    i process some code like that
    Quote Originally Posted by microkam
    While dta=1
    Wend
    i put a maximum time to stay in this loop , over this time the program reset and read the sensor second time >

    the problem here
    Quote Originally Posted by microkam
    ShiftIn dta,clk,0,[result.highbyte\8]
    i cant put a maximum time for this command ..

    any soluation can help me to pass this problem without changing in hardware.

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    I don't see how it could be done if you just have 1 contactor to do the job... but with 3 .. no problem, fire them on each zero crossing should work.

    I know there's some dedicated contactor for that. Google search i guess.

    Melanie should have some pointer on that.

    As i'm not in a familiar area... i can't be too much of help.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    microkam's Avatar
    microkam Guest


    Did you find this post helpful? Yes | No

    Unhappy

    thank you mister very much again.

    but realy i dont know if any body can help me in this point .

Similar Threads

  1. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 21:55
  2. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 21:31
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 17:23

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