Shop OBEX P1 Docs P2 Docs Learn Events
Pitot airspeed and i2c ms4525do — Parallax Forums

Pitot airspeed and i2c ms4525do

Hello,

Do somebody play already with pitot Air transceivers I2C ms4525do?

https://www.mouser.com/datasheet/2/418/MS4525DO-710170.pdf

Thank you

Comments

  • JonnyMacJonnyMac Posts: 9,161
    edited 2020-03-23 17:34
    There doesn't seem to be a lot to reading values from the sensor -- except the required information seems to be spread across more than one document. The basics go like this:
    pub read_pitot
    
      i2c.start
      i2c.write($51)                                                ' read; other ids are $6D and $8D
      i2c.read(bridge.byte[1], i2c#ACK)
      i2c.read(bridge.byte[0], i2c#ACK) 
      i2c.read(temp.byte[1],   i2c#ACK) 
      i2c.read(temp.byte[0],   i2c#NAK)
      i2c.stop
    
      if (bridge & $C000)                                           ' check status bits, should be %00
        return false
    
      temp >>= 5                                                    ' fix lsb of temp  
    
        
      ' do bridge and temp calculations here
    
    
      return true
    
    In this suggestion, bridge and temp are global variables (words or longs). I'll leave the raw readings to useful values calculations to you.
  • Whow, I didn't get one now.
    Just inform if somebody have user experience

    I go order one for testing

    Thank you Jon
  • You're welcome. Keep in mind that I don't have one either, I just translated the data sheet to Spin. Hope it helps you get going with the sensor.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2020-03-23 20:57
    Just invcase you haven't seen these, here's a sensor with an a pitot tube.
    Pitot200323a.PNG
    I haven't used mine with the Propeller yet but I wouldn't think translating the open source C code to Spin shouldn't be too hard.
    877 x 825 - 629K
  • Duan, that was the one I looking for.

    There are two type of them, one with I2C(PX4), the other analogue (AMP cheap one).
    I go for the I2C, just put in my basket.

    Daniel
Sign In or Register to comment.