Need help for reading I2C Sensor


Results 1 to 14 of 14

Threaded View

  1. #13
    Join Date
    Mar 2008
    Location
    Switzerland
    Posts
    7

    Default

    Now the sensor is working well

    Thanks for all your help

    The code I use is:



    I2CRead I2C_data,I2C_clock,$F1,[druck]

    an to calculate the mbar:

    IF druck > 1999 then ' nur positive Druck auswerten

    druck = ((druck - 2000) * 6) + ((druck - 2000) /4) ' * 25 / 100

    else
    druck = 0

    endif
    see also the printscreen from the I2C bus.
    Attached Images Attached Images  

Similar Threads

  1. Need a cheap touch sensor idea.. here it is
    By mister_e in forum Code Examples
    Replies: 20
    Last Post: - 16th April 2016, 22:42
  2. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 22:31
  3. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  4. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 19:33
  5. Using a TC74A0 with PBP(Thermal sensor via I2C)
    By navaismo in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st November 2006, 18:25

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