Show Posts
Pages: 1 ... 26 27 [28] 29 30 ... 97
406  Using Arduino / Sensors / Re: Do sensors "wear out" when they are being used? on: August 01, 2013, 10:40:03 am
Polling the ds3231 too frequently will alter the clock rate. If you need to perform an operation every second or every minute, use an alarm interrupt.

Quote
Why would someone want to use a resolution up to 0.0625°C if the sensor itself is only accurate up to +/- 0.5°C?
It can still be useful for measuring changes in temperature even if the absolute value is not accurate.

Pete
407  Using Arduino / Programming Questions / Re: Serial Problems on: July 31, 2013, 10:29:36 pm
The comparison operator in C/C++ is not "=" it is  "==".
You also will have a problem because when testing for the character 1 it is not the same as the integer 1.
You should use:
Code:
if (ser == '1') {
and do the same when testing for the zero.

Pete
408  Using Arduino / Audio / Re: Arduino FFFT Lib and SD Card on: July 31, 2013, 09:20:05 pm
I haven't used the Due. Are you using the 1.5.2 version of the IDE for the Due? If not, give it a try. The Due is not an Atmel processor and may have different libraries set up in the IDE.

Pete
409  Using Arduino / Programming Questions / Re: Time Alarms // resets in serial print after 5 minutes on: July 31, 2013, 05:16:55 pm
You have a lot of lines like this:
Code:
  pinMode(solenoidPin, HIGH);
  pinMode(relaylights, HIGH);
  pinMode(waterpump, HIGH);

pinMode is used to set the pin's mode to INPUT or OUTPUT. It does not set its state.
You should be using digitalWrite.

Pete
410  Using Arduino / Audio / Re: Arduino FFFT Lib and SD Card on: July 31, 2013, 05:03:59 pm
The microphone should be OK with a Due since it is supposed to work with 2.7 - 5.5V

But I don't think the GPS shield is compatible with a DUE. I'm pretty sure that both the pinout and voltage on the shield don't match a DUE.

Pete
411  Community / Bar Sport / Re: Raspberry Pi vs BeagleBone Black on: July 31, 2013, 03:29:38 pm
Server not found

Pete
412  Using Arduino / Audio / Re: Arduino FFFT Lib and SD Card on: July 31, 2013, 03:27:58 pm
96kB sram should be enough for a while :-)
Don't forget that the Due is a 3.3V device. If your audio input is currently 5V you will have to take that into account and redesign the input.

Pete
413  Using Arduino / Audio / Re: Arduino FFFT Lib and SD Card on: July 31, 2013, 12:41:56 pm
The amount of ram used by the FFFT code is approximately FFT_N * 25 bytes.
BUT, the FFFT library seems to require that FFT_N be at least 64 which would use 1600 bytes, plus the 512 needed by SD would be 2112. So it doesn't look like you can use the FFFT library and the SD library at the same time on a 328-based Arduino.

I'm not familiar with the chipKIT max32 so I can't help there.

Pete
414  Using Arduino / Audio / Re: Arduino FFFT Lib and SD Card on: July 31, 2013, 10:18:06 am
Quote
Are you saying that my Arduino can't handle all of the things I've put into the code?
Yes. In fact, the FFFT library also has data for a Hamming window which in your case (FFT_N=128) is another 256 bytes on top of what I've already mentioned.
Splitting the problem across two Arduinos is one way to solve the issue. But if you're going to have to buy another Arduino anyway, you might as well get one that has a lot more static ram and then you can just use your existing code without having to add a lot more functionality which will in turn require a lot more debugging :-)

Pete
415  Using Arduino / Audio / Re: Arduino FFFT Lib and SD Card on: July 30, 2013, 10:50:25 pm
Which Arduino are you using?
The SD library needs 512 bytes of static ram for a buffer. The signal array is 1024 bytes, and the others are at least 896 bytes (don't know the size of complex_t). Altogether they will easily use up the 2kB of static ram available in a 328-based Arduino such as a Nano or UNO.

Pete
416  Using Arduino / Project Guidance / Re: Reliable One-Wire for Long distances on: July 30, 2013, 10:40:09 pm
Are you using parasite mode?

Have you tried reducing the pullup? 2k2 or 1k5 perhaps?

Pete
417  Using Arduino / Audio / Re: Arduino FFFT Lib and SD Card on: July 30, 2013, 05:07:18 pm
Read this first: How to post code properly


Pete
418  Using Arduino / Storage / Re: using sd.exist(file) and sd.mkdir when having file in a directory on: July 30, 2013, 10:17:15 am
You close the SD file inside the for loop. Not a good idea.

Pete
419  Using Arduino / Programming Questions / Re: Help with code!!!! on: July 29, 2013, 02:19:13 pm
Click on this link: How to post code properly
Read it. Do it.

Pete
420  Using Arduino / Programming Questions / Re: Capacitive Sensing in Teensy 3.0 on: July 28, 2013, 06:46:36 pm
That library does not use the touch sensing capability of the Teensy 3. If I read it correctly, it was written to work on a Nano or Uno etc. It measures the capacitance between two pins by grounding one of them (in your case pin 16) and timing how long it takes for the other pin to drop below a threshold value.

You don't need to do this on Teensy 3. The touchRead function works just like the analogRead function except that it reads capacitance instead of voltage.

Try this demo sketch I've just tried out on my T3.
It just prints the value received by touchRead on Teensy3 pin 23 (A9).
When the wire is touched, the sketch prints a number above 2000. When the wire isn't being touched the number is around 800.

Code:
void setup(void)
{
  Serial.begin(9600);
}

void loop(void)
{
  Serial.println(touchRead(23));
  delay(200);
}

Pete
Pages: 1 ... 26 27 [28] 29 30 ... 97