PCB for Bar02 Ultra High Resolution 10m Depth/Pressure Sensor


This pressure sensor can measure up to 2 bar absolute pressure (10m depth) with a depth resolution of 0.16mm and an in-air altitude resolution of 13cm. This board-level version can be tightly integrated into projects.

In stock

HS Code: 9026.20.4000

Product Description

The Bar02 Ultra-High Resolution 10m Depth/Pressure Sensor is a low-pressure, high resolution, high accuracy version of our Bar30 sensor. Using the MS5837-02BA sensor from Measurement Specialties, this device can measure up to 10 meter depth (2 bar absolute pressure) with a water depth resolution of just 0.16mm! It can also measure altitude in air using air pressure with a resolution of 13cm.

One of the key features of this version of the sensor compared to the Bar30 sensor is the very high accuracy. According to the datasheet, the worst case accuracy is about +/- 4 mbar (4 cm water depth).

The sensor communicates over I2C. It operates on 3.3V I2C voltage but can accept power input up to 5.5V. It includes four solder pads for ground, 3.3V-5.5V power, and 3.3V I2C lines.

This sensor includes a temperature sensor accurate to ±2°C, with data also accessible through I2C. If you need something with more temperature accuracy, please check out the Celsius Temperature Sensor.

The electrical schematic and board layout are open-source and the design files are available in the Technical Details tab. Feel free to adapt for your own needs.


  • 1 x Bar02 Pressure Sensor (PCB Only)


Supply Voltage2.5-5.5 volts
I 2 C Logic Voltage (SDA and SCL)2.5 - 3.6 volts
Peak Current1.25 mA
Maximum Mechanical Pressure10 bar145 psi
Standard Operating Pressure0.3-1.2 bar4-17 psi
Standard Operating Pressure0-2 bar29 psi
Operating Depth10m33 ft
Relative Accuracy (-20-85°C)+/- 4 mbar (4 cm in freshwater)+/- .004 psi (1.5 inches in freshwater)
Operating Temperature-20 to +85°C-4 to 185°F
Storage Temperature-40 to +85°C-40 to 185°F
Absolute Accuracy+/- 2°C (when used between -20 to +85°C)+/- 3.6°F


MS5837-02BA Data Sheet (PDF)

Bar30/Bar02 Schematic (PDF)

Revision History

April 20th, 2018

  • R1 – Initial release

Quick Start

1. Download MS5837 Arduino Library.

2. Install software such as the Example Code to your microcontroller.

3. Solder appropriately colored wires to the solder pads.

4. Connect the bare wires to the appropriate microcontroller pins, using a logic level converter if your board has 5V logic:

  • Green: SCL (3.3V logic)
  • White: SDA (3.3V logic)
  • Red: +2.5-5.5V
  • Black: Ground


Depth/Pressure Calculator

Example Code




Blue Robotics Forum – Sensors