Show Posts
Pages: 1 ... 54 55 [56] 57 58 ... 100
826  Using Arduino / Programming Questions / Re: SPI interfering with digitalRead on: October 16, 2013, 09:47:37 am
198 mS or micro sceonds? 198 ms is almost .2 seconds! And if you really need that amount of time look into the BlinkWithoutDelay example and use millis() to delay without blocking.
827  Using Arduino / Project Guidance / Re: Booloader questions..... on: October 16, 2013, 09:41:55 am
It would kind of have to be, wouldn't it? After all the boot loader loads the program into flash.
828  Using Arduino / Programming Questions / Re: Errors when compiling an Arduino sketch in Atmel Studio 6.1 on: October 15, 2013, 12:43:55 pm
Because you need to use the Arduino IDE to compile Arduino sketches.
829  Using Arduino / Project Guidance / Re: Data analysis software- or, now that I'm logging, what am I getting? on: October 15, 2013, 09:42:24 am
I would suggest Jump, Minitab or National Instruments Diadem. They are designed to work with large datasets.
830  Using Arduino / General Electronics / Re: Analog (analogue) and digital signals on: October 10, 2013, 02:34:39 pm
Not quite polymorph, after all you can have a temperture limit switch that closes once a certain temperature is reached. An analog sensor with a digital output, as it were.
831  Using Arduino / Programming Questions / Re: Getting array lenght inside a function on: October 10, 2013, 02:00:38 pm
Welcome to scope. Note, that inside the function, array is a pointer to the array, not the array itself. That is why you got one. In C, the only way to get the size of the array inside the function is to pass it as a parameter.

The sizeof is determined at compile time, so there is no danger of "corrupting" it. Whether you use a const variable, the calculation or a #define makes no difference to the compiler, it is up to you. And, as long as you use const, calculation or variable, there is no penalty since it is done at compile time and not stored in RAM. If you use a standard global or automatic variable instead of a const, it will use RAM.
832  Using Arduino / Programming Questions / Re: Getting array lenght inside a function on: October 10, 2013, 01:05:56 pm
That still won't work inside a function.
833  Using Arduino / Programming Questions / Re: Programming help, converting voltage reading to temperature. on: October 10, 2013, 12:51:13 pm
double temp = 100.0 + (10.0 - voltage) * 20.0
834  Using Arduino / Programming Questions / Re: Getting array lenght inside a function on: October 10, 2013, 12:47:58 pm
Nothing. That is the way it has always been with C. You can just calculate the size as a global variable with const if you want to save space. Since in C, the array size must be known beforehand, the array size calculation is done at compile time, not run time.
835  Using Arduino / Project Guidance / Re: Arduino IDE direct interface to serial bootloader? on: October 08, 2013, 01:04:32 pm
Sure. But most folks don't have serial ports anymore, so USB is easier.
836  Using Arduino / Programming Questions / Re: File access on Arduino PC on: October 07, 2013, 05:08:06 pm
Can you give us a link? I have never heard of an "Arduino PC".
837  Using Arduino / Project Guidance / Re: Mosfet getting hot and motor vibrating using a 3.6v motor. on: October 07, 2013, 05:05:42 pm
What we really care about is the gate voltage.
838  Using Arduino / Programming Questions / Re: for loop not working on: October 07, 2013, 01:19:54 pm
The break will only apply to the for loop, so the for loop will be immediately re-executed if stormswitch is HIGH. Are you sure the switch is usually LOW?
839  Using Arduino / General Electronics / Re: Need to amplify mV with high frequency, so I can read to Arduino. on: October 07, 2013, 12:49:51 pm
If the signal is AM modulated, use a diode detector on the RF, and amplify the video signal. The Arduino *still* might not be able to keep up, but you have a much better chance than with the RF!
840  Using Arduino / Programming Questions / Re: Complex number printing on: October 05, 2013, 10:19:31 am
It is probably not included for space reasons. You will have to roll your own. Like AWOL hinted at, if you are going to do lots of complex arithmetic, you probably need to rethink your processor approach.
Pages: 1 ... 54 55 [56] 57 58 ... 100