Show Posts
Pages: 1 ... 1171 1172 [1173] 1174 1175 ... 1844
17581  Using Arduino / Project Guidance / Re: What can an Arduino do in 125us on: November 26, 2011, 04:44:14 pm
Quote
Powers of 2 are much easier to deal with, though.
Apart from 32.768kHz (commonly used for RTCs), I can't think of too many common powers-of-two crystal frequencies.
17582  Using Arduino / Programming Questions / Re: char to byte conversion on: November 26, 2011, 04:33:10 pm
Quote
Code:
char c = client.read();which I think will return something like
Code:
char a = '0x61';
Think all you like, but '0x61' is a four character multicharacter constant, and could not possibly be returned by "client.read();"
17583  Using Arduino / Project Guidance / Re: Turn on LED > push button > take and transfer picture on: November 26, 2011, 04:25:34 pm
Quote
AWOL: I don't understand??
You create a local object, attach it to a pin, and then a few hundred nanoseconds later, it goes out of scope and is useless.
Later, in PushButton, you create another object of the same name, don't attach it, but still write to it.
17584  Using Arduino / Project Guidance / Re: Turn on LED > push button > take and transfer picture on: November 26, 2011, 04:16:09 pm
Code:
void setup() {               
  Serial.begin(9600);
  pinMode(PinLed1, OUTPUT);
  pinMode(PinLed2, OUTPUT);
  pinMode(PinLed3, OUTPUT);
  Servo ServoButton;
  ServoButton.attach(PinServo);
}
Pretty short lifetime for ServoButton.
Not really much use, unless you just want to turn it to 90 degrees.
17585  Using Arduino / Programming Questions / Re: Button hold -> PWM value on: November 26, 2011, 01:19:15 pm
And subsequently?
17586  Using Arduino / Programming Questions / Re: Button hold -> PWM value on: November 26, 2011, 12:29:57 pm
Maybe we can help you when you post your code.
17587  Using Arduino / Programming Questions / Re: How to Interface the CH Robotics UM6 with the Arduino on: November 26, 2011, 12:25:48 pm
So, you may have an inversion/level problem.
Have you checked that simpler sketch produces valid results?
17588  Using Arduino / Programming Questions / Re: Moving Return Stack Pointer? on: November 26, 2011, 09:21:30 am
I have no idea how to restructure your code either because you didn't post any.

I have a rule of thumb - if something sounds like it is the wrong thing to do, it probably is the wrong thing to do.
About the only  time I've ever had to fiddle with stack pointers is for machine monitors and single step debuggers.
17589  Using Arduino / Programming Questions / Re: Moving Return Stack Pointer? on: November 26, 2011, 07:33:27 am
Don't muck about with stack pointers.
Restructure your code
17590  Using Arduino / Project Guidance / Re: Yet another chronograph, serial output. on: November 26, 2011, 07:26:09 am
Quote
IIRC about 1nS per foot in copper
In a vacuum, yes, but quite a bit slower in copper.
Still not anything to worry about over 10 metres.
17591  Using Arduino / Project Guidance / Re: Ardunio use in remote access to TV problems on: November 25, 2011, 06:26:26 pm
Quote
Anyone here have a suggestion on what I could use (Preferable something small and cheap) to send the video from the webcam witlessly to the router (henceforth the internet)
Define "cheap" (I'm thinking netbook)

"Witlessy" is dead easy.
17592  Using Arduino / Programming Questions / Re: Moving servos with LDR except each waiting for other to stop on: November 25, 2011, 06:17:31 pm
Quote
thats my style - all lowercase
ee cummings
k.d. lang
S'been done.
17593  Using Arduino / Programming Questions / Re: Moving servos with LDR except each waiting for other to stop on: November 25, 2011, 05:38:31 pm
Quote
true, but they are only unused at the moment as once we get 2 to move we can get 8
Ah yes, but so much easier to explain how to get one working.

(Is your shift-key broken?)
17594  Using Arduino / Programming Questions / Re: Moving servos with LDR except each waiting for other to stop on: November 25, 2011, 05:16:39 pm
Quote
yes didnt you see where i posted i know im not using arrays but im getting things to work first and im at the same time teaching a friend basics of using an arduino
If you're trying to teach someone else how to program, then it is best to concentrate on how to program the problem for a single entity.
After that, additional similar entities are relatively trivial by making entity references into arrays.
Confusing someone with masses of unused declarations is just likely to be counter-productive.
17595  Using Arduino / Programming Questions / Re: noob programming help on: November 25, 2011, 04:34:23 pm
Also, trying to declare a function called "loop" inside "setup" isn't allowed.
Pages: 1 ... 1171 1172 [1173] 1174 1175 ... 1844