cano64 / ATTiny85-ATTiny84-BMP085-Arduino-Library-FastAltitude

ATTiny BMP085 Arduino Library is designed for ATTiny85 and ATTtiny84 microcontrollers using super fast and tiny calculation of altitude without pow and math library
11 stars 3 forks source link

compatibility with BMP180 #3

Open JonathancalderonIL opened 9 years ago

JonathancalderonIL commented 9 years ago

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 commented 9 years ago

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 < notifications@github.com> 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 https://github.com/cano64/ATTiny85-ATTiny84-BMP085-Arduino-Library-FastAltitude/issues/3 .

JonathancalderonIL commented 9 years ago

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 commented 9 years ago

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 < notifications@github.com> 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 https://github.com/cano64/ATTiny85-ATTiny84-BMP085-Arduino-Library-FastAltitude/issues/3#issuecomment-69361497 .

JonathancalderonIL commented 9 years ago

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

cano64 commented 9 years ago

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 < notifications@github.com> 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 https://github.com/cano64/ATTiny85-ATTiny84-BMP085-Arduino-Library-FastAltitude/issues/3#issuecomment-69364134 .

beicnet commented 7 years ago

Dear @cano64,

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

Thank you!

Regards