Show Posts
Pages: 1 2 [3] 4 5 ... 96
31  Using Arduino / Project Guidance / Re: FIR filter on: March 21, 2014, 04:52:29 pm
Quote
Is this correct ?
You didn't say what the sampling rate was. But why wouldn't it be 'correct' anyway?

It doesn't really matter because those coefficients are essentially equal to 0, 0, 1, 0, 0 which won't filter anything.

Pete
32  Using Arduino / Programming Questions / Re: carriage return on: March 20, 2014, 08:44:58 pm
I think the problem is in the Serial Monitor. I can't get it to handle a carriage return no matter how it is printed.
You could try using Hyperterminal or putty to read the com port and see if that works.

Pete
33  Using Arduino / Programming Questions / Re: Cant upload any code?!?!?!?!? on: March 19, 2014, 03:17:52 pm
Change begin to setup

Pete
34  Using Arduino / Programming Questions / Re: Issue as newbie on: March 18, 2014, 02:12:46 pm
Which Arduino?
If it is a Nano, UNO etc. they have 2kB of sram. An array of 872 integers requires 1744 bytes. You have to leave room for the stack and local variables. Presumably 873 integers is pushing it just over the edge.

Pete
35  Topics / Science and Measurement / Re: Data acquisition using excel or matlab on: March 17, 2014, 10:37:10 am
Search for PLX-DAQ.

Pete
36  Using Arduino / Programming Questions / Re: need help with mathematical code on: March 16, 2014, 12:35:54 pm
Quote
(Exp(K4/1000*Ta))^(K5/100)+T67

I think will be
pow (exp(K4/1000*Ta), ((K5/100)+67))
No. It will be:
Code:
pow (exp(K4/1000*Ta), K5/100)+T67;

There is no sgn function in the math library. You will have to write your own.

Pete
37  Using Arduino / Programming Questions / Re: need help with mathematical code on: March 16, 2014, 10:50:45 am
I think most of those function exist in the Arduino's C/C++ compiler but the names are all lower case. e.g. Exp should be exp, and Abs should be abs, etc.

Pete
38  Using Arduino / Programming Questions / Re: Need help with "speed optimization" on: March 16, 2014, 10:40:08 am
The r variable also needs to be volatile.

Pete
39  Using Arduino / Programming Questions / Re: Strange out of order execution on: March 15, 2014, 08:49:19 pm
Quote
the write to the display occurs after the beeps
That's the way it is written.
snprintf does not write to the display, it only creates the string in buf1 which is then written to the display by disp(buf1)

Pete
40  Using Arduino / Programming Questions / Re: For Do and While loop problem on: March 15, 2014, 06:21:16 pm
Code:
for(int i = 0; i >=10; i++)
Read that statement carefully. There's something wrong with it.

Pete
41  Using Arduino / Programming Questions / Re: GPS code help!! on: March 14, 2014, 11:16:40 am
You are trying to read/write to the GPS at 4800 but if it is already configured to run at 115200, you need:
Code:
  ss.begin(115200);

Pete
42  Using Arduino / Audio / Re: FFT on Arduino, the audio spectrum is cluttered? on: March 14, 2014, 10:20:13 am
@jremington:
 I see what you mean now - sorry, my bad.

Pete
43  Using Arduino / Programming Questions / Re: error in whole programming on: March 13, 2014, 08:46:16 pm
That's strange. It compiles for me on a Nano using Arduino 1.0.5
Anyway, just change .send to .write

Pete
44  Using Arduino / Programming Questions / Re: error in whole programming on: March 13, 2014, 08:38:03 pm
What error?

Pete
45  Using Arduino / Audio / Re: FFT on Arduino, the audio spectrum is cluttered? on: March 13, 2014, 08:35:02 pm
The number of bits in a sample does not determine the minimum or maximum sampling frequency. It determines the quantisation signal-to-noise ratio which for a sample of B bits is approximately 6*B dB.
The reason that, on a Uno or similar processor, the audio is limited to about 4.5kHz is because about the fastest you can sample the ADC is 9kHz.

Pete
Pages: 1 2 [3] 4 5 ... 96