pressure sensor BMP085

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received
        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.   
0 Likes
5 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

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.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked
        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   
   
Bob   
0 Likes
lock attach
Attachments are accessible only for community members.
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

   

Have a look at...

   

 

   

 

   

Bob

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

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 (.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I'm glad when I could help you!

   

 

   

Bob

0 Likes