Show Posts
Pages: 1 ... 44 45 [46] 47 48 ... 137
676  Using Arduino / Sensors / Re: MPU 6050 Sensor Problem on: December 31, 2013, 09:24:37 pm
I did read the data sheet of MPU 6050 and it doesn't explain the data outputs exactly and I couldn't understand what it explains.


a/g:   216   -288   14724   -440   -16   256

These six numbers represent one reading from the device.

The first three numbers are from the accelerometer,  and the last three numbers are from the gyro.

The first three numbers represent the apparent acceleration of the device in the x,y and z directions.   When the device is not actually accelerating,   you will see an apparent acceleration in the upwards direction.   That is because the effect of the gravitational force on the sensor causes a deflection of the sensor equivalent to the deflection that occurs when the device is subjected to actual acceleration.     These three numbers can be considered as a vector which shows the direction of "up".   The vector is with respect to an apparent coordinate frame attached to the device (  and usually indicated with a marking on the pcb surface,  although many of them are wrong ).

In the case of the reading which you have,  the vector is ( 216, -288, 14724 ),    which is predominantly in the Z direction.   So you probably had your device almost flat on the table.
677  Using Arduino / Sensors / Re: MPU 6050 Sensor Problem on: December 31, 2013, 09:16:31 pm
I want to find the angle position to ground reference on x and y axis. I will make a robot and use it as feedback for system.

OK well the gyro numbers are going to not tell you anything about the "angle position to ground".     Assuming that your robot is not performing high-speed gymnastics,    you determine the orientation of the device with respect to the ground by considering the readings from the accelerometer device.

And if your robot IS going to be performing high-speed gymnastics,   then you need the accelerometer and gyroscope output  and also a lot more expertise with the math involved.
678  Using Arduino / Sensors / Re: A lot of errors with two thermocouples on: December 31, 2013, 09:13:37 pm
Make sure you understand how SPI works when you are using more than one SPI device.    The master device ( the arduino ) has to correctly manipulate the CS line to each device that it wants to communicate with.

It should be possible to determine from the information about the interface board,  how often it takes a reading.
679  Using Arduino / Sensors / Re: Ultrasonic sensor - weatherproof module on: December 31, 2013, 09:08:28 pm
Do you mean like a real truck, or a toy robot truck ?

680  Using Arduino / Sensors / Re: TCRT5000 IR Proximity Sensor trough glass on: December 31, 2013, 09:05:53 pm
It will probably tell you,   how far the sensor is from the glass.
681  Using Arduino / Sensors / Re: Ublox Neo6MV2 GPS data problem on: December 31, 2013, 09:04:38 pm
If you are using a Mega,  you have multiple serial ports.

Write a very simple program to simply copy the output of the GPS device to the serial monitor on your computer.     Be aware that different GPS modules have different default baudrates,  you may need to try several.

void setup()

void loop()
    while ( Serial1.available() > 0 )
         char ch = ;
         Serial.print(ch );

682  Using Arduino / Motors, Mechanics, and Power / Re: Converting a large DC motor to servo on: December 31, 2013, 12:50:36 pm
  Not sure how gyroscopes and accelerometers would be used. 

That's what the quaternions are for.... 
683  Using Arduino / Motors, Mechanics, and Power / Re: Converting a large DC motor to servo on: December 31, 2013, 12:48:53 pm
Apart from the position control,   the difference between a servo and an ordinary dc motor,   is the gearing.    Although you see you servo only rotating about 180 degrees,    the little motor inside has actually spun around a lot more than that.
684  Using Arduino / Programming Questions / Re: Is their a max. memory size for "void setup()" part? on: December 31, 2013, 12:39:55 pm
Comments don't get included in the compiled file  and won't be downloaded to the Arduino.
685  Using Arduino / Programming Questions / Re: Reading someone else's code, PWM and strange low-level code shenanigans! on: December 29, 2013, 11:55:22 pm
The I/O pins of the arduino are mapped to  several byte-sized registers,    and you can control the value of the pins by setting and clearing the corresponding bits in those registers.
686  Using Arduino / Motors, Mechanics, and Power / Re: Can a DC motor hold up a weight? on: December 29, 2013, 07:48:03 pm
How about a door which opens sideways ?
687  Using Arduino / General Electronics / Re: Opto-isolator circuit for Arduino? on: December 29, 2013, 07:27:29 pm
Do your three long wires carry analog or digital signals ?
688  Using Arduino / General Electronics / Re: Resistor Size. on: December 29, 2013, 07:21:41 pm
It is the actual size of the LED ,  nothing to do with it's electrical properties.    The common sizes for the traditional basic bullet-shaped round leds are 3 mm  and 5 mm.   
689  Using Arduino / Programming Questions / Re: Arduino windows 8 won't program on: December 29, 2013, 07:15:47 pm
That message would appear to be from the compiler   and not from "programming" ( uploading ? )  your Uno.
690  Using Arduino / Sensors / Re: DS18B20 sensor, datasize on: December 29, 2013, 07:03:58 pm
I think the answers about bits were a red herring.

I agree that there is no obvious reason why that data[] array needs to be 12 bytes,   in your code.  It is likely that the code was adapted from some other code relating to some other device, not relevant to you,  which did provide 12 bytes of data.
Pages: 1 ... 44 45 [46] 47 48 ... 137