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

    hi Melanie
    Quote Originally Posted by Melanie
    The easiest (though not the cheapest) solution is to use a zero-cross SSR in two of the phases. All you do is treat the SSR input as if it was an LED. Switch it on, and it does the rest. You will find that Crydom, Carlo Gavazzi (and others) all do Zero-Cross and non-Zero-Cross versions of all their SSR's. Like I said, chose a Zero-Cross version.
    i search for this SSR in my country and it's not avilable and it takes over one monthe if i order it..

    so can you explain to me whats exactly the source of this noise!!
    if i seperate control board and power contactor in different panel will reduce the noise >>>

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    >so can you explain to me whats exactly the source of this noise!!

    The meaning of Life, the Universe and Everything I can probably explain. The source of your noise however escapes me. I'm not in your environment, I can't see your design, and I have no test equipment available to track it down - this is something that you can do - because you are there, and I am here.

    I worry about the code that you posted where you say the problem exists. Your While/Wend statements will hang the program until the correct state of the dta pin is recognised. You must track down WHICH of the several WHILE/WENDS is causing your program to hang and then determine WHY dta did not switch as expected. Is it because the PULSEOUT is out of specification and the chip did not acknoledge. Is it because noise on the line is causing the chip to acknowledge at the wrong time or send garbage. You'll have to dig deeper yourself.

    It's unusual for the DS1307 to hang... I have tens of thousands in the field and it's never happened. Check your 5v supply is CLEAN. Make sure the Battery isn't next to a contactor switcing kVA - the usual things...

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


    Did you find this post helpful? Yes | No

    Default

    In addition to Melanie, how about if you disconnect all pins of your SHT sensor and bypass it's own code?

    any available schematic?

    How far your SHT sensor is?

    Is your board send the voltage to your sensor?

    How? i mean, is there any buffer between your PCB and your sensor? case not, it's one other possibility of noise source.

    As i already commented about the SHT obscure code but you said it's working on a single bech... i just want to know what's happen when you bypass this section.

    Any PCB layout picture?
    Steve

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

  4. #4
    microkam's Avatar
    microkam Guest


    Did you find this post helpful? Yes | No

    Default

    .......jjj

  5. #5
    microkam's Avatar
    microkam Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e
    How far your SHT sensor is?
    Is your board send the voltage to your sensor?
    How? i mean, is there any buffer between your PCB and your sensor? case not, it's one other possibility of noise source.
    sht cable sheild length 3m.
    sht supplied +5v from my PCB without any buffer,and how can i put this buffer ,can you explain more.

    Quote Originally Posted by Melanie
    Is it because noise on the line is causing the chip to acknowledge at the wrong time or send garbage
    i tracked the problem and i found the problem from noise on the line , i tried to replace the sht cable with short one (0.5m) and the noise is cancled >.

    SO . can i run timer on the first sht code and stop it on the end of code , if the timer reached to the maximum time then reset the pic .

    Quote Originally Posted by Melanie
    Make sure the Battery isn't next to a contactor switcing kVA - the usual things...
    should i connect battary to ds1307 , in my pcb i connect battary pin to ground . is this the problem .

  6. #6
    microkam's Avatar
    microkam Guest


    Did you find this post helpful? Yes | No

    Default

    ffff
    joiu

  7. #7
    microkam's Avatar
    microkam Guest


    Did you find this post helpful? Yes | No

    Default

    srtttf
    fgfg

  8. #8
    microkam's Avatar
    microkam Guest


    Did you find this post helpful? Yes | No

    Default

    oooooo
    llll

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