Show Posts
Pages: 1 2 3 [4] 5 6 ... 289
46  Using Arduino / Programming Questions / Re: Time and TimeAlarms Libraries – Ask here for help or suggestions on: September 06, 2014, 12:03:22 pm
Quote
Serial.write(MESSAGE,BYTE) and this don't work on Arduino 1.0. ...
That is not a bug.  it is a deliberate, documented change introduced with release 1.0

http://blog.arduino.cc/2011/10/04/arduino-1-0/
47  Using Arduino / Programming Questions / Re: error in displaying file names from sd card on: September 06, 2014, 02:36:34 am
Quote
i cant understand where i made mistakes.
Nor can we because you did not post your program so that we could see we could see what you are doing.
48  Using Arduino / Programming Questions / Re: LiquidCrystal and U8GLIB on: September 05, 2014, 04:20:22 pm
Pins 4 and 5 are being used by the LCD and are also set to INPUT each time through loop()
What is that all about ?
49  Using Arduino / Programming Questions / Re: rfid bus is it possible on: September 05, 2014, 04:08:15 pm
I don't know if it is possible to retrieve the data but I want to know what happens when you connect something to the 2 wires labelled "Sabotage" !
50  Using Arduino / Programming Questions / Re: LiquidCrystal and U8GLIB on: September 05, 2014, 01:49:32 pm
Quote
both lines.
You are only printing to one line

Code:
lcd.setCursor(0, 0); // top left
lcd.setCursor(9, 0); // top left
lcd.setCursor(14, 0); // top left
They can't all be top left can they ?

I await your full code with interest.
51  Using Arduino / Programming Questions / Re: PID library - How to tell when compute executes on: September 04, 2014, 04:51:42 pm
What do you see if you capture PidSpeed.Compute() in a variable and print it ?  Is it always false ?

Can you please post all of your program so that we can see the context and how/where variables are declared and initialised ?
52  Using Arduino / Programming Questions / Re: setting an input signal as timer on: September 04, 2014, 12:34:56 pm
Quote
why specifically pin2 ?
Because that is the pin used by interrupt 0 on a Uno and, incidentally on a Mega 2560, so the program should work for you.

See http://arduino.cc/en/Reference/attachInterrupt
53  Using Arduino / Programming Questions / Re: Arduino mega at2560 overclock 20mhz on: September 04, 2014, 10:16:26 am
What is it that made you think you needed to overclock the Mega ?
54  Using Arduino / Programming Questions / Re: Arduino mega at2560 overclock 20mhz on: September 04, 2014, 09:14:23 am
Quote
So this is why I need more "power"!
Are you sure that your code is optimised and that you cannot use the Arduino at its native speed ?
55  Using Arduino / Programming Questions / Re: Help to get a MQ-2 Programming Code on: September 04, 2014, 09:09:33 am
This may be a radical idea, but what have you got to lose ?
Try searching this forum for MQ-2
56  Using Arduino / Programming Questions / Re: speed of transistor on: September 04, 2014, 07:13:07 am
Post your program so that we can see what you are doing and how.
57  Using Arduino / Programming Questions / Re: puseIn / digitalWrite() question on: September 04, 2014, 02:19:11 am
Quote
I have ordered another receiver that has SBUS capabilities, and that may be the answer
I predict that it will be the source of more problems rather than providing the answer.

When I needed to extend the pulse width of an RC channel beyond what the transmitter setup provided I used this
Code:
  yawDuration = pulseIn(yawInPin, HIGH);
  yawDuration = map(yawDuration, 1000, 1800, 980, 2020);
  digitalWrite(yawOutPin, HIGH);
  delayMicroseconds(yawDuration);
  digitalWrite(yawOutPin, LOW); 
58  Using Arduino / Programming Questions / Re: Problem Programming Servo on: September 04, 2014, 02:08:36 am
As has been pointed out you have no control over the position of a continuous rotation servo.  It is in fact not a servo at all but a geared motor with electronic speed control.

Bearing that in mind this code
Code:
  for(pos = 0; pos < 180; pos += 1)  // goes from 0 degrees to 180 degrees
  {                                  // in steps of 1 degree
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(7000);                       // waits 15ms for the servo to reach the position
  }
will not do what the comments say.  It will increase the speed of the servo rotating in one direction in 180 discrete steps, each of which will take 7 seconds, which will take a total of 21 minutes.

By the way, the code as posted does not compile.
59  Using Arduino / Programming Questions / Re: Arduino Time library and Time alarm on: September 03, 2014, 06:23:35 am
Do you really think it likely that providing 3 volts to an input that expects between 3.3 and 12 volts is going to work ?  Why not try it and see ?  Even if it works will it be reliable working outside of the specified voltage range ?

Exactly what coin cell are you considering using and how long do you expect the Arduino to run on it ?
60  Using Arduino / Programming Questions / Re: Comparing Values on: September 02, 2014, 09:21:11 am
Hmmm.., indeed, but I won't commit the sin of revising my original post and making a nonsense of your comment
Pages: 1 2 3 [4] 5 6 ... 289