Loading...
  Show Posts
Pages: 1 ... 853 854 [855] 856 857 ... 1318
12811  Using Arduino / Project Guidance / Re: adding a time interval to a PIR sensor on: June 01, 2011, 03:37:21 pm
Quote
Does the PIR sensor put out too much power to drop the time?
is that a silly question?
It could be - what does it mean?
12812  Using Arduino / Programming Questions / Re: I am looking for someone to program Arduino Uno for High Altitude Weather Balloo on: June 01, 2011, 03:33:07 pm
FYI

Federal Communications Commission (FCC) regulation 47 CFR Ch.1 (10/01/98
Edition) which states:

“Section 22.925 Prohibition on airborne operation of cellular
telephones installed in or carried aboard airplanes, balloons or any
other type of aircraft must not be operated while such aircraft are
airborne (not touching the ground). When any aircraft leaves the
ground, all cellular telephones on board that aircraft must be turned
off. The following notice must be posted on or near each cellular
telephone installed in any aircraft: The user of cellular telephones
while this aircraft is airborne is prohibited by FCC rules, and the
violation of this rule could result in suspension of service and/or a
fine. The user of cellular telephones while this aircraft is on the
ground is subject to FAA (Federal Aviation Administration)
regulations.”

12813  Using Arduino / Project Guidance / Re: Servo's controlled by serial on: June 01, 2011, 03:24:14 pm
Code:
if (Serial.available() > 0) {
      
      inByte = Serial.read();
      
      if (inByte == '#') {
      
      while (pointer < 4) {
         buffer[pointer] = Serial.read( );  // add the character to the buffer
Check to see if at least one character is available, then read all five of them.
Not good.
Why not check to see if you've got a character before reading it?

Quote
it seems to effect the Arduino. Almost as if it's resetting it?
Yes, it is resetting - that is what it is designed to do.

Quote
Serial is set at 9600 baud (could this be causing it?)
Shouldn't be a problem.

How are you powering the servo?
12814  Topics / Robotics / Re: Servos Delay on: June 01, 2011, 03:22:04 pm
Code:
void loop()
{
  for(pos = 0; pos < 180; pos += 180)  // goes from 0 degrees to 180 degrees
  {                                  // in steps of 180°
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(28000);                       // waits 28s for the servo to reach the position
  }
  for(pos = 180; pos>=1; pos-=180)     // goes from 180 degrees to 0 degrees
  {                                   // in step on 180°
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(28000);                       // waits 28s for the servo to reach the position
  }

Well, that's one(long winded) way of doing it.
Simpler might be
Code:
void loop()
{
    myservo.write(0);             
    delay(28000);                       
    myservo.write(180);
    delay(28000);
 
12815  Using Arduino / Project Guidance / Re: Home Lighting server on: June 01, 2011, 03:05:08 pm
Quote
Can the arduino change some of the html so that an image is changed dependent on the state of an input?
Display what on what?
12816  Using Arduino / Programming Questions / Re: 2-Dimensional Array to byte String on: June 01, 2011, 01:21:38 pm
Java - Grrrrr.
Nope, sorry, you're stuck with hex,  octal or decimal, but not, it seems, binary.

EDIT: Here's a cunning plan: define all the constants as octal unsigned long (ALWAYS with a leading zero),  so you can see what it is supposed to look like, but convert to binary on the fly as you transmit!
Neat, huh?
12817  Using Arduino / Project Guidance / Re: Arduino voltmeter calculations on: June 01, 2011, 12:58:10 pm
He's right - I assumed when you wrote "at the resistors", you meant across the potential divider.
12818  Using Arduino / Programming Questions / Re: 2-Dimensional Array to byte String on: June 01, 2011, 12:51:50 pm
B00011000  or 0b00011000
12819  Using Arduino / Project Guidance / Re: Arduino voltmeter calculations on: June 01, 2011, 12:48:35 pm
I'd leave the 5V as it is (assuming the supply voltage really is 5V) , and check that the values of resistors plugged into the potential divider equation are correct.
12820  Using Arduino / Networking, Protocols, and Devices / Re: No serial.print from GPS on: June 01, 2011, 12:44:15 pm
That's a rising edge trigger?
Doesn't look like it needs inverting then.
Timing looks about right for 4800 too.

On the other hand, it doesn't really look a lot like you originally described it.
Hmm.
12821  Using Arduino / Project Guidance / Re: Arduino voltmeter calculations on: June 01, 2011, 12:37:43 pm
How about 5 then?
12822  Using Arduino / Project Guidance / Re: Arduino voltmeter calculations on: June 01, 2011, 12:23:07 pm
Quote
But i think i need the right value to replace 3.4?
Whatever value is connected to Vref.
12823  Using Arduino / Programming Questions / Re: 2-D array error invalid types 'char[int]' on: June 01, 2011, 12:21:53 pm
...which is why we ask you to post all your code.

Still better watch out for the Serial.read loop to bite you in the ass.
12824  Using Arduino / Programming Questions / Re: 2-D array error invalid types 'char[int]' on: June 01, 2011, 12:17:08 pm
So why didn't you post it?
12825  Using Arduino / Programming Questions / Re: 2-Dimensional Array to byte String on: June 01, 2011, 12:16:50 pm
Quote
int[] charA = {  // character set for the letter 'A'
  00011000,  //
  • row one
That may look like binary, but it is actually octal.
Pages: 1 ... 853 854 [855] 856 857 ... 1318