Hello everybody,
I'm working with MS5611-01BA barometric pressure sensor, but I can't read values from the sensor.
My setup is
Arduino 1 --- MS5611
gnd gnd
3.3V vdd
csb gnd
A5 sclk
A4 sda_i
I've been using the MS5611BA library written by Varesano but when I try the examples in the library, even the simple sketch doesn't work.
The program hangs on the reset() function (MS561101BA.cpp) at instruction Wire.endTransmission();.
I also added Wire.begin() at the beginning of reset() but nothing changed.
Yes, I already tried the I2C scanner but it stops at the first iteration of the for() cycle (endTransmission())
As I'm new regarding all this Arduino stuff, I probably made errors connecting the sensor to Arduino.
As you can see in right side of the picture, there are red spots on the board.
Do I have to connect them somehow?
Right now I only connected the sensor to Arduino as I mentioned in the previous post.
The i2c scanner should detect it, before you can do anything else.
You have a Arduino Uno ?
And you connected GND to GND ? The 'csb' is a mistake in your first post ?
The sensor is 3.3V, you have that. And you have connected SDA and SCL.
Can you upload a photo of your boards and wires ?
This is the sensor, http://www.drotek.fr/shop/en/44-ms5611-pressure-barometric-board.html
The sensor is capable of I2C and SPI interface. I guess (I hope) that the breakout board has I2C selected. If you measure the CSB, it should be high.
I see two resistors of 10k on the breakout board, that must be the pull-up resistors for the SDA and SCL.
I can't see a problem. Check your wiring once more.
Don't connect the CSB to ground. I think that is how to select SPI mode. Don't connect anything to CSB.
If you measure the CSB, I think it will be 3.3V.
The I2C bus requires pull-up resistors. But the breakout board already has 10k pull-up resistors, so you don't have to add them.
Run the i2c scanner, it should work with the CSB not connected.