M.can
(Mehmet Çölgeçen)
January 20, 2019, 1:27am
1
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.
M.can
(Mehmet Çölgeçen)
January 21, 2019, 1:30pm
4
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.
M.can
(Mehmet Çölgeçen)
January 21, 2019, 1:38pm
6
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
STM32F4 I²C TTL is 3.3V, so you don’t need the I²C level converter.
1 Like
M.can
(Mehmet Çölgeçen)
January 21, 2019, 10:01pm
8
hi
I encountered an error again
traceback(most recent call last)