PCB for Bar30 High-Resolution 300m Depth/Pressure Sensor


This pressure sensor can measure up to 30 Bar (300m depth) with a depth resolution of 2mm. This board-level version can be tightly integrated into projects.

In stock

HS Code: 9026.20.4000

Product Description

The Bar30 pressure sensor is a high-pressure, high-resolution pressure sensor. With 0.2 bar resolution, it has an amazing depth measurement resolution of 2mm in the water column! It can also be use in air to measure altitude.

The sensor is the Measurement Specialties MS5837-30BA, which can measure up to 30 bar (300m depth) and 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 ±1°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 below. Feel free to adapt for your own needs.


  • 1 x Bar30 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 Pressure50 bar725 psi
Operating Pressure0-30 bar435 psi
Operating Depth300m990 ft
Absolute Accuracy (0-40°C)+/- 200 mbar (204 cm in freshwater)+/- 2.9 psi (6.69 ft in freshwater)
Operating Temperature-20 to +85°C-4 to 185°F
Storage Temperature-40 to +85°C-40 to 185°F
Absolute Accuracy+/- 1.5°C (when used between 0-60°C)+/- 2.7°F


MS5837-30BA Data Sheet (PDF)

Bar30 Schematic (PDF)

Revision History

26 January 2016

  • 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