Show Posts
Pages: 1 ... 54 55 [56] 57 58 ... 206
826  Using Arduino / Sensors / Re: ACS712 Current Sensor Not Working on: May 30, 2014, 06:24:21 pm
You seem to have an undeclared variable sampleInterval.

AC current will be surging backwards and forwards in the wire,  changing direction at a very frequent rate, depending on which half of Japan you live in.

To determine the effective value of the current,  you have to measure it many times.
827  Using Arduino / Sensors / Re: ADXL345 z-axis is unstable on: May 30, 2014, 06:18:14 pm
My suggestion would be to print the actual 6 bytes that you get in the values[ ] array.    If you inspect these,   the problem may become obvious.
828  Using Arduino / Sensors / Re: ADXL345 z-axis is unstable on: May 30, 2014, 06:13:10 pm
I think that you have an integer type problem.    ^^^^  what he said.
829  Using Arduino / Sensors / Re: INTERFACING CAMERA WITH ARDUINO on: May 30, 2014, 06:11:13 pm
I don't think that you should still be using WProgram.h.
830  Using Arduino / Sensors / Re: Using Photo-transistors to detect motor position. on: May 30, 2014, 06:08:38 pm
The thing to know about these encoders,  is that you can tell which way the motor is running, depending on whether the A pulse comes before or after the B pulse.
831  Using Arduino / Programming Questions / Re: ADXL362 accelerometer problem on: May 30, 2014, 06:00:24 pm
I am wondering if the arguments to your function calls should not be &XValue,  if you are expecting a value to be returned.   That is not a requirement using c++,    still it's worth checking if you have no other ideas.
832  Using Arduino / Sensors / Re: MPU-6050 and i2cdevlib "slide" for a while on turn on on: May 29, 2014, 07:35:07 pm
Quote
What you describe it's the "drift" of the YPR, which might be solved with filtering the
datas (with a complementary, kalman...).

No, it won't.

Filtering will solve the noise problem,   it won't solve the problem of the gyro giving you a non-zero value when it is actually not rotating,   the only way to solve that problem is to have an alternative orientation reference of some kind.
833  Using Arduino / Sensors / Re: adxl345 accelerometer z-axis is a constant -1 on: May 29, 2014, 07:32:59 pm
A -1  signed int is FFFF hex,   all the bits are 1.   So you are somehow getting all 1 bits from the z reading.
834  Using Arduino / Sensors / Re: adxl345 accelerometer z-axis is a constant -1 on: May 29, 2014, 07:27:35 pm
The likely reason for this,  is that your I2C communication is not actually working,   and the numbers you are getting are actually random noise.
835  Using Arduino / Programming Questions / Re: CODE for ESC on: May 29, 2014, 07:25:41 pm
That code is bogus.  The curly braces don't even match up.
836  Using Arduino / Programming Questions / Re: Byte to String Problem *not sure* on: May 29, 2014, 07:21:55 pm
Code:
if (EthernetClient client = server.available())

I rather doubt that this is valid for C/C++.     What is the scope of this declaration going to be ?   It looks more like java.
837  Using Arduino / Programming Questions / Re: ADXL345 init for Free Fall on: May 29, 2014, 07:18:21 pm
Do you know if your I2C connection is even working ?

Did you read the datasheet properly ?
838  Using Arduino / Programming Questions / Re: Type cast for Serial data transmission via radio on: May 29, 2014, 07:14:30 pm
What is the second parameter for that function call supposed to be ?   Do you have the source code for it ?
839  Using Arduino / Programming Questions / Re: Type cast for Serial data transmission via radio on: May 29, 2014, 07:12:35 pm
You are not trying to pass a "long" number to that function,  at all.

You are trying to pass a text literal to it,  which would be a char*.    The string "12346674"  is not an integer or a long integer or any kind of number at all,   it is character text.
840  Using Arduino / Programming Questions / Re: Type cast for Serial data transmission via radio on: May 29, 2014, 07:09:36 pm
I don't think there is any such thing as a const void.
Pages: 1 ... 54 55 [56] 57 58 ... 206