read temperature


Closed Thread
Results 1 to 17 of 17

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    mmm, the only lasts things that sping to mind is ...

    1. is your supply line is neat and clean ?
    2. what about if you place 0.1 uF + 10 uF(close to PIC and close to sensor)
    3. are you sure of your Sensor pins... can it be reverted
    Steve

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

  2. #2
    breeno's Avatar
    breeno Guest


    Did you find this post helpful? Yes | No

    Unhappy

    after days of tests.... nothing...
    i don't know why with the noread label i have "no connection" while without noread label i have always "2" on LCD.
    i have reverted all pins, filtered supply line and sensor supply, i have tried every configuration option, i have inserted pauses betwen every instruction, i have changed resistor to 4k7..... always the same thing.....
    any idea?

  3. #3
    Join Date
    Apr 2010
    Posts
    2


    Did you find this post helpful? Yes | No

    Cool Device adress

    Hi!

    You're using device adress $9A thats mean label on your sensor is TC74A5 if not, you have found out your problem. Anyway you're using same adress-command for reading as for writing that's error too.

    For TC74A0 is adress 1001000* (thats mean $90 for writing $91 for read from device)

    For TC74A1 is adress 1001001*
    For TC74A2 is adress 1001010*
    For TC74A3 is adress 1001011*
    For TC74A4 is adress 1001100*
    For TC74A5 is adress 1001101*
    For TC74A6 is adress 1001110*
    For TC74A7 is adress 1001111*

    * is R/W, place 1 for reading from TC74, 0 for writing.

    Anyway i'am using 4,7k pullup on both of pins.

    This code is working for me (replace device adress if you've another):

    BStart ; initiate i2c start
    i2cwrite sda,scl,$90,$1,[$00] ' Place in normal operating mode
    BStop ; stop i2c
    Pause 10
    BStart ; initiate i2c start
    i2cread sda,scl,$91,$0,[temp] ' Read temperature
    BStop ; stop i2c


    Hope that will help you...
    (and sorry for my english)

    Milos

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking late is better than never ...

    Hi, Milos

    Many Thanks for that useful tip.

    BUT did you notice the last post was dated ... - 23rd February 2005, 12:51 ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Apr 2010
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Long long away ;)))

    Hi, yes i know, but i was searching by google for "TC74 picbasic" today and this topic is still one of firsts results.

    Problem has not been still solved (for 5 years). It's doesn't matter how old is it -it still can be googled, so it will be helpful for someone maybe (in next 5yr) No?

    Anyway i had to wrote answer -for peaceful sleeping ))

  6. #6
    Solomon's Avatar
    Solomon Guest


    Did you find this post helpful? Yes | No

    Lightbulb Thank you Segeer!

    Hi Segeer, I like your attitude. It is the right one, man. I am trying to implement the tc74 and because you posted the answer, helps me alot. Great stuff. One can just identify a true engineer in his attitude.

    I am using PICBasic Pro and will try your code today.

    Thank you again. I will post my PICBasic Pro Code for someone else in the future as well.

  7. #7
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Solomon View Post
    I will post my PICBasic Pro Code for someone else in the future as well.
    I like this attitude too; I wait for complete code, as good example for further projects !

Similar Threads

  1. Cleaning up code
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2009, 07:14
  2. SEROUT WORD variable problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th April 2009, 11:20
  3. Changing declared variables names on the fly
    By jessey in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th December 2006, 06:34
  4. Serout "onewire.bas"
    By puru in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th July 2005, 00:14
  5. read temperature sensor
    By breeno in forum General
    Replies: 5
    Last Post: - 10th January 2005, 06:04

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