GY-63 MS5611 interface with Arduino (Due)

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!

Join diydrones

Email me when people reply –


  • Hi Omair,
    "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:   (Page 17)

      I have tried this much so far. 

      • Can you please be specific as to how you are powering your gy-63 and exactly what pins on your due you are using
        • 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:


                    and with a bit of tweaking, managed to compile both:



                    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



                    FreeIMU: an Open Hardware Framework for Orientation and Motion Sensing |
                  • 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:


                    or just update Wire.cpp from here:


                    This fixes the problem for me.

                    open-source electronics prototyping platform. Contribute to arduino/Arduino development by creating an account on GitHub.
This reply was deleted.


DIY Robocars via Twitter
RT @knightsautoteam: Hi @diyrobocars, we are Orlando's first Autonomous racing club and would love your support. We are hosting our first K…
Jan 20
DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #14 - #ParkingLotNerds join us January 15th for #AutonomousRacing #RoboRace ⁦@DAVGtec…
Jan 16
DIY Robocars via Twitter
RT @chr1sa: And after that came our races, 50 in all. This battle between these two Russians was the best we've ever seen -- incredible fig…
Jan 16
DIY Robocars via Twitter
RT @chr1sa: Before our @DIYRobocars virtual race this weekend, we had a presentation from the team that won the Indy Autonomous Challenge i…
Jan 16
DIY Drones via Twitter
Dec 12, 2021
DIY Robocars via Twitter
Dec 12, 2021
DIY Robocars via Twitter
RT @chr1sa: Just a week to go before our next @DIYRobocars race at @circuitlaunch, complete with famous Brazilian BBQ. It's free, fun for k…
Dec 4, 2021
DIY Robocars via Twitter
How to use the new @donkey_car graphical UI to edit driving data for better training
Nov 28, 2021
DIY Robocars via Twitter
RT @SmallpixelCar: Wrote a program to find the light positions at @circuitlaunch. Here is the hypothesis of the light locations updating ba…
Nov 26, 2021
DIY Robocars via Twitter
RT @SmallpixelCar: Broke my @HokuyoUsa Lidar today. Luckily the non-cone localization, based on @a1k0n LightSLAM idea, works. It will help…
Nov 25, 2021
DIY Robocars via Twitter
@gclue_akira CC @NVIDIAEmbedded
Nov 23, 2021
DIY Robocars via Twitter
RT @luxonis: OAK-D PoE Autonomous Vehicle (Courtesy of zonyl in our Discord:
Nov 23, 2021
DIY Robocars via Twitter
RT @f1tenth: It is getting dark and rainy on the F1TENTH racetrack in the @LGSVLSimulator. Testing out the new flood lights for the racetra…
Nov 23, 2021
DIY Robocars via Twitter
RT @JoeSpeeds: Live Now! Alex of @IndyAChallenge winning @TU_Muenchen team talking about their racing strategy and open source @OpenRobotic…
Nov 20, 2021
DIY Robocars via Twitter
RT @DAVGtech: Live NOW! Alexander Wischnewski of Indy Autonomous Challenge winning TUM team talking racing @diyrobocars @Heavy02011 @Ottawa…
Nov 20, 2021
DIY Robocars via Twitter
Incredible training performance with Donkeycar
Nov 9, 2021