- Mon Jan 03, 2011 2:51 pm
#116531
Hi
I have spend several days trying to connect accelerometer BMA180 breakout board to Arduino. I read several forums and topics regarding connecting those two components, followed all the instructions, but without any success. Here is how I connected the components (Arduino duemilanove, logic converter and BMA180):

The code I'm using to probe the BMA180 is following:
Did I missed something in wiring devices or can be that BMA180 is actually dead (40$ down the drains)? Just for reference I'm using arduino duemilanove and not uno (by mistake I used wrong image) and Arduino software version is 19.
Best regards
Ivan
I have spend several days trying to connect accelerometer BMA180 breakout board to Arduino. I read several forums and topics regarding connecting those two components, followed all the instructions, but without any success. Here is how I connected the components (Arduino duemilanove, logic converter and BMA180):

The code I'm using to probe the BMA180 is following:
Code: Select all
It get's stuck at Wire.send(0x00) line. When I put instead BMA180 gyro MG1101 (also I2C runing on 3.3V) and use the same code (only change device address to 0x50) I can read gyro data. But BMA180 plays dead... #include <Wire.h>
#define address 0x40
void setup()
{
Wire.begin();
Serial.begin(9600);
delay(2000);
Serial.println ("Init done");
}
void readID()
{
int temp, result, error;
Wire.beginTransmission(address);
Serial.println ("Wire.beginTransmission(address);");
Wire.send(0x00);
Serial.println ("Wire.send(0x00);");
Wire.requestFrom(address, 1);
Serial.println ("Wire.requestFrom(address, 1);");
while(Wire.available())
{
temp = Wire.receive();
Serial.println ("Wire.requestFrom(address, 1);");
}
Serial.print("Id = ");
Serial.println(temp);
result = Wire.endTransmission();
}
void loop()
{
readID();
delay(10);
}

Did I missed something in wiring devices or can be that BMA180 is actually dead (40$ down the drains)? Just for reference I'm using arduino duemilanove and not uno (by mistake I used wrong image) and Arduino software version is 19.
Best regards
Ivan