Making a two button system for time of response project

Hello, i've never used arduino before and i want to know how to build a two button system, (green and red) with wifi and bluetooth connection to keep track of the time of response to an alarm. The red button have to activate a red led and the green button a green led. Meanwhile, a computer detects when the red light is on and counts the time.

I need help to know how i build this system.

Any help is appreciated.

Untitled Diagram.jpg

If you use the WiFi option, you will have to build one little box which has a WiFi capable system in it (lets assume an ESP8266 ) and has your buttons on it. The ESP8266 will be configured as a web client and will send messages (vie HTTP GET) to your other box.

Your other box will also contain an ESP8266 but configured as WebServer. It will receive the button presses, record the times and calculate the intervals (response times).

maybe you get some ideas here : ESP8266 Web Server with Arduino IDE | Random Nerd Tutorials

This is one of the few applications where wired trumps wireless hands down.

Wireless is NOT time reliable, there are unpredictable delays in communication. This normally doesn't matter, but for communicating "button has been pressed NOW" it does. You want to record this NOW, not a random number of 1-100 ms in the future.

Thanks for your replies, what i need doesn't have to be too precise, with a delay of a few seconds the system is still useful.

I will try to implement the system suggested by 6v6gt. Thanks both for your support, i will update this to show if it worked.

:smiley:

The ESP8266 is great for WiFi connections - look for NodeMCU or WeMOS D1 development boards. Very similar to Arduino but mind they run at 3.3V, not 5V.