I would like to connect a BPM085 sensor (I2C) to a maple mini. I managed to get a 1306 OLED working on I2C. So I think, the basic wire() communication is working.
If I connect the two modules to an Arduino they work. So I think, it has something to do with the library
Does anybody work already with the BPM085?
Andreas
P.S. I tried this library: https://github.com/adafruit/Adafruit-BMP085-Library
The pinouts are in the source files.
https://www.hackster.io/rayburne
Specifically:
https://www.hackster.io/rayburne/color- … time-clock
Ray
Unfortunately, the IDE does not have a “hierarchy” where it starts with the most specific library and it took the “normal” one in the sketches directory. So, I had to delete the one in the sketches library. Later I will put it where it belongs in the Arduino hardware specific folder.
Interestingly, your library uses I2C channel 1 and the Adafrout OLED library uses I2C channel 2 on Maple Mini. Very convenient for me.
My plan is to compare the reading of the BPM180 with a GPS on my bicycle.
Thanks
Andreas
<…>
Unfortunately, the IDE does not have a “hierarchy” where it starts with the most specific library and it took the “normal” one in the sketches directory. So, I had to delete the one in the sketches library. Later I will put it where it belongs in the Arduino hardware specific folder.
Have you by chance gotten a hold of the new BME280 yet? I haven’t even seen much of an Arduino library, but it’s an interest update to the BMP180 as it has temperature, pressure and humidity all built in and it native 3v logic. Seems like a natural fit for the STM32. I am tempted to order one up, but I like to test new stuff on my trusty ‘ol AVR Arduino boards… Of course they are all 5V, SO I would either need to whip up some level shifting or a 3.3v AtMega chip.
https://github.com/embeddedadventures/BME280
About 20$
http://www.embeddedadventures.com/bme28 … -1022.html
Have you by chance gotten a hold of the new BME280 yet? I haven’t even seen much of an Arduino library, but it’s an interest update to the BMP180 as it has temperature, pressure and humidity all built in and it native 3v logic. Seems like a natural fit for the STM32. I am tempted to order one up, but I like to test new stuff on my trusty ‘ol AVR Arduino boards… Of course they are all 5V, SO I would either need to whip up some level shifting or a 3.3v AtMega chip.
I have some BMP180 modules, which only cost a few dollars, but the 280 seems to be almost $20.
This cant reflect the true price of the sensor. I suspect the price will drop a lot as more people start to make those module boards.
Re: AVR 328 on 3.3
I have some 8mhz 3.3V pro mini boards.
I tried to run one of my 5v 16mhz boards on 3.3V but it didn’t seem to work, but it doesn’t do any harm to try.
I have some BMP180 modules, which only cost a few dollars, but the 280 seems to be almost $20.
This cant reflect the true price of the sensor. I suspect the price will drop a lot as more people start to make those module boards.
Re: AVR 328 on 3.3
I have some 8mhz 3.3V pro mini boards.
I tried to run one of my 5v 16mhz boards on 3.3V but it didn’t seem to work, but it doesn’t do any harm to try.
It was some time ago, but I think it was a pro mini, which I tried and I don’t think it has a regulator
If I get time I’ll try it again.
It was some time ago, but I think it was a pro mini, which I tried and I don’t think it has a regulator
If I get time I’ll try it again.
OK. Thanks for the tip. I suspect I was feeding into the regulator input. I’ll need to test again, as I think I have a need for a very small uProcessor board soon. (and the Maple mini etc is probably too big)
Roger, I see Adafruit has a BME280 breakout for about $20, but it includes a 3.3V regulator and level shifting. The standard BME280 breakout is showing up on eBay for about $10.
My interest is that It’s all in 1 package and the older BMP180 can run off of 1.8V and the datasheet from the BME268 supports this. It means I could run a bare 328p chip/ BME280 / nrf24L01 ensor off of 2 AA batteries and not really have to worry too much about voltage regulation. The darn DHTxx sensors I have all like to be above 3V, so I have been designing a circuit with a low draw 3.3V regulator and 3 AA batteries to compensate.
Of course, an STM32 or even an ESP8266 running at 3.V with the BME280 would make for a nice package; the STM32 might have enough power to build a self-contained Density Altitude calculator, or at least I could build some nice in car or hiking weather/altitude readouts.
I have not implemented low-power 328 level power savings, but on my to-do list:
https://www.hackster.io/rayburne/smells … o-pro-mini
Ray
I have not implemented low-power 328 level power savings, but on my to-do list:
https://www.hackster.io/rayburne/smells … o-pro-mini
Ray
<…>
I built almost the same project, but using the 0.96″ Oled. I had it running on a 328p chip, but shelved it before I got the power savings enacted. Actually, I have code for the Oled version, and code to report via the MySensors libraries back to a base station (another half-finished project).
My ultimate goal is a portable unit I can take camping and run off a couple AAs, or even on of those solar battery banks. I have a couple of the solar lamps they sell for the garden (a singe AAA one and a couple LiPo ones) to try and hack the power feed from.
I eill do a little more reading on the BME280 and may just order one of the $10 breakout boards to play with.
If you are interested, the comparison is on youtube:
P.S. I measured much better results with the BMP280 for my application.
Andreas
(Around my house, upstairs vs downstairs is at least 5F to 6F and not linear, more a step function.)
Ray
With the BMP180, is the offset is way larger ?
(because, as you said, BPM280 are much more expansive)
The used formulas are given by Bosch in the datasheet.
@martinayotte, I do not understand your question. Maybe you pose it a little different?
OK, that is too funny; I almost spewed my coffee on the PC!
Ray
<…>
I mean, did you got chance to experiment with the cheaper BMP180 ?
This was only the firs step. In addition, I have to measure wind speed and true speed. So I will continue to experiment with these sensors and will create updates on youtube. I expect also more data about the precision of the BME280. I decided to pay the additional price because its results were much better.
Andreas

