Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compatibility with BMP180 #3

Open
JonathancalderonIL opened this issue Jan 9, 2015 · 6 comments
Open

compatibility with BMP180 #3

JonathancalderonIL opened this issue Jan 9, 2015 · 6 comments

Comments

@JonathancalderonIL
Copy link

hello,
will this work for the newer bmp180 >?
i am looking to have a BMP180 light a different led color for different ranges of altitudes.
any chance you can help ?
this will be implumented on my FPV night flight hobby

@cano64
Copy link
Owner

cano64 commented Jan 9, 2015

Yes, it will work with no changes required at all, I have tested it and I
already build a device with BMP180.

On Fri, Jan 9, 2015 at 11:27 AM, JonathancalderonIL <
[email protected]> wrote:

hello,
will this work for the newer bmp180 >?
i am looking to have a BMP180 light a different led color for ranges of
altitudes.
any chance you can help ?


Reply to this email directly or view it on GitHub
#3
.

@JonathancalderonIL
Copy link
Author

thanks for the quick reply
i am very new to arduino...
can you give me a simple example code to read the atlitude ?
and how can i use this reading to light a led ?

@cano64
Copy link
Owner

cano64 commented Jan 9, 2015

it comes with example sketch in the example folder. To read altitude in
decimeters just use
int altSTDdm = bmp.readAltitudeSTDdm();

On Fri, Jan 9, 2015 at 11:47 AM, JonathancalderonIL <
[email protected]> wrote:

thanks for the quick reply
i am very new to arduino...
can you give me a simple example code to read the atlitude ?
and how can i use this reading to light a led ?


Reply to this email directly or view it on GitHub
#3 (comment)
.

@JonathancalderonIL
Copy link
Author

thanks
is there a way reading altitude in meters?
and i cant find were to connect the SDA and SCL to the ATTINY85 ...

@cano64
Copy link
Owner

cano64 commented Jan 9, 2015

SDA and SCL on tiny85 are on pins 5 and 7 respectively, see this diagram
http://fc04.deviantart.net/fs70/f/2013/038/3/7/attiny_web_by_pighixxx-d5u4aur.png
To get altitude in meters just divide the result in dm by 10.
There is also a method that returns altitude in meters as a float, but you
should avoid using floats on a microcontroller.

On Fri, Jan 9, 2015 at 12:03 PM, JonathancalderonIL <
[email protected]> wrote:

thanks
is there a way reading altitude in meters?
and i cant find were to connect the SDA and SCL to the ATTINY85 ...


Reply to this email directly or view it on GitHub
#3 (comment)
.

@beicnet
Copy link

beicnet commented Jul 12, 2017

Dear @cano64,

I read that it's compatible with BMP180, so, it would work with BMP280 too?

Thank you!

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants