Sudden troubles with BMA180?

Post Reply
spagoziak
Posts: 171
Joined: Thu Jan 20, 2011 1:18 am

Sudden troubles with BMA180?

Post by spagoziak »

So I've flown this BMA180 on countless flights before, but after re-wiring it to a breadboard for re-installation onto the MWC, I'm having no success.

  • I'm using 1.7 for this since 1.8 hasn't been very reliable for me.
  • When the BMA180 is plugged into the I2C line, my cycle times range from 6k to 30k to -12k, or freeze altogether... I used to get 4k with this chip before I rewired it.
  • The GUI will behave normaly if only the WMP is on the I2C line. Adding the ACC causes the graph to show no changes, even on the gyro lines.
Before adding BMA180:
Before adding BMA180
Before adding BMA180


After adding it:
After adding bma180
After adding bma180


So it seems that the I2C line is being poisoned by something related to that ACC. But I'm not sure what it could be..? I've checked everything very thoroughly (so I think) and I've found no errors.

What am I missing?

**

  • The BMA180 is anchored in place on this breadboard with 2 header pins. All connection bridging is done up on top where it can be seen.
  • I've used magnet wire to make my connections because it's light weight and flexible. All the ends were dremeled clean to expose the copper, then fluxed, then soldered.
  • All multi-wire junctions were fluxed again before being soldered, to ensure no cold joints.
  • Continuity was tested on each little wire before I added it to the board.
  • I've tested for shortcuts by testing the leads that enter the I2C line--none offer 0 resistance, so I'm confident that I've not crossed wires somewhere.
  • Voltage powering the board was measured at 3.30v--I'm using Jussi's shield, which has a regulator on board.
  • Internal pullups are //disabled in code.

Image
Image
Image

Here are the diagrams I've followed to set this chip up:
Image
Image

Any insight here is greatly appreciated! I'm wasting what's left of the flying season with this :(
spag

spagoziak
Posts: 171
Joined: Thu Jan 20, 2011 1:18 am

Re: Sudden troubles with BMA180?

Post by spagoziak »

I've filled out this post with the images so now it's easier to read. What do you folks think this accelerometer is doing?

mr.rc-cam
Posts: 457
Joined: Wed Jul 27, 2011 11:36 pm

Re: Sudden troubles with BMA180?

Post by mr.rc-cam »

The BMA180 could be damaged/dead, so I'd suggest you purchase another one and try again. Be aware that chips can be gravely harmed if poor static control methods are used during soldering, so review your soldering tools and work bench for such issues.

Also, instead of hard mounting the BMA180 BOB onto the perfboard with the two header pins, I suggest you remove the pins and soft mount it on foam or gel pad. Your wires can be routed so that they are shorter (yet still flexible) so that they do not contribute any vibrations into the floating BOB assembly.

spagoziak
Posts: 171
Joined: Thu Jan 20, 2011 1:18 am

Re: Sudden troubles with BMA180?

Post by spagoziak »

Is the behavior I describe symptomatic of a damaged acc?

And... does anyone have a bma180 they'd like to sell? For less than sparkfun's $30 + shipping ? :roll:

spag

mr.rc-cam
Posts: 457
Joined: Wed Jul 27, 2011 11:36 pm

Re: Sudden troubles with BMA180?

Post by mr.rc-cam »

Is the behavior I describe symptomatic of a damaged acc?

I've never installed a bad BMA180 to see what happens, so I cannot confirm anything.

If you have an o-scope you could check the I2C buss to see what it is doing with the BMA180 installed. Also, if your scope shows that the PowerPin cycles when the BMA180 is installed then it is surely corrupting the I2C buss.

spagoziak
Posts: 171
Joined: Thu Jan 20, 2011 1:18 am

Re: Sudden troubles with BMA180?

Post by spagoziak »

Sadly, I don't have such a contraption... never even seen one! Isn't there a way to make one using a sound card out of a computer, some how? Or was that some other gadget I'm thinking of?

mr.rc-cam
Posts: 457
Joined: Wed Jul 27, 2011 11:36 pm

Re: Sudden troubles with BMA180?

Post by mr.rc-cam »

Soundcard based scopes are useful for audio frequencies and lower. But the I2C buss is much too fast for them.

Unless someone else chimes in with a brilliant solution I think installing another BMA180 is about all you can do to determine if yours was bad.

spagoziak
Posts: 171
Joined: Thu Jan 20, 2011 1:18 am

Re: Sudden troubles with BMA180?

Post by spagoziak »

Well Poop. I have a spare BMA020 laying around... I guess that's what I'll have to do... $40 for a new one is out of reach for now. Poop!

mr.rc-cam
Posts: 457
Joined: Wed Jul 27, 2011 11:36 pm

Re: Sudden troubles with BMA180?

Post by mr.rc-cam »

Just as a parting comment, there is still hope that the problem is in the build. That is to say, you've shown everything you've done to the BOB. However, it needs to be connected to your Arduino and that wiring is suspect too. So check ALL your wiring again. Good luck!

User avatar
mgros
Posts: 90
Joined: Thu Jan 20, 2011 12:32 am

Re: Sudden troubles with BMA180?

Post by mgros »

Silly question. ¿have you calibrated the ACC after the installation?.

spagoziak
Posts: 171
Joined: Thu Jan 20, 2011 1:18 am

Re: Sudden troubles with BMA180?

Post by spagoziak »

mgros wrote:Silly question. ¿have you calibrated the ACC after the installation?.


Definitely :) Good question though!

Trouble is, the acc usually freezes the GUI and the Ard entirely when it's on the bus. So calibration doesn't get to happen very often.

This thing used to be perfect! Just last week, even...

Post Reply