A month ago I knew nothing about Arduino and now.....my first project!
Looking back, this project combines allmost all of the tutorials that I have read in this short period: blinking LED, push button, piezo and LCD display. A useful project for every beginner!

I have made this device for some of my friends who have a hard time admitting how fast alcohol influences their driving abilities.
It will test you on three levels because they all have to do with driving a car safely:
  • DECISION time. 
  • REACTION time
  • Resistance to DISTRACTION.
The test starts as soon as you hold down the push button. When a red light appears, you should let go off the push button as soon as possible. Your reaction time will appear on the screen.
However, driving has to do with making fast decisions as well. So in random order you can get a green or blue light first (or multiples). You should not react to this and hold down the push button until the red light appears.
Finally, on occasions you will hear a short beep in between lights (just for fun). By now you are so tense to do well, that a simple distraction like a beep can and WILL set you off!! 

A fun game with your dinner guests upon arrival and confronting upon leaving!

Step 1: What you need

  1. Arduino microcontroller (I have used an Uno).
  2. 1 RGB LED (you can use 3 separate ones if you like).
  3. 4 resistors (220 ohm).
  4. LCD Display
  5. Piezo speaker
  6. Breadboard.
  7. Push button.
  8. Wires.
  9. Ping pong ball (optional).
  10. Box.
<p>I modified the program to launch a display when the reaction time is less than 200. I loved the instructable. It was easy to follow and understand. I'll add a couple pictures of my final project (outside pics). The inside is a boarduino, and a tiny piezo speaker. I also added a 6 AA battery tray on the bottom, that is accessable on the outside. </p><p>PS - I love the ping pong ball diffuser ! </p>
<p>you have programming?</p>
<p>Nice one! I have just sent you a patch!</p>
<p>Any updates on the programming? I seem to get into a long loop during a blue or green light press. It sometimes just goes blank, instead of displaying the 'too early'. </p>
<p>are you sure you've got the coding right? I have never encountered this problem.</p>
Awesome man! My grandpa made on of these when I was 6 or 7 and I would play with it for hours.
hello. im interested in your project. do you have the schematic diagram for this? thanks in advance.
Step 2 shows several diagrams on how to connect the circuit.
whats the unit in which it displays the reaction time?
milliseconds (1/1000th sec).
ohk! thanks
hiya pal!! really like the look of this as my uni project! if possible do you have a schematic diagram available??
just click on the icons below the picture.
Hi there. This project looks like an amazing beginning to my work with Arduino (it came in on Monday via mail, and I just bought the USB A to B cable today). There is only one problem - I cannot obtain an LCD Display for some time because all of my local stores are out of stock. Any possible substitutions? <br><br>One of my ideas would be to rewrite the code (I know the basics of the code) to round everything to the nearest thousandth (reaction time), and then have it go to a corresponding LED.
Sorry for the late reply (holidays). have you tried getting a Display through internet. Shouldn't be too difficult. <br>You suggestion of rounding off will work. However, you need to really think about how to use the LED, maybe in patterns or even Roman numbers. Otherwise you'll need lots of them!
what kind of difficulty is this? i haven't done circuitry before
I'm far from an electrical engineer and I have done this as my first Arduino project. It's not too difficult. The nice thing about Arduino is that you don't need to know much about circuitry because al the switches or conditional steps are programmed (instead of using transmitters, capacitors....the whole lot).<br>If you can tell + from - and you can (learn to) program, there is no limit.
instead of the lcd i updated the code and added Serial.begin and now i can see the time in the serial monitor!!!!!
Yes, that's very well possible!
is that serial lcd?
This looks like a fun project. I'm new to this kind of thing and am a bit confused about the LED. The LED only has 4 posts (1 anode and 3 cathodes), but in the step-by-step instructional pictures, it looks like there are more posts seated in the breadboard. Would you be so kind as to clarify?<br><br>Thanks much!
Yes, it's fun and it can be confusing (partially my fault). This is what happened:<br> <br> There are different types of LEDs and I mixed them along the way. I hoped nowbody would notice the inconsistency, but you did!<br> In the picture of step 2 (with the breadboard), I used a RGB Led with 6 pins: <ul> <li> 2 <u>common grounds </u>(you should interconnect them) <li> 1 Red Pin (+5V) <li> 1 Green Pin (+5V) <li> 2 Blue Pin (+5V) you should interconnect these. </ul> <p> You can magnify the picture by clicking on the &ldquo;i&rdquo; in the left corner and you&rsquo;ll see.<br> <br> Later on I obtained a different LED with 4 pins (instead of 6) and to my own surprise, the system was reversed as well:</p> <ul> <li> 1 <u>common Anode </u>(+5V) <li> 1 Green Pin <li> 1 Red pin <li> 1 Blue pin </ul> <p> This is the Led I have used in the reaction Time Tester. Now I went back to step 2 and changed the schemes (Fritzing) accordingly to this new LED. You can see a picture of this Led in step 4 (7th picture).<br> <br> Hope this helps, if not just let me know.</p>
Thanks for the explanation! We're almost there, but are having a problem with the LED. We've got everything hooked up, but the LED doesn't come on. Here's what's going on ...<br> <br> - The display says &quot;Hold button to start&quot;<br> - We press the button and the display goes blank&nbsp;<br> -When we release the button, one of two things happens:<br> &nbsp;&nbsp;&nbsp;&nbsp; (1) A reaction time is displayed on the display, or,<br> &nbsp;&nbsp;&nbsp;&nbsp; (2) There is a beep and the display reads, &quot;Released too soon&quot;<br> <br> At no time does the LED blink or come on at all.<br> <br> You can see the picture I uploaded. I checked current with a multi-meter and got these results. On the picture, the lead connecting to Arduino 8 has current as soon as you press the button, and then periodically has current as long as the button is held. The lead connecting to Arduino 6 has current continually. The lead to Arduino 7 has current as soon as the button is pressed, and then has current periodically while the button is held.<br> <br> As I mentioned, I'm new at this, so am a little baffled. Any help will be much appreciated. Thanks!
Just a quick one (I'll look into it in more detail this weekend).<br>How many pins does your push button have? (some types block current when the're pushed, others allow current to flow when pushed). Have you checked this with a multi-meter?<br>
Thanks so much again. I picked up some different LEDs and they work! Must have been something kludgey with the original LEDs.<br><br>This works great ... please know that you've made my daughter's 6th grade science fair project very cool!
Good to hear you solved the problem.<br>Just one question: if it's the science fair of your daughter, how come Dad is doing all the work? ;-)
Haha! It might seem like Dad is doing all the work, but my daughter did much more than it would appear. She learned a lot about circuits, the Arduino, soldering, and then, how to test a sample of people (how does talking on a cell phone affect reaction time?), then analyzing the results and drawing a conclusion.<br><br>We really appreciate your instructable and your following up on our questions!
Glad I could help. Actually the cell phone test is a very nice one I didn't think of. Some people over here think that driving and phoning do no influence eachother (you just end up doing both things bad!).<br><br>From my own experience, I now that the flu has a great impact too.<br>
The button has 4 pins. When we press the button it blocks current.<br><br>Thanks for your help ... it's very nice of you. We're getting nervous about my daughter's science project, so your help is really appreciated.
Hello again,<br>I was looking thru old comments and noticed that you said you would send a patch if I made this and published it and reminded you. . Which I did and was wondering if the offer is still good. :)<br><br>Thanks
Hey, I just published an Instructable based on this and I hope I gave you the correct credit . Please advice if I should have done something more . I am new at this. Thanks again.
No need to worry...<br>And it looks great!
Hey again, here is my project<br>http://www.instructables.com/id/Reaction-Timer/
just wondering did you get this idea from any kits of any sort and btw are you using parallax or adurnio
No not really, although it's not the first and not the last reaction time tester in the world. <br>It started quite simple with 1 red Led. Then replaced it with a RGB Led and finally added some sound as well.<br>It corresponds actually quite well with the tutorials I have been reading while learning Arduino (see Intro).<br>
yeh bro any ways really nice instructable
Very nice project! I like the casing.
Thanks and congrats to you for reaching the finals!
awesome project :)
What is its use in daily life(practical use)?
it measures the reaction time of human beings...
nice job, smart idea and well supported. Cherry in the cake is the yellow funcy color you choose.
What LCD display did you use? do you have a part number?
See attachment.
Thanks. I want to make this. Nice instructable.
Make it, publish an Instructable (Photos or Step-by-step) it and I'll send you a Patch!<br>Help me remind though!
The attachment somehow failed...<br><br>LCD 16x2 with backlight<br>MC 1602C8-SYL<br>Everbouquet Int (Taiwan).<br><br>But Toshiba makes them as well...
Out of curiosity, what was the total cost (approximate)? Total time needed to build?
Oh yeah, the time.<br>Painting will take most of the time (drying of several layers). Few days.<br>Building, if you have all the materials, some experience and this I'ble: 2 hours.

About This Instructable


69 favorites


More by bertus52x11: The Selfie Ring a.k.a. the Phone Ring Washing Machine Door Salad Bowl. How I make money with an Instructable.
Add instructable to: