[TUT][CODE] The Intersema 5534 barometer as an altimeter

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is a very brief tutorial... here's some working code that I used in an altimeter, to grab pressure and temperature from the Sema barometer chip and convert it to altitude (assuming 1013mB sea level pressure. You'll need to do your own conversion from that to height above ground or flight level...)

The chip is smart; it has a high precision pressure cell and temperature sensor, includes an ADC for both, and uses a complicated algorithm to apply factory set correction parameters (different for each example of the chip) to provide the correct output.

Rather than trying to explain it all, I'll attach the PDFs from Intersema, and the working code. One thing to be aware of: the device is extremely sensitive and as a result the output can be very noisy. If you're looking for a fast high precision output, you're going to need some very good filtering. I've used it on an altimeter that I flew with, filtering over eight samples, and it's been ok that way.

Neil

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And (because I hit the attachment limit!) here is the code - this works with an M32 or similar between 1MHz and 8MHz; I used the internal clock which if it is unstable will increase the noise on the output values; a crystal is recommended for better stability.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks Neil