Pages: 1 ... 4 5 [6]   Go Down
Author Topic: I2C hangs  (Read 12901 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 1
Posts: 141
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm sure that this isn't due to bad soldering , anyway I'll check everything with many tests when I have time.
Logged

რასაცა გასცემ შენია, რაც არა - დაკარგულია!

Offline Offline
Full Member
***
Karma: 1
Posts: 141
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I run the same code with L3G4200D and everything goes ok.
Logged

რასაცა გასცემ შენია, რაც არა - დაკარგულია!

Worcester, MA
Offline Offline
God Member
*****
Karma: 3
Posts: 623
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@kaor
There's another rev of the library that I just posted which seems to handle a majority of lockups now so you may want to try this one also. 
Logged

I2C GPS Shield

Checkout my Open Source GPS Tracker on Kickstarter

Offline Offline
Full Member
***
Karma: 1
Posts: 141
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

wayneft, ok, I'll try it asap.
 
Logged

რასაცა გასცემ შენია, რაც არა - დაკარგულია!

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi there,

I came across the same problem as you did. I tried a couple of things concering I²C conduction and prohibition. But nothing did the trick for me. Finally I used a shielded cable for the 3.3V and GND connection, which solved my problems. Since then I have not experienced any problems again. I hope it workes for you or anybody else with that problem too!

P.S.: I am sorry to bring up this old thread. But this thread was more or less the hint for the right solution, so I thought it would be nice to leave a note for anybody with the same problem
« Last Edit: November 12, 2012, 10:44:04 am by Tentacle » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm using itg3200/adxl345 to detect tilting angle and i'm having the exact problem. Reading from just the two sensors was a stroll down the park but when i try to run a motor and reading the sensors together in one loop, it starts to hang. The hangs happen randomly sometimes immediately after i power on the arduino, sometimes it takes a while to trigger the freeze.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I figured out, that you cant turn the 5V Pull Ups on the Mega off. Since I use a Level Shifter all the problems are gone.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


Mr.Tentacle

How do you used a shielded cable for the 3.3V and GND connection?
I can't understand about it.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I used a cable like this: http://www.eltim.eu/data/articles/images/small/s_1532.jpg , used the shield wire as the ground and the inner cable as the + cable. But like I said before, it didn't help. We just did it because we used 1000 watt engines and wanted to make sure that induction isn't running everything. But the problem with the board was that the i2c uses 5 volt on the mega but the sensor works with 3.3 volt. Nevertheless good luck with your project.
Logged

Pages: 1 ... 4 5 [6]   Go Up
Jump to: