Show Posts
Pages: 1 ... 16 17 [18] 19 20 ... 227
256  Using Arduino / Displays / Re: Arduino Mega + LCD on: June 09, 2014, 09:42:40 am
its most likely the library doesn't work for that screen, have you tried downloading the actual UTFT and UTouch libraries from Henning's website?
257  Using Arduino / Displays / Re: Arduino Mega + LCD on: June 09, 2014, 08:22:03 am
What library(s) are you using?
258  Using Arduino / Programming Questions / Re: Use of LCD 16x2 and Keypad 3x4, use of array of struct and string. on: June 08, 2014, 10:39:32 pm
There is a sticky post in bold orange, in the main screen, please read it. Code tags are a MUST, please highlite your code and click the # symbol above the smiley faces.

Also why is your lcd sharing the same pins as your keypad?
259  Using Arduino / Programming Questions / Re: 'void' function as a 'if' variable on: June 08, 2014, 11:52:17 am
I wanted to expand it, so Junblud could see what was happening.
260  Using Arduino / Programming Questions / Re: 'void' function as a 'if' variable on: June 08, 2014, 11:20:29 am
If the function returns something then yea, but not as a void or the way you have it.

Code:
void setup()
{
  Serial.begin(115200);

  for( byte idx = 0; idx < 10; idx++)
  {
    Serial.print("At index: "); Serial.print(idx);
    if( foo( idx ) == true)
    {
      Serial.println(", it was TRUE");
    }
    else
    {
      Serial.println(", it was FALSE");
    }
  }
}

void loop() {/* not being used */ }

boolean foo(byte x)
{
  if(x > 4 && x < 7)
    return true;
  else
    return false;
}
261  Using Arduino / Project Guidance / Re: Phantom reads into a 4051 on: June 08, 2014, 01:39:12 am
I'm willing to bet you don't have any pulling resistors (pull up or pull down) in which case the pin is considered floating. But as Raschemmel suggested, you should post a schematic or photo.
262  Using Arduino / Programming Questions / Re: If else statement for two pots and two LED's on: June 07, 2014, 11:15:37 pm
Quote
One other thing, when using the Serial monitor, you should not be using pins 0 or 1,
const int LED1 = 1;
263  Using Arduino / Programming Questions / Re: If else statement for two pots and two LED's on: June 07, 2014, 10:58:45 pm
Declare your variables, don't make them all CAPS and don't make them const, otherwise you wont be able to change them.
int analogValue1;
int analogValue2 ;

Now in your loop, you want to read from the analog pins.
void loop
{
  analogValue1 = analogRead(analogPin1); // these should not be CAPS either
  analogValue2 = analogRead(analogPin2);
.
.
.
}

One other thing, when using the Serial monitor, you should not be using pins 0 or 1,
const int LED1 = 1;
264  Using Arduino / Project Guidance / Re: I finally tested the accuracy of delay() for 24 hours. on: June 07, 2014, 08:09:35 pm
Thats great, but no one uses delays. An experienced programmer will tell you to never use delays throughout your code, but to instead use the millis() or micros() function to keep track of time.

Edit: Good find.
265  Development / Other Software Development / Re: New TFT Extension Library on: June 07, 2014, 02:59:12 pm
UPDATE!

Library is below.
266  Using Arduino / Programming Questions / Re: Help me in pressure sensor read from 0 - 10Vdc 0-250 bar on: June 07, 2014, 12:01:36 pm
The pressure sensor needs 10v? What does it output then, I'm assuming more than 5v. If 125 Kpa is the max then with a little math 125/5 = 25, so why are you multiplying "volt" by 31.3, and not 25?
267  Using Arduino / Programming Questions / Re: Help me in pressure sensor read from 0 - 10Vdc 0-250 bar on: June 07, 2014, 11:29:02 am
Did you make the voltage divider circuit and does it work now?
268  Using Arduino / Project Guidance / Re: Mecanum Wheels on: June 06, 2014, 01:24:49 pm
This is the camera I am using Mini Wireless Security Camera with this mount Arduino Servo Mount
269  Using Arduino / Project Guidance / Re: Mecanum Wheels on: June 06, 2014, 12:57:10 pm
Wireless video stream.

The code snippet I gave is basically your Mode 1.
Mode 2 is a bit different, to strafe left and right, the wheels need to rotate opposite of each other.

Like so, F = forward, R = reverse
Left:   Right:
F        R   : (front wheels)
R        F   : (rear wheels)
270  Using Arduino / Displays / Re: Help Arduino Mega 2560 + 3.2" TFT LCD on: June 06, 2014, 11:39:35 am
Your using the UTFT and UTouch libraries, you should be able to run the calibration sketch. Attached is the calibration sketch, You may need to change a few lines to get it to work, like you pin numbers and model.
Pages: 1 ... 16 17 [18] 19 20 ... 227