Show Posts
Pages: 1 ... 1067 1068 [1069] 1070 1071 ... 1893
16021  Using Arduino / Programming Questions / Re: 2D Array and total destruction on: April 16, 2012, 05:04:41 am
Code:
LCD.print("  Opening Harp  ");
When you were totting-up your arrays sizes, did you include strings?
16022  Using Arduino / Programming Questions / Re: Speed up arduino on: April 16, 2012, 05:01:59 am
Code:
fsrConductance = 1000000;           // we measure in micromhos so
    fsrConductance = fsrResistance;
I suppose you can hope the compiler optimises-out pointless assignments.
16023  Using Arduino / Programming Questions / Re: Converting a String to int - "189148246403325952" --> int on: April 15, 2012, 02:23:28 pm
A float isn't going to be any better - still only 32 bits.
Save the ID as a string, or a set of BCD digits will save 50% of storage.
16024  Using Arduino / Programming Questions / Re: 7 Segment Library for Arduino 1.0 on: April 15, 2012, 02:17:34 pm
Instantiate a second object?

http://arduino.cc/forum/index.php/topic,8764.msg71789.html#msg71789
16025  Using Arduino / Programming Questions / Re: 7 Segment Library for Arduino 1.0 on: April 15, 2012, 02:00:27 pm
Your handling of common node vs. common cathode seems to repeat the same code, when all that is needed is a simple inversion.
16026  Using Arduino / Programming Questions / Re: Ultrasonic Sensor SRF-04 to run a high torque DC motor on: April 15, 2012, 01:39:46 pm
If the number is not less than five, it isn't necessary to test again to see if it is greater than or equal to five.

pulseIn  does not return an int

Maybe some consistency in using "const int" or "#define", but not both for pin names
16027  Using Arduino / Programming Questions / Re: Servo position value, can it be real number? on: April 15, 2012, 12:26:20 pm
If you need finer control, you can use the writeMicroseconds method.
However, asking for fractional degree accuracy of an R/C servo may be asking a bit much.
16028  Using Arduino / Programming Questions / Re: Servo position value, can it be real number? on: April 15, 2012, 12:22:47 pm
No.
A floating point argument will simply be truncated.
16029  Using Arduino / Programming Questions / Re: Sonar and MIDI Mapping on: April 15, 2012, 08:32:54 am
So, you set sonarnote to mappedPulse, then play 30 to 89 anyway?
16030  Using Arduino / General Electronics / Re: How to read more Buttons than pins avaliable? on: April 15, 2012, 04:47:22 am
3 x 4 matrix?
16031  Using Arduino / Programming Questions / Re: Servos and ADJDS-311 on: April 15, 2012, 03:22:14 am
Do the servos move normally when you try a simple test sketch like zoomkat's?
16032  Using Arduino / Project Guidance / Re: Robot safety ; stop on signal loss on: April 14, 2012, 04:52:56 pm
You couldn't be bothered to format your code; why should anyone else be bothered to read it?
16033  Using Arduino / Programming Questions / Re: looking for the bare minimum simple serial code so I can modify. on: April 14, 2012, 04:07:29 pm
Quote
What can i look at to understand codes better?
That's a subjective question; we don't know what it is that you don't understand.
16034  Using Arduino / Programming Questions / Re: Distance code for X band Sensor on: April 14, 2012, 02:42:43 pm
It's a continuous Doppler unit; you can't measure range.

FWIW, 1 foot is a little over 1 light-nanosecond. You'd be better off using sonar.
16035  Using Arduino / Programming Questions / Re: can I do serial output while in an interrupt-called function? on: April 14, 2012, 01:41:41 pm
I've got to ask why you feel you need an interrupt.
Pages: 1 ... 1067 1068 [1069] 1070 1071 ... 1893