Show Posts
Pages: 1 ... 89 90 [91] 92 93 ... 226
1351  Using Arduino / Project Guidance / Re: Transfert data from one usb key to another on: June 06, 2013, 10:24:05 am
Okip, I've read that you can't connect two shields on one Arduino at the same time.

Its perfectly possible to connect two shields to the Arduino at the same time. What's not possible is connecting two USB host shields.
Quote
Perhaps the idea could be to connect the USB shields on two Arduino UNO and then to connect the UNOs to an Arduino MEGA.
What do you think?

That's possible: two Arduino's and two USB host shields. You then have to setup a communication medium between the Arduinos.
1352  Using Arduino / Programming Questions / Re: Confusion on passing variables to members on: June 05, 2013, 10:46:41 pm
See "pass by reference"
1353  Using Arduino / Project Guidance / Re: RFM12b working with arduino uno v3 on: June 05, 2013, 05:02:38 pm
how can i fix the errors ?? i get on the line "RFM12B radio;"     an  error ... it's not declared

By giving much more information such as a vague error and line of code. Post the full code, the full error message and a link to the library you are using.
1354  Using Arduino / Programming Questions / Re: Help changing delay() to millis() on: June 05, 2013, 04:49:10 pm
How do I have the program check back to see if the timer has gone off?


Like the example I posted.
1355  Using Arduino / Programming Questions / Re: Switch/case help on: June 05, 2013, 04:08:02 pm
Edit: I was wrong, it's supported in GCC.
1356  Using Arduino / Project Guidance / Re: Arduino Freezing During Serial Communication [Laser Spirograph Project] on: June 05, 2013, 03:48:27 pm
Determine if its a Hardware or Software problem: Disconnect everything from the Arduino. Does it still lock up?
1357  Using Arduino / Programming Questions / Re: Help changing delay() to millis() on: June 05, 2013, 03:42:34 pm
In your statement correct here

Code:
if ( flag && millis() - turnOnTime > interval)

Correct

Code:
if ( flag == 1 && millis() - turnOnTime > interval)

Also correct

Code:
if ( flag = 1 && millis() - turnOnTime > interval)

Not correct
1358  Using Arduino / Project Guidance / Re: RFM12b working with arduino uno v3 on: June 05, 2013, 03:27:28 pm
ok. i've made the connections . now how i can program this 2 modules ,to test if it works ?

Download a library and follow the examples.
1359  Using Arduino / Programming Questions / Re: Help changing delay() to millis() on: June 05, 2013, 03:26:02 pm
You need to separate the "turn off" portion of the function and put it in the main loop. To connect the two, you should set a flag variable in the function, and in the "turn off logic", check if the flag variable is set. Simple example:

Code:
int flag = 0;
unsigned long turnOnTime;
unsigned long interval;
void loop()
{
  if (someButtonIsPressed())
  {
    digitalWrite(ledPin, HIGH);
    turnOnTime = millis();
    interval = 1000;
    flag = 1;
  }

 if ( flag && millis() - turnOnTime > interval)
 {
    digitalWrite(ledPin, LOW);
    flag = 0;
  }
}

In this example, when someButtonIsPressed() returns true (presumably on the signal edge of some switch), the led is turned on, an interval is set and a flag is set. Then, outside the someButtonIsPressed() condition, a separate if statement turns it off when its been long enough.
1360  Using Arduino / Programming Questions / Re: What is wrong with this code and how do I fix it on: June 04, 2013, 10:50:14 pm
You can't #include the same library twice.

You most certainly can. It will just be redundant and will only cause issues if the library is written poorly.

@xmodrocker
You can't have more than one loop, nor can you have two objects/variables with the same name. Perhaps it would be best to explain what you're trying to accomplish with this code. You should also fix your indentation (Ctrl+T in the Arduino IDE) and post code in between CODE tags.
1361  Using Arduino / Project Guidance / Re: GUI student attendance system on: June 04, 2013, 01:49:19 pm
No i dont mean that at all, i told you i need a little help, or any specific websites i could look up to.

I don't think www.arduinoStudentRFIDGUI.com has been setup yet.

 
Quote
but is it possible to interface it with the arduino?

Yes, via Serial communications. There should be plenty of examples for doing that with processing. Probably some for C# and .NET too
1362  Using Arduino / Project Guidance / Re: GUI student attendance system on: June 04, 2013, 01:29:33 pm
i've heard of processing, and ive even downloaded it with G4P+Gui Builder, but the problem is, nothing in the site matches my problem, so i just need a little help if anyone how to use it, or any alternative methods, do share and tq

So you're looking for a complete solution that you don't have to make any modifications for? Good luck, that's going to be a tall task.
1363  Using Arduino / Project Guidance / Re: GUI student attendance system on: June 04, 2013, 01:28:15 pm
considering i have never done GUI before, what do you mean by 'you could create something in C#, .NET or even a web based application' , where can i find this? and what is it?

C# and .NET are programming languages. You would need to install Microsoft Visual Studios and create a program that displays and updates the GUI. Since it's clear you don't have experience doing that, I would look into writing a Processing program as it is closely related to Arduino. You should also learn how to use Google. When you see a term you don't recognize. Google it. There is no point in me wasting time posting that information when there is already a plethora of information out there.
1364  Using Arduino / Programming Questions / Re: Single button Multiple functions on: June 04, 2013, 01:18:29 pm
yes, i did. One wire now goes to pin 9, the other to vcc

So no, you didn't. The internal pullup that you enabled will pull the input HIGH. Pressing the button will also pull the input HIGH. The other pin should be connected to GND.
1365  Using Arduino / Project Guidance / Re: Chosing a Arduino to build an automated watering system on: June 04, 2013, 01:17:22 pm
I'm sorry, but did you have a question/issue?
Pages: 1 ... 89 90 [91] 92 93 ... 226