Data Logger Shield and BMP085 sensor

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Data Logger Shield and BMP085 sensor

Postby powersoft » Tue Jan 31, 2012 2:33 pm

Hello,

I using for the barometric pressure measurement a BMP085 sensor (3.3 volt)
The data logger is using the I2C bus on 5.0 volt.

Can I connect this BMP085 to the other analog ports?
Or how to avoid this power problem?

Thanks for any help.

Jan Kromhout
Hellevoetsluis-NL
powersoft
 
Posts: 13
Joined: Tue Aug 30, 2011 12:01 am

Re: Data Logger Shield and BMP085 sensor

Postby adafruit_support_bill » Wed Feb 01, 2012 5:49 am

The BMP085 needs 3.3v for VCC. But it can use the regular Arduino I2C bus for data.
User avatar
adafruit_support_bill
 
Posts: 16078
Joined: Sat Feb 07, 2009 9:11 am

Re: Data Logger Shield and BMP085 sensor

Postby powersoft » Wed Feb 01, 2012 4:10 pm

This is strange. In the bmp85 sensor tutorial you write

Dont use a 5V powered I2C device (like the DS1307) at the same time as a 3.3V device like the BMP085

What to do now?

Thanks in advance

Jan Kromhout
Hellevoetsluis-NL
powersoft
 
Posts: 13
Joined: Tue Aug 30, 2011 12:01 am

Re: Data Logger Shield and BMP085 sensor

Postby adafruit_support_bill » Wed Feb 01, 2012 4:31 pm

Yes, the DS1307 could be a problem.

There is a new SoftI2C library that will allow you to do i2c on any two pins: http://forums.adafruit.com/viewtopic.php?f=25&t=13722
User avatar
adafruit_support_bill
 
Posts: 16078
Joined: Sat Feb 07, 2009 9:11 am

Re: Data Logger Shield and BMP085 sensor

Postby adafruit » Wed Feb 01, 2012 10:51 pm

just remove the two 2.2K resistors from the shield.
User avatar
adafruit
 
Posts: 10491
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Data Logger Shield and BMP085 sensor

Postby petermao » Sat Mar 10, 2012 5:59 pm

Hi Jan,

have you got yours working yet? I'm trying to do the exact same thing with the adafruit data logging shield, the BMP085 pressure sensor and an LCD shield.

Here's where I am as of today:
1. grabbed the i2cv2 library
2. wired up the BMP085 SCL to analog 3 (pin 17) and SDA to analog 2 (pin 16)
3. tweaked the i2cScopeTest example to communicate software i2c w/ the BMP085 while using the HW i2c to write output to the LCD screen.

so far, I've only confirmed that something is happening on the analog 2 and analog 3 pins with a scope, I'm not processing the BMP085 data yet.

I imagine that Adafruit_BMP085.cpp needs to be reworked to read/write over the software i2c pins. has anyone done that already? or is there a slick OOP way to do it?

Peter
petermao
 
Posts: 6
Joined: Thu Jun 16, 2011 11:46 am

Re: Data Logger Shield and BMP085 sensor

Postby petermao » Tue Mar 13, 2012 1:04 am

HEY!!! I got it working!

there were quite a few detail.
1. I altered the Adafruit BMP085 library to work with the I2cMaster library (see last post).
2. The I2c addresses of devices over the I2cMaster are left shifted by one bit wrt the "normal" address (0x77 turns into 0xEE).
3. I2cMaster is a little different from Wire for I2c communications. It uses the low bit of the address (recall that it has been left-shifted one bit) as a read/write bit, so there is no equivalent call to "requestFrom"

What's the best way to feed the code back upstream?

Peter
petermao
 
Posts: 6
Joined: Thu Jun 16, 2011 11:46 am

Re: Data Logger Shield and BMP085 sensor

Postby adafruit_support_bill » Tue Mar 13, 2012 6:07 am

The best way to feed back on library issues is to log an issue on github.
User avatar
adafruit_support_bill
 
Posts: 16078
Joined: Sat Feb 07, 2009 9:11 am

Re: Data Logger Shield and BMP085 sensor

Postby petermao » Fri Mar 16, 2012 11:43 pm

I forked the Adafruit BMP085 library to run on other pins. See here.
petermao
 
Posts: 6
Joined: Thu Jun 16, 2011 11:46 am


Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: mibignistinly and 3 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [108]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[31]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[34]
LCDs & Displays[48]
Components & Parts[70]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[111]
 
Wireless[14]
Cables[62]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]