Shop OBEX P1 Docs P2 Docs Learn Events
calibration altimeter information — Parallax Forums

calibration altimeter information

Hello for all

when I run the 29124 Altimeter Module Driver object it show my current altitude with a value of 2086 meters instead of 1020 meters.
I would like some help to calibraite this iinformation

Thanks in advance.
Masselon

Comments

  • You should consul the data sheet for the chip that is used: MS5607

  • I am thinking there are some bug in this object.
    Surpraselly I found it display some data without the altimeter module connect in the propeller chip.
    It displaly this data all time it run with none module connected (MS5607 DEMO 3.SPIN):
    Start Alt:-684409
    Current Alt:-6844.09 ft : -684409
    Actual Alt:0
    Temp:6801F

  • @JonnyMac said:
    You should consul the data sheet for the chip that is used: MS5607

    I am thinking there are some bug in this object.
    Surpraselly I found it display some data without the altimeter module be connect in the propeller chip.
    It displaly this data all time it run with none module connected (MS5607 DEMO 3.SPIN):
    Start Alt:-684409
    Current Alt:-6844.09 ft : -684409
    Actual Alt:0
    Temp:6801F

  • Tracy AllenTracy Allen Posts: 6,656
    edited 2023-06-20 21:57

    Do you actually have the Parallax module 29124? If not, perhaps you have an MS5611 chip instead of an MS5607? The conversion formulae are different. There is a setting in the firmware to specify either MS5607 or MS5611. I have used Phil's code extensively, and I can assure you there is not a bug in the code base.

    The result with no altimeter module connected is meaningless.

  • @"Tracy Allen" said:
    Do you actually have the Parallax module 29124? If not, perhaps you have an MS5611 chip instead of an MS5607? The conversion formulae are different. There is a setting in the firmware to specify either MS5607 or MS5611. I have used Phil's code extensively, and I can assure you there is not a bug in the code base.

    The result with no altimeter module connected is meaningless.

    @"Tracy Allen"

    How do I do to update the reading data in the PST?

    I have the 29124 MS5607 module REV A.

    The line code 1236 (29124 Altimeter) put this way:

    PRI _cur_temp_press_5607 | d1, d2, dt, offh, offl, sensh, sensl, ph, pl

    d1 := _read_adc(RSLT_D1)
    d2 := _read_adc(RSLT_D2)

    So the result to be displayed need to be read from the sensor, doesn´t it?

    The line code 1195 (29124 Altimeter) put this way:

    PRI _sample | i, addr, new_val, cur_val, new_median, nsame, j, median

    if (dev5611)
    _cur_temp_press_5611
    else
    _cur_temp_press_5607

    I supose would be another elseif in the case of none module conected, do you agree?
    E.g, Error! any module found,

    This is exactly what a means for "some bug in this object".
    Really it is not a bug but a missing information like: "module not found", e.g.

Sign In or Register to comment.