Show Posts
Pages: [1] 2 3 ... 17
1  Using Arduino / Sensors / Re: Getting Angle Measurments from LISY300 gyro on: February 26, 2011, 10:06:08 pm
The goal is to get the tilt angle in degreesĖš as seen in this video. Can anyone help? I know that a gyro outputs only a rotational rate, but I know it is possible to get the angle in degrees --->
Thanks

2  Using Arduino / Sensors / Re: Getting Angle Measurments from LISY300 gyro on: February 25, 2011, 11:03:19 pm
I'm sorry to comment twice, but I found some new information. In this instrucatable (step 3) it shows how to get angle from angular rate. But I do not know what these variables stand for... Can someone help me out?

"Because the gyro give us the angular rate, so a simple way to get the angle is have the angular rate multiplied by the time [angle = angle + w * dt]"

http://www.instructables.com/id/Angle-measurement-using-gyro-accelerometer-and-Ar/step3/Some-extra-information-before-we-proceed/

3  Using Arduino / Installation & Troubleshooting / 0022 Arduino using Libraries on: February 25, 2011, 10:20:24 pm
Hi,

I feel like this is a very stupid question but it does not make sense. I recently downloaded the most recent version of Arduino on my Mac running Leopard. When I downloaded it, there were no other files besides the +/- symbol arduino application. In the past, when I downloaded 0014, there were folders for library and other stuff. So my question, how can I add new libraries to 0022 and find the hardware folder. I am NOT new to Arduino, I have done this before. The recent version of Arduino just seems to not have the folders that I normally see. So, where can I access the library folder??

Thanks...
4  Using Arduino / Sensors / Getting Angle Measurments from LISY300 gyro on: February 25, 2011, 02:35:55 pm
Hi,

I recently purchased the LISY300 gyro sensor from Sparkfun.com. I have a project where I need the angle data from the gyro. I have already found out how to get the rotational rate from this tutorial: http://wiring.org.co/learning/basics/gyrolisy300al.html I have tried to get the gyro's angle data through my own programming, but I am not that good. I will post the code that I tried to use to get the angle data from the gyro. The code is a combination of a few different sources: http://arduino.cc/playground/Main/Gyro
http://wiring.org.co/learning/basics/gyrolisy300al.html

If you could please help me interface the LISY300 gyro with Arduino to get the angular data... THANKS

int gyroPin = 0;               //Gyro is connected to analog pin 0
float gyroVoltage = 3.3;         //Gyro is running at 3.3V
float gyroZeroVoltage = 1.65;   //Gyro is zeroed at 1.65V
float gyroSensitivity = .0033;  //Our example gyro is mV/deg/sec
float rotationThreshold = 1;   //Minimum deg/sec to keep track of - helps with gyro drifting
int pinPowerDown = 2;  // digital pin for Power Down mode
                    // LOW = Normal, HIGH = Power down
float currentAngle = 0;          //Keep track of our current angle

void setup() {
  pinMode(pinPowerDown, OUTPUT);
  digitalWrite(pinPowerDown, LOW);  // set gyroscope to Normal
  Serial.begin (9600);
}

void loop() {
  //This line converts the 0-1023 signal to 0-5V
  float gyroRate = (analogRead(gyroPin) * gyroVoltage) / 1023;

  //This line finds the voltage offset from sitting still
  gyroRate -= gyroZeroVoltage;

  //This line divides the voltage we found by the gyro's sensitivity
  gyroRate /= gyroSensitivity;

  //Ignore the gyro if our angular velocity does not meet our threshold
  if (gyroRate >= rotationThreshold || gyroRate <= -rotationThreshold) {
    //This line divides the value by 100 since we are running in a 10ms loop (1000ms/10ms)
    gyroRate /= 10;
    currentAngle += gyroRate;
  }

  //Keep our angle between 0-359 degrees
  if (currentAngle < 0)
    currentAngle += 360;
  else if (currentAngle > 359)
    currentAngle -= 360;

  //
  Serial.println(currentAngle, DEC);

  delay(10);
}

5  Using Arduino / Sensors / Re: Tilt sensor to record hip movement on: February 11, 2011, 09:22:04 pm
Quote
If its to detect each foot-fall, it may be easier to use some kind of motion detector like this:

If you wanted to detect foot fall, you could just use a piezo sensor like this: http://www.scientificsonline.com/piezo-disc.html

Gyro or accelerometer would be best...


6  Using Arduino / Project Guidance / Re: Altitude Sensor on: February 10, 2011, 07:31:18 pm
http://www.sparkfun.com/products/9694
http://www.sparkfun.com/products/8161

Seems like all right choices... Which of these two sensors will be the most accurate? Any concerns about these? Accuracy is really what I'm looking for.
7  Using Arduino / Project Guidance / Re: Altitude Sensor on: February 10, 2011, 05:04:44 pm
So, is a pressure sensor really a right choice for UAV?
8  Using Arduino / Project Guidance / Re: Altitude Sensor on: February 10, 2011, 03:24:50 pm
Yeah, thanks guys... Can a barometric pressure sensor sense the difference between 5 feet. Like, the difference between 30 ft. above sea and 35ft. above sea??
9  Using Arduino / Project Guidance / Altitude Sensor on: February 07, 2011, 10:04:08 pm
Looking for a good altitude sensor for an unmanned aerial vehicle. Cheap. I need it to be accurate and give me a reading every other second. UAV rules out ultrasonic. What do you guys think about some other choices?
10  Forum 2005-2010 (read only) / Troubleshooting / Re: Cant upload on: March 27, 2009, 02:45:10 pm
Uploading and i have the latest arduino environment.
11  Forum 2005-2010 (read only) / Troubleshooting / Cant upload on: March 23, 2009, 08:01:35 pm
Okay so i put this prgram in and uploaded it...
http://www.arduino.cc/playground/Code/FrequencyTimer2
I put the library in the right place...
I upload and i get this
In function 'void Burp()':
error: previous declaration of 'void Burp()' with 'C++' linkageCouldn't determine program size: C:\Documents and Settings\............

what do i need to do so i can get this running....
12  Forum 2005-2010 (read only) / Bugs & Suggestions / Pulse In on: December 28, 2009, 07:49:15 pm
Hello, I have recently come across this code, http://www.arduino.cc/en/Reference/PulseIn

I know what it  does: reads the pwm input. But I don't exatly know how to use it. Is there any examples on setup, and projects asscoiated with Pulse In, or maybe some better documentation would help...? Thanks guys!
13  Forum 2005-2010 (read only) / Syntax & Programs / Re: 120 khz with arduino on: March 12, 2009, 06:57:48 pm
how to i turn this output, dc, into ac power with a dc source,  which is arduino.****
sorry for the misinterpretation...
14  Forum 2005-2010 (read only) / Syntax & Programs / Re: 120 khz with arduino on: March 12, 2009, 06:56:20 pm
Great, Thanks for the code it works perfectly.
Is this a square wave frquency?
One other question, how to i turn this output into dc, into ac power with a dc source, arduino.
15  Forum 2005-2010 (read only) / Syntax & Programs / Re: 120 khz with arduino on: March 09, 2009, 04:39:07 pm
Ya, is their any delay that is smaller than "delaymicroseconds"?
Pages: [1] 2 3 ... 17