Loading...
  Show Posts
Pages: 1 2 3 [4] 5 6 ... 14
46  Using Arduino / Programming Questions / Re: Simon Game programming on: January 22, 2013, 10:57:53 pm
Mean the player has more than 3s before they fail ? LOL I thought less than 3s before they fail !
47  Using Arduino / Programming Questions / Re: Simon Game programming on: January 22, 2013, 10:51:11 pm
slightly over 3s ? not less than 3s ?
48  Using Arduino / Installation & Troubleshooting / Re: FTDI ft232rl DIY on: January 22, 2013, 10:42:34 pm
Is this the connection to MCU ?
49  Using Arduino / Programming Questions / Re: Simon Game programming on: January 22, 2013, 10:38:51 pm
I am very curious and dont understand for the part if(counter> RESPONSETIME)

How is that ? the counter will increase in every loop, so in every loop it is getting closer to exceed RESPONSETIME isnt ?
50  Using Arduino / Programming Questions / Re: Simon Game programming on: January 22, 2013, 10:02:28 pm
No..just arduino languages. So , win() will only be call once the for loop finish executing in void loop() ?
51  Using Arduino / Programming Questions / Re: Simon Game programming on: January 22, 2013, 09:16:44 pm
Ok, the speeed of the output goes faster. However, based on the full coding, does it means that the time I need to respond also getting faster ? Cause I seems to feel it when playing it ><

Ok, so either the player win or lose, it will follow the sequence : output > input > increase speed. And the final win(); is for what ?

Thanks
52  Using Arduino / Programming Questions / Re: Simon Game programming on: January 22, 2013, 09:05:21 pm
But is it true that every turn I have 3s of timeout time ? But it seems to me not on hardware ><

Well, procedures so means once it done execute the output code, then it will automatically go to input code ? Flow according to the code ?

Thanks
53  Using Arduino / Programming Questions / Re: Simon Game programming on: January 22, 2013, 08:41:46 pm
Cant be view now ?
54  Using Arduino / Installation & Troubleshooting / Re: FTDI ft232rl DIY on: January 22, 2013, 08:18:27 pm
So what should I do now?
55  Using Arduino / Installation & Troubleshooting / Re: FTDI ft232rl DIY on: January 22, 2013, 11:29:22 am
Tried either way. It does not wwork >< Is it important to have a 500mA inductor at the VCC?
56  Using Arduino / Installation & Troubleshooting / Re: FTDI ft232rl DIY on: January 22, 2013, 11:12:08 am
Quote
Recently I bought one ft232rl and try to make my own arduino to comminicate through serial port.

Does it have a DTR pin and if so did you wire it to the reset pin on your arduino board?

If so, then a another possible problem area is getting rec tx pins backwards.

Lefty

Tried it.. still the same. Rx to Rx TX to Tx right ?

Still the same error..Tried it either way already ><
57  Using Arduino / Installation & Troubleshooting / Re: FTDI ft232rl DIY on: January 22, 2013, 10:39:41 am
Oh..OK..I will connect the DTR pin..will try.. thanks
58  Using Arduino / Installation & Troubleshooting / FTDI ft232rl DIY on: January 22, 2013, 10:14:38 am
Dear friend,

Recently I bought one ft232rl and try to make my own arduino to comminicate through serial port.

I connected everything just that I didntconnect a 500mA inductor from VCC of USB to VCC of ft232rl.

Arduino IDE recognised the serial port. However, when I try to upload code, it was not sucessful.

Below is the error message shown.

Hope anyone can help.

Thanks
59  Using Arduino / Programming Questions / Re: Simon Game programming on: January 22, 2013, 08:23:54 am
The whole code in the text file as it exceed the word limits.

Thanks
60  Using Arduino / Programming Questions / Simon Game programming on: January 22, 2013, 07:39:51 am
This is the whole coding for the simon game. I am curious about how the code flow since each function do not return anything. And I am curious about this part:
Code:
void input()
{
  for (int x=0; x <= turn;)
  {
    input1 = digitalRead(SWITCHROOT);
    input2 = digitalRead(SWITCHROOT+1);
    input3 = digitalRead(SWITCHROOT+2);
    input4 = digitalRead(SWITCHROOT+3);

    counter++;
      
    if (counter > RESPONSETIME)
    {
      Serial.println("TIMEOUT!");
      fail(randomArray[x]);
      counter = 0;
      x++;
    }
Does that means that we need to respond faster as the counter increases ?

Thanks
Pages: 1 2 3 [4] 5 6 ... 14