I am desperately in need of guidance for the interfacing of GY-63 MS5611 barometer with Arduino Due. I cannot even start the communication with Arduino.
Any help or guidance would be appreciated.
I will be extremely grateful for an urgent response!
I am desperately in need of guidance for the interfacing of GY-63 MS5611 barometer with Arduino Due. I cannot even start the communication with Arduino.
Any help or guidance would be appreciated.
I will be extremely grateful for an urgent response!
You need to be a member of diydrones to add comments!
Replies
"I cannot even start the communication with Arduino."
Can you successfully compile and upload a sketch? How have connected the gy-63? What code do you have so far?
Thank you for your response.
I have downloaded the "i2c scanner for arduino" which allows you to detect an i2c comm link. I am able to compile it but it says No Devices Found.
I have setup the GY-63 MS5611 exactly as said by the datasheet here:
http://www.meas-spec.com/downloads/MS5611-01BA03.pdf (Page 17)
I have tried this much so far.
I am powering GY-63 by the 5V output pin on Arduino Due.
i am using the SCL (Pin 21), SDA (Pin 20) on the Arduino Due to connect to SCL, SDA pins on GY-63. I am also using 10K pull up resistors for the SCL, SDA pins of GY-63.
Have you connected PS high?
Page 14:
PS high (VDD) => I2C
PS low (GND) => SPI
Yes, I have done so.
I have also tried connecting the CSB pin to high as well as low. No benefit.
Hmmm... that seems to cover the basics.... I have a Due + GY-63 at the office - I will check for you tomorrow (approx 12 hrs)
Thank you very much. I will be eagerly waiting for your response.
Omair,
I am glad you got it to work. Unfortunately I have not ever had to interface this sensor to the Due previously so I have no code on hand to share. I see there are a few Arduino libraries around for this sensor but I suspect none of them will compile directly for the Due. I just downloaded the FreeIMU library from:
http://www.varesano.net/projects/hardware/FreeIMU#library
and with a bit of tweaking, managed to compile both:
libraries\MS561101BA\examples\MS561101BA_simple.pde
libraries\MS561101BA\examples\MS561101BA_altitude.pde
I am based at our head office today and do not have access to the Due or sensor to check if this was successful. As it is Friday today, I will not be back at the office until Monday but can check the code then.
I have attached the altered FreeIMU files so you can have a go yourself
MS561101BA.cpp
MS561101BA.h
Omair,
I encountered the same issue you describe using a similar setup. It looks like there is a bug in the Wire library that is causing a problem with the Due. You can download the very latest master version of Arduino from:
https://github.com/arduino/Arduino
or just update Wire.cpp from here:
https://github.com/bluesign2k/Arduino/blob/63f0ca06a8af7a223aacca8b...
This fixes the problem for me.