Bar30 python compilation error

I’m trying to run the bar30 sensor with the sample code in raspberry pi, but I’m getting a compile error.

I take the library in github. I fix the snytax errors

Can you help with this?

question 2: Can I run this module with stm32f4 without using modul?

Hi,

How did you installed the library ?
As you can see here:
https://github.com/bluerobotics/ms5837-python/blob/master/ms5837.py#L71

The original code does not contain a syntax error, I would recommend a git clone to prevent such errors: git clone https://github.com/bluerobotics/ms5837-python, remember to install git with: sudo apt install git.

We have an Arduino library here:

You could take a look on it to help you with the stm32 code.

I installed the library by cloning.

I will try again.

Can I run this BAR30 with stm32f4 without using I2C module?

Thank you for your interest

Hi,

The MS5837 only provides an I²C interface.

hi

I haven’t got “I2C Level Converter”

Can I run this BAR30 with stm32f4 without using “I2C Level Converter”?

I couldn’t tell you my trouble. excuse me :slight_smile:

STM32F4 I²C TTL is 3.3V, so you don’t need the I²C level converter.

1 Like

hi

I encountered an error again

traceback(most recent call last)

[Remote I/O error