Two button interface:

Hello Everybody.

I have a psychology research project where I would like to create a two button (pushbutton left and pushbutton right) interface:

  • when button left is pushed a red led gets triggered.
    -when button left is pushed for a long time (3 seconds) the red led is blinking.

  • when button right is pushed a green led gets triggered.
    -when button right is pushed for a long time (3 seconds) the green led is blinking.

-when they are pushed at the same time, an additional blue led gets triggered.

Thank you so much for your help. I have not much experience with arduino and would like to keep the project as simple and straight forward as possible - if possible.

Thank you so much for you advice...

Gil

Yes you can do this.
Go through the basic examples that come with the IDE and you will be able to do it for yourself.

I would like to add that "same time" can mean something very different for a 16 MHz silicon computer like the Arduino, and a slow, meat based computer like a human. For a human, events happening at the "Same time" can be several milliseconds apart, and you'll need to take that into account when coding.

Jiggy-Ninja:
For a human, events happening at the "Same time" can be several milliseconds apart, and you'll need to take that into account when coding.

Ah!

That's where the psychology comes in! :smiley: