Teensy 2.0 - I2C not connecting with BMPO85

Status
Not open for further replies.

fré

New member
I recently got a BMP085 from Drotek, trying to connect it now with my new Teensy 2 (ordered via Ada 2 weeks ago).
Sadly, I don't get aaaaany output, not even with basic code & simple examples like
http://https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B3ASxBYiXsrDYmYyNjVmZmUtZDc2My00MzNjLTkxYzMtNTUyMDBkMDMzZTZj&hl=fr

Just wondering whether the chip got fried or what I might be doing wrong... Coding with Arduino 1.0.3 & latest teensyduino.
Issues with libraries? With I2C-pins? (aaaaaaaaarghhh)
Connect SCL with D0 (pin5), SDA with D1 (pin6) ... 5V running of VCC near the USB-plug.

** Code going FUBAR at dps.init...


2013-03-01 21.07.49.jpg

Code:
#include <Wire.h>
#include <BMP085.h>

const int Speed = 19200;
const int buzzPin = 4;

char STRING[40]="";
int32_t Pressure = 999999;
int32_t Altitude = 99999; 

int pitch=400;
int count=12;

BMP085 dps = BMP085();

//=========================================================================

void bleep(int toon=0) {
  tone(buzzPin,pitch,100);
  
  if (toon > 0) { delay(200); tone(buzzPin,pitch+150,150); }
}

//=========================================================================
// the setup() method runs once, when the sketch starts

void setup() {

  delay(5000);
  bleep();

  Wire.begin();
  Serial.begin(28800);
 
  Serial.println("Starting DPS\n");
  
  delay(1000);
  dps.init();
  delay(1500);
  
  bleep(1);

  Serial.println("DPS Started.");
 
 }

//================================================================================
void loop() {

  dps.getPressure(&Pressure);       delay(200);
  dps.getAltitude(&Altitude);

  sprintf(STRING,"%lu,%lu,%lu,%u,%u,",Pressure,Altitude);
  Serial.println(STRING);

  tone(buzzPin,pitch*count++/4-200,100);

  delay(200);
}
 
Last edited:
Is this board 5V tolerant? I think there a several BMP85 boards that are limited to 3.3V

And: There are several broken examples for the BMP085 floating around, I had lots and lots of trouble until I found a working sketch.
 
Is this board 5V tolerant? I think there a several BMP85 boards that are limited to 3.3V

And: There are several broken examples for the BMP085 floating around, I had lots and lots of trouble until I found a working sketch.

Both boards are supposed to as announced. Bmp-board contains connections for 5V & 3.3V and something that looks like a voltage regulator... So I might expect it to be.
No idea how resistant it could/might/will/shall be to voltage fluctuations though... Is the VoltReg not supposed to take this into account?
Beside that, for both Sda and scl, pullups have been installed too...
 
Last edited:
Status
Not open for further replies.
Back
Top