Track My Order
Frequently Asked Questions
International Shipping Info
Mon-Fri, 9am to 12pm and
1pm to 5pm U.S. Mountain Time:
Chat With Us
February 28, 2012
about 6 years ago
Thank you, I got it working now. Another question is how do I display a tilt angle? I have X, Y, Z values I can read and display. but I need to co-relate these number to the tilt angle to have my motor to compensate. I am looking for a 0-1023 No (10 bit output) with -90 degree to 90 degree tilt respectively or 511 value set as 0 deg.
I appreciate all your help.
Thank you, I got it working. But how do I use that gyro chip ITG-3200. they both share the same SDA and SCL pins?
Do I need the line in the code somewhere to specify which chip to use? Sorry for all these stupid question :-)
Thank you, Mike for your reply. I will try this tonight. the only thing is that in that example they connect SCL and SDA to analog inputs and didnt use Int0 or Int1 pints. Do I need to get that wired to the Arduino as well?
I just got my 6DOF ITG3200/ADXL345 and I am trying to make it work with Arduino Uno board. All I got in my serial monitor is a scrolling 1023 number. I am a very new at this, so please help.
I connected 3.3 ref voltage and 2 resistors 4.7k connected to the SDA and SCL pins on the sensor. I’ve read here that some guys were talking about addressing 0xDO and so on… but I dont know where to change it. Is it something on the Arduino controller board? please help. Here is the program I use in Arduino. I tried differnt pin outputs in the program with the same result.
// Arduino - Analog 3.3v Accelerometer
// Connect accelerometer output into Arduino analog pin 0
// Upload, then open Serial monitor at 9600bps to see accelerometer value
int angle = 0; // variable used to hold the “rough angle” approximation
Serial.begin(9600); // start Serial monitor to print values
analogReference(EXTERNAL); // tell Arduino to use the voltage connected to the Aref pin for analog reference (3.3v) //– remove this command if you are using a 5v sensor.
angle = analogRead(1); // read the accelerometer from Analog pin 0
Serial.print(“Accelerometer: ”); // print the word “Accelerometer: ” first
Serial.println(angle); // then print the value of the variable “angle”
delay(100); // update 20 times per second (1000 mS / 50 mS = 20)
No public wish lists :(
Forgot your password?
No account? Register one!