Having trouble with SERIN command and MAX6675


Closed Thread
Results 1 to 40 of 40

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Is the thermocouple a K type?
    The code given in the link I gave works.
    Check the hardware. Bad connections or backwards connection on the thermocouple or wrong type will cause problems.
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Dec 2010
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Is the thermocouple a K type?
    The code given in the link I gave works.
    Check the hardware. Bad connections or backwards connection on the thermocouple or wrong type will cause problems.
    Both the thermocouples I have are K type and are connected properly. The ground lead on the thermocouple is tied to ground as well as the negative input on the MAX6675 as demonstrated in the datasheet. I did a continuity test on all wires coming from the chip and they're all good.

  3. #3
    Join Date
    Dec 2010
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    is the code you gave specifically for the 16f630?

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


    Did you find this post helpful? Yes | No

    Default

    No. The code shows how to use the MAX chip.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Dec 2010
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    i found in this post (http://www.picbasic.co.uk/forum/show...1178#post71178) that you stated you need a temperature
    reference for every time the wire material from the thermocouple changes.

    Anyplace the wire material changes you need a reference temperature and calcs. A couple exceptions here and there though.
    I had copper wire soldered to the terminals on my thermocouple. I disconnected the copper wires but it didn't help
    Last edited by emerson; - 10th December 2010 at 20:47.

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


    Did you find this post helpful? Yes | No

    Default

    Do you have pin #6 (CS) on the MAX6675 pulled low? I use a 10K to the zero rail on mine.
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    MAX6675 need more than 200 millisecs for the temperature convertion. You are polling too fast so you don't get any response. Place a delay of 250 msecs to allow convertion.

    edit:My note was reffered to code seen in post#5. I just see that you added delay 500 in your code in post #7, so my answer is obsolete.
    My new suggestion are :

    add INCLUDE "modedefs.bas" on top of your code
    and modify your SHIFTIN command adding:

    shiftin MXSO, MXSCLK, MSBPRE, [MXTemp\16] 'read the data to MXTemp

    and see if it works.



    Al.
    Last edited by aratti; - 11th December 2010 at 11:51.
    All progress began with an idea

Members who have read this thread : 1

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