Show Posts
Pages: 1 ... 44 45 [46] 47 48 ... 137
676  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.
677  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.
678  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 ?

679  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.
680  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 );

681  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.... 
682  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.
683  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.
684  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.
685  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 ?
686  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 ?
687  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.   
688  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.
689  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.
690  Using Arduino / Sensors / Re: Why analog read value is fluctuating? on: December 29, 2013, 06:59:33 pm
No, there isn't.    You will always experience fluctuations of one or two counts in analog readings.    That is partly because of the way the A/D converter works,    and also partly because of the way the pot works.   

Because the pot has a moving contact,  even when you are not turning it,   the contact between the two moving surfaces in the pot is varying at the microscopic level,   and this affects the current transmission and the apparent output voltage of the pot.
Pages: 1 ... 44 45 [46] 47 48 ... 137