Show Posts
Pages: 1 ... 853 854 [855] 856 857 ... 1907
12811  Using Arduino / Sensors / Re: Accelerometer's on: October 27, 2012, 11:38:56 am
Quote
You can perform adc much faster than performing an i2c / spi read.
...but not to the twelve bits resolution offered by the digital device, without using additional hardware.
12812  Using Arduino / Installation & Troubleshooting / MOVED: TX/RX pin and serial communication on: October 27, 2012, 11:27:08 am
This topic has been moved to Project Guidance.

http://arduino.cc/forum/index.php?topic=129190.0
12813  Using Arduino / Sensors / Re: Accelerometer's on: October 27, 2012, 04:43:31 am
I'd go for the digital one.
12814  Using Arduino / Microcontrollers / Re: Arduinos original PWM on: October 26, 2012, 04:27:54 pm
Quote
the limit of 3,5KHz...
A limit that exists only in telephony, I think.
12815  Using Arduino / Project Guidance / Re: project ideas and help for a innovative science project on: October 26, 2012, 02:37:40 pm
Quote
something very very innovative and cheap
Tepid fusion
12816  Using Arduino / Programming Questions / Re: Photo Resistor question on: October 26, 2012, 02:24:02 pm
Quote
I understand that it prints the value to the serial monitor but how does that effect the program?
It doesn't affect the program in any way apart from slowing it down a bit.

The serial monitor is one means by which you may monitor the output of your sketch.
It's a type of basic terminal emulator.
12817  Using Arduino / Programming Questions / Re: warning: internal error: out of range error on: October 26, 2012, 11:49:52 am
Did you try the "relax" option?
12818  Using Arduino / Programming Questions / Re: Is it possible to use Java to program the Arduino? on: October 26, 2012, 11:21:21 am
Quote
There could be 23 meanings to your question.
(3) write Java code to download the compiled hex file to the Arduino's boot loader.   smiley-cool
12819  Using Arduino / Programming Questions / Re: Apprentice coder on: October 26, 2012, 11:09:42 am
If you've declared an array, then it is best to use it everywhere.
At the moment you're not using it in "setup()".

Also, if you make the array of the correct type, "byte", you can use the size of the array to control your loops, so you should never step off the end.
Code:
#define N_ELEMENTS(array) (sizeof(array)/sizeof(array[0]))
.

(In fact, this method works for arrays of any datatype)
12820  Using Arduino / Programming Questions / Re: Apprentice coder on: October 26, 2012, 09:51:43 am
Quote
I don't mean to sound unhappy, just frustrated
No, it is me that is still unhappy with the loop I quoted.
12821  Using Arduino / Programming Questions / Re: Apprentice coder on: October 26, 2012, 09:22:31 am
Code:
for(int i=0; i<9; i++)
Still unhappy.

How about the debug prints?

You might want to move "mask" and its initialsation into "loop ()"
12822  Using Arduino / Programming Questions / Re: Apprentice coder on: October 26, 2012, 09:01:53 am
No problems with that code here
Quote
Binary sketch size: 934 bytes (of a 30,720 byte maximum)

That is to say, the compiler is OK with it.
I still have issues about the size of the arrays (or the loop lengths, whichever way you look at it)
12823  Using Arduino / Project Guidance / Re: Switching voltage application on: October 26, 2012, 08:52:12 am
You haven't told us enough information to properly answer the questions.
12824  Using Arduino / Programming Questions / Re: Two loops??? on: October 26, 2012, 08:47:24 am
In the blink without delay example, there's a variable called "interval".
Try setting the value of it using your potentiometer.
12825  Using Arduino / Project Guidance / Re: Controlling LED color fade with potentiometer on: October 26, 2012, 08:42:37 am
@OP: You're up to 20+ posts - do you think you could start using code tags please?
Pages: 1 ... 853 854 [855] 856 857 ... 1907