Use your forum account to login.


TOP Contributors

  1. MikroElektronika Team (389 codes)
  2. Shawon Shahryiar (230 codes)
  3. Alcides Ramos (93 codes)
  4. Dany (66 codes)
  5. O B (61 codes)
  6. MikroBUS.NET Team (35 codes)
  7. NART SCHINACKOW (34 codes)
  8. Roman Toropov (25 codes)
  9. Alberto Trasimeni (25 codes)
  10. Arezki YOUYOU (24 codes)

Most Downloaded

  1. Timer Calculator (71770 times)
  2. Network Ethernet Library (35698 times)
  3. FAT32 Library (34033 times)
  4. USB Device Library (26847 times)
  5. Network WiFi Library (26174 times)
  6. FT800 Library (18529 times)
  7. PID Library (18080 times)
  8. GSM click - Example (17915 times)
  9. microSD click - Example (15146 times)
  10. GPS click - Example (12100 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back

Altitude click Example


Author: MikroElektronika Team

Last Updated: 2013-10-28

Category: Measurement

Downloaded: 1662 times

Not followed.

This is a simple example of using MPL3115A2 sensor to calculate the current altitude.
Resulting altitude in meters is displayed on the Lcd.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Altitude click Example" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Altitude click Example" changes.

Do you want to report abuse regarding "Altitude click Example".

  • Information
  • Comments (1)

Download Example [42.33KB]


mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

Altitude click

Altitude click

Front and back view of Altitude click board designed in mikroBUS form factor.

View full image

The MPL3115A2 employs a MEMS pressure sensor with an I2C interface to provide accurate Pressure/Altitude and Temperature data. The sensor outputs are digitized by a high resolution 24-bit ADC (Analog Digital Conversion).

Examples are written for :

 - EasyPIC7 - PIC18F45K22

Altitude click board schematics

Altitude click board schematics

Board is set to use 3.3V power supply by default.

View full image


Hydrogen Click - Example

This example demonstrates usage of the Hydrogen click board in mikroBUS form factor. Hydrogen click is suitable for detecting Hydrogen concentration - Hydrogen checker. LCD shows PPM value of Hydrogen concentration.

[Learn More]

Counter Click

Counter click carries an LS7366R quadrature counter. The interface has ENCA and ENCB pins, along with ENCI, which is a programmable index. Counter click communicates with the target board microcontroller through the mikroBUS™ SPI interface, plus enable (CNT EN) and interrupt (LFLAG or DFLAG) pins. The board can use a 3.3V or a 5V power supply.

[Learn More]

BI Hall Click - Example

Bi Hall click is a simple solution for adding a bipolar Hall switch to your design. It carries the Melexis US2882 bipolar Hall-effect switch and a 74LVC1T45 single bit, dual supply transceiver. A bipolar Hall effect sensor is sensitive to both north and south pole magnetic fields.

[Learn More]