Thats what I was thinking before about the sync when I believed that it might had been reading in the ACK instead. The EZ-B clock needs be same sample speed as the ITG3200.
O and an update on project tested it with all four props and it does take off(hovered it before turning off actually ran it into the wall but its fine) , however no stabibility without the gyro so cant fly it to much.
I see the problem... You need a level convertor. I can't beleive i didn't think of this earlier. Sure we can power the ITG-3200 with 3.3v from the EZ-B, but we can't communicate 3.3v. The i2c logic is pulled to 5v. The datasheet defines the ITG Logic must be < VDD
By connecting the ITG to the EZ-B's 5v i2c, you have have ruined it. I'm not sure, but a logic convertor is the only way to tell.
Datasheets man, datasheets. Annoying to read, but necessary.
I have a MMA7455 Digital Accelerometer sitting here.. It's rated at 3.3v also. So i decided to try it... And it works fine with 3.3v VDD and 5v i2c. I am pretty sure the ITG-3200 was made to break my brain.
I already have an accelerometer, ADXL335 and have it programmed for a while now. Need the gyro for rate to recalculate the angle as there is alot of noise on the sensors when the motors run. The default address depends on how VIO is tied from what you have guess you have it tied to ground. How you setup CLK on the ITG3200? If you tie it to ground it uses the internal clock of 400kHz.
I have tried everything with the ITG. I internal clock uses UP to 400Khz. I have the i2c on the EZ-B set for 100khz for compatibility. I tried it with 400khz, just to see and still nothing.
I also shortened the wires to 1 inch. I wrote a for loop that tried every single 7-bit address. I data logged everything. The itg-3200 will not respond and I don't know why.
It might be due to the 3.3v and 5v i2c... Might still be the issue. But I have no idea. The MMA7455 has a gyro level mode, which works exactly how you'd want. That is what i was demonstrating in the video.
Long time no chat DJ. Got the V4 for xmas so I will be looking for some things to do with it. Already stripped the board out of its housing and because I love the look of pcbs I will probably be replacing the power connector. Guess I got to look around and see if your still putting out the C#. Still going to see how much your team and you have updated the GUI though. Looking forward to the possibilities. Very Nice stack-able by the way, already had the liberty to de-stack it and its not so fun having to place the boards back together with those little connectors lol.
Sweet! This will be a lot easier
For ease so you don't have to go between facebook. I was a little surprised when I saw the waves.
Datasheet
EZ-B || ITG3200 SDA - SDA SCL - SCL GND - GND 3.3V - VDD/VIO
Solder contacts together next to CLK for internal CLK
Why would you want internal CLK? Isn't the point of i2c to get the clk from the master?
For sync reasons between the devices yes however where is the clk signal coming from on the EZ-B then?
The EZ-B generates a clk on the SCL. Maybe that is why your scope capture has strageness. Maybe it's because there are conflicting clock signals?
Tonight when i get home, i'll scope an i2c communication so you can see what the SCL clock looks like.
Hopefully I get my ITG this week too
Thats what I was thinking before about the sync when I believed that it might had been reading in the ACK instead. The EZ-B clock needs be same sample speed as the ITG3200.
You get your Gyro yet? I really believe their clocks are different which prevents them from syncing.
O and an update on project tested it with all four props and it does take off(hovered it before turning off actually ran it into the wall but its fine) , however no stabibility without the gyro so cant fly it to much.
Grrr, i'm annoyed with this gyro...
Here is a breakdown of the communication from the EZ-B (i2c Master) and the ITG (i2c Slave)
Datasheet says itg-3200 default address is b1101000 (0x68)
Start bit
Writes 8 bits. MSB 7-bits is address 0x68. LSB is 0 for "Write"
Writes 0x00 (Who am i). Datasheet says device will ACK, there is no ack. 9th LSB is still high
Restart occures
Writes 8 bits. MSB 7-bit address is 0x68. LSB is 1 for "Read"
Clock from i2c master. ITG does nothing and leaves SDA high, which means 255
Stop Bit
So... What does this mean? It means this ITG-3200 is not listening. Why? I have no idea. It doesn't seem to be attempting to pull the SDA logic down.
AH!!!
I see the problem... You need a level convertor. I can't beleive i didn't think of this earlier. Sure we can power the ITG-3200 with 3.3v from the EZ-B, but we can't communicate 3.3v. The i2c logic is pulled to 5v. The datasheet defines the ITG Logic must be < VDD
By connecting the ITG to the EZ-B's 5v i2c, you have have ruined it. I'm not sure, but a logic convertor is the only way to tell.
Datasheets man, datasheets. Annoying to read, but necessary.
I have a MMA7455 Digital Accelerometer sitting here.. It's rated at 3.3v also. So i decided to try it... And it works fine with 3.3v VDD and 5v i2c. I am pretty sure the ITG-3200 was made to break my brain.
EZ-B writes, slave ACK's
EZ-B writes, slave ACK's
EZ-B writes to read address, slave ACK's
Slave responds.. Voila
Just get an MMA7455L and call it a day
I already have an accelerometer, ADXL335 and have it programmed for a while now. Need the gyro for rate to recalculate the angle as there is alot of noise on the sensors when the motors run. The default address depends on how VIO is tied from what you have guess you have it tied to ground. How you setup CLK on the ITG3200? If you tie it to ground it uses the internal clock of 400kHz.
I have tried everything with the ITG. I internal clock uses UP to 400Khz. I have the i2c on the EZ-B set for 100khz for compatibility. I tried it with 400khz, just to see and still nothing.
I also shortened the wires to 1 inch. I wrote a for loop that tried every single 7-bit address. I data logged everything. The itg-3200 will not respond and I don't know why.
It might be due to the 3.3v and 5v i2c... Might still be the issue. But I have no idea. The MMA7455 has a gyro level mode, which works exactly how you'd want. That is what i was demonstrating in the video.
Where you get the breakout board from? I'll overnight it if i can. Either way its something new to play with lol.
You can get an over priced one from paralalalalalax here: MMA7455
o but its not blue lol, thats k the gyro was 50 from sparkfun before s&h. Besides I'm sure I'll find a use for it down the road if i don't use it now.
It will be perfect for what you need I'm sure of it
Long time no chat DJ. Got the V4 for xmas so I will be looking for some things to do with it. Already stripped the board out of its housing and because I love the look of pcbs I will probably be replacing the power connector. Guess I got to look around and see if your still putting out the C#. Still going to see how much your team and you have updated the GUI though. Looking forward to the possibilities. Very Nice stack-able by the way, already had the liberty to de-stack it and its not so fun having to place the boards back together with those little connectors lol.