How to communicate with MLX90614 IR sensor


Results 1 to 7 of 7

Threaded View

  1. #2
    Join Date
    Oct 2011
    Posts
    54

    Default Re: How to communicate with MLX90614 IR sensor

    8.4.6 of the datasheet shows how to read the temp. So going by this:-

    Default slave address is $5A. This is bits 1 to 7 of the first byte. Bit 0 is the read or write bit and as we are writing to the sensor this will be 0. The first byte sent will be $B4 (5A * 2 + 0).

    Next byte sent will be $07 the ram address of the data.

    Next byte sent will be the read address byte. Bit 0 of the read address is 1 so this will be $B5 (5A * 2 + 1). The PBP command will take care of this and the restart.

    The I2C address needs to be a constant. So I would try:-

    TEMP VAR BYTE[3]

    I2CREAD DataPin,ClockPin,$B4,$07,[STR TEMP\3]

    You may also need to add 'DEFINE I2C_HOLD 1'

    Best of luck
    Phil
    Last edited by Archangel; - 22nd February 2015 at 19:54.

Similar Threads

  1. Replies: 6
    Last Post: - 5th August 2013, 14:43
  2. Cheapest way to communicate
    By koossa in forum Off Topic
    Replies: 22
    Last Post: - 25th May 2009, 12:06
  3. Communicate PC-to-PC using PIC
    By aje_azam in forum USB
    Replies: 3
    Last Post: - 16th March 2009, 07:35
  4. What's the best way to communicate?
    By BobK in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd October 2004, 06:54
  5. pc communicate with pic16f877
    By meyou in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th August 2004, 23:26

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts