5 Replies Latest reply on Oct 16, 2013 9:31 AM by JoMe_264151

    pressure sensor BMP085

              Hello. It small project to explore the pressure sensor BMP085. http://dx.com/p/bmp085-barometric-digital-pressure-sensor-module-board-for-arduino-blue-147261 The datasheet are available from their website: http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Sensors/Pressure/BST-BMP085-DS000-06.pdf The test version (on the principle that if only earned))) ). On the LCD CHAR display temperature (0.1 ° C) and pressure (Pa). I hope someone will need.   
        • 1. Re: pressure sensor BMP085

          I compiled under Creator 3.0, compile completed w/o any errors or warnings.




          Nice project in the sense shows how little code it takes to accomplish a lot


          in this day and age. And intergrated external sensor peripheral certainly helps.




          Regards, Dana.

          • 2. Re: pressure sensor BMP085
                    Despite the problem you solved and published I'd like to have a (some) word(s) about C-Languge files.   
            You put some functionality into your .h files to part them from your main.c which is very good, since it smallers the project-files and increases readability.   
            Usually (differently from your approach) there are two files: a .c file and a .h file with the same name.   
            The .c-file contains all the code, the variable definitions and usually #includes the (its) .h-file.   
            The .h file contains all the needed function prototypes that are going to be accessed from other modules (including some API-documentation). Variables are declared only here, not defined, so a .h- file will not allocate any ram.   
            As a special one a .h- file is made in a way so that multiple #includes within a project does not lead to doubly defined symbols. this is done with   
            #ifndef Unique_Symbol // i.e. __ModuleName_h   
            #define UniqueSymbol   
            // Body of .h-file goes here   
            #endif // End-Of_File   
            • 3. Re: pressure sensor BMP085

              I took the liberty to modify your project to show up what I mean with my .h / .c files.


              Have a look at...







              • 4. Re: pressure sensor BMP085

                Thank you, Bob.
                Thanks to the PSoC I manage to quickly solve my little problem without thinking about the lack of resources and optimize code (yet).
                It's like as a modern camera allows the layman to do good photos.
                Professionalism and energy of the members of the forum, is helps me to improve my experience with PSoC.
                Unfortunately have to learn on the go and at their own mistakes (.

                • 5. Re: pressure sensor BMP085

                  I'm glad when I could help you!