Show Posts
Pages: 1 ... 1067 1068 [1069] 1070 1071 ... 1741
16021  Using Arduino / Programming Questions / Re: char to byte conversion on: November 26, 2011, 05:13:44 pm
Psst, Mike, what about 0x4f? (for example)  smiley-wink
16022  Using Arduino / Programming Questions / Re: Have servo connected to Arduino respond to incomingByte on: November 26, 2011, 05:03:53 pm
Code:
pinMode(myServo, OUTPUT);  // Set servo pin as an output pin
  Serial.begin(9600);

  // Set the motor position value to the middle  
  pulse = (maxPulse-minPulse)/2;          
  digitalWrite(myServo, HIGH);   // Turn the motor on
  delayMicroseconds(pulse);       // Length of the pulse sets the motor position
  digitalWrite(myServo, LOW);    // Turn the motor off
I think you're confused about how the servo library works; there is no need for you to generate pulses manually like this.
16023  Community / Bar Sport / Re: Scorpions: ever been stung? on: November 26, 2011, 04:57:41 pm
Quote
There is also a tiny octopus that can kill an elephant - why would it need/want to do that?
Well, quite so, and I think a definitive nail in the coffin for Intelligent Design, because, as any ful kno, there are no elephants in Oz.
Where's the intelligence in that?
16024  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.
16025  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();"
16026  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.
16027  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.
16028  Using Arduino / Programming Questions / Re: Button hold -> PWM value on: November 26, 2011, 01:19:15 pm
And subsequently?
16029  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.
16030  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?
16031  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.
16032  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
16033  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.
16034  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.
16035  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.
Pages: 1 ... 1067 1068 [1069] 1070 1071 ... 1741