Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

let's make Explore 

(/tag/type­id/) Publish (/about/create.jsp)
Login (/account/login/) | Sign Up (/account/gopro)

Classes (/classes/) NEW!
Featured: share  (/tag/type­id/category­craft/channel­leather/)
what you make Leather (/tag/type­id/category­craft/channel­leather/)
(/)
 (/tag/type­id/category­outside/channel­camping/) Camping (/tag/type­id/category­outside/channel­camping/)  (/id/intel/) Intel IoT (/id/intel/)

 (/id/Fusion/) Fusion 360 (/id/Fusion/)

About This Instructable

License:
(/file/FT7F2NKI9JR4K64/)
8 32,141 views
 187 favorites
This Instructable will show you how to make a stop watch out of an Arduino.
Conor M
(/member/Conor+M/)
Follow 38

(/member/Conor+M/)
Bio: If it moves and it isn't supposed to
move, Duct Tape it. If it doesn't move and
its supposed to move, WD40 it ... More »
(/member/Conor%20M/)

More by Conor M:

Step 1: What You Will Need
  (/id/Arduino­Web­

Server­1/)  

(/id/Phosphorous­Powder/)

(/file/FDOIE43I9JR4JIC/)   (/id/Arduino­

You Will Need­ Stopwatch/)
­ 1x Arduino Uno http://store.arduino.cc/product/A000066
Tags: Arduino (/howto/Arduino/)
­ 1x LCD Keypad Shield http://www.amazon.co.uk/SODIAL­Keypad­Shield­
Stopwatch (/howto/Stopwatch/)
Backlight­Arduino/dp/B00OPO2W6M/ref=sr_1_3?
ie=UTF8&qid=1431366607&sr=8­3&keywords=lcd+keypad+shield
­ 1x USB A ­ B Connector Cable http://store.arduino.cc/product/M000006
Related

Simple Arduino Stopwatch
(/id/Arduino­Stopwatch­1/)
by Electrify
(/member/Electrify/)
(/id/Arduino­
Easy Arduino Stopwatch
Get Free 10pcs Prototype PCB (/id/Simple­Arduino­
Stopwatch/)
Free prototype PCB by ugur23 (/member/ugur23/)
—2­4 days shipping, (/id/Simple­
Register now! Stopwatch with Lap Time
Counter (/id/Stopwatch­Lap­
$10 coupon Time­With­Arduino­Nano­
and­Maxi­7219/)
(/id/Stopwatch­by lagsilva (/member/lagsilva/)
Arduino Timer (/id/Arduino­
Timer/)
Step 2: Slot The LCD Display Onto The Arduino by Bhanu Kishan
(/member/Bhanu+Kishan/)
(/id/Arduino­
Lap Stopwatch with
ATmega328 Microcontroller
(/id/Lap­Stopwatch­with­
ATmega328­Microcontroller/)
(/id/Lap­ by bgyroscope

(/file/FEM4F67I9JR4JIF/)
This step is very simple just slot the LCD display onto the Arduino.

Step 3: Connect and Install The Program

(/file/FNODMPUI9JR4JIM/)

Just connect your Arduino to The Computer and install the program.

Update ­ Please use the Modified Stopwatch Program.
Arduino Stopwatch  by Conor M (/member/Conor+M/)
 Download h (/id/Arduino­Stopwatch/) 4 Steps .   Collection   I Made it!  Favorite   Share  
 Stopwatch.ino (/files/orig/F2X/P69E/I9JR4NQW/F2XP69EI9JR4NQW.ino)

 Modified_Stopwatch.ino (/files/orig/F4J/MWBO/I9L6KVKT/F4JMWBOI9L6KVKT.ino)

Step 4: Run Your Stopwatch

p
4
5

?
(/file/FDQ17BAI9JR4KAS/)

Now just run your stopwatch.

Arduino Stopwatch  by Conor M (/member/Conor+M/)
 Download h (/id/Arduino­Stopwatch/) 4 Steps .   Collection   I Made it!  Favorite   Share  

We have a be nice comment policy.
 Please be positive and constructive. w  I Made it!     Add Images   Post Comment

amans149 (/member/amans149) 7 days ago Reply

I want a coding I want to connect ir sensor to micro servo so that if something
pass from front of ir sensor servo rotates at a 90 degree angle and returns to its
initial position. I have a ARDUINO UNO for the purpose.... Can anybody do
coding for this..PLZ PLZ PLZ THANK YOU... HOPE U REPLY...

please reply here ­­http://arduino.stackexchange.com/questions/28666/coding­
for­connect­servo­with­ir­sensor­to­ardiuino

X Conor M (/member/Conor M) (author)  .  amans149 (/member/amans149) Reply


8
7 days ago
The code is there for you to use
X Conor M (/member/Conor M) (author)  .  amans149 (/member/amans149) Reply
8
7 days ago
Check out one of my other instructables, how to make an
arduino web server, it uses a servo, hope it helps

SawanS2 (/member/SawanS2) 21 days ago Reply

For best quality robotics products try this link: www.REES52.com
(http://www.REES52.com)
contact:­ 9599594524
www.rees52.com

10‫ﻣﺣﻣﻭﺩﻉ‬ (/member/10‫)ﻣﺣﻣﻭﺩﻉ‬ a month ago Reply

nice

X R Jordan Kreindler (/member/R Jordan Kreindler) 2 months ago Reply


8
Outstanding. I am using it and am happy to say it works without problem.

Lintang_Wisesa (/member/Lintang_Wisesa) made it!  5 months ago Reply

Great! here's mine: https://youtu.be/av8g8N9Z5RU?
list=PLUf1E7DXqsCvVQ56yFzpO1OO22iZPvi5­
(https://youtu.be/av8g8N9Z5RU?
list=PLUf1E7DXqsCvVQ56yFzpO1OO22iZPvi5­)
Arduino Stopwatch  by Conor M (/member/Conor+M/)
 Download h (/id/Arduino­Stopwatch/) 4 Steps .   Collection   I Made it!  Favorite   Share  

(https://cdn.instructables.com/F3T/Q13F/IMM971DL/F3TQ13FIMM971DL.LARGE.jpg)

musi mumu (/member/musi mumu) 6 months ago Reply

can somebody give me a version for measuring and displaying
seconds,miliseconds and microseconds all on 3 digits each . If yes thanks in
advance and contact me at mmedocean@gmail.com

vianch_tog (/member/vianch_tog) 7 months ago Reply

works

Avangura (/member/Avangura) 9 months ago Reply

on the line elapsed = finished ­ start I am getting an error 'start' was not
declared in this scope.
Any ideas?

X Conor M (/member/Conor M) (author)  .  Avangura (/member/Avangura) Reply


8
7 months ago
is your software up to date?

HectorR28 (/member/HectorR28) 8 months ago Reply

can i have the schematic diagram...

X Conor M (/member/Conor M) (author)  .  HectorR28 (/member/HectorR28) Reply


8
7 months ago
sorry I don't have a schematic

Avangura (/member/Avangura) 9 months ago Reply

OK ­ got it working and it is great! Can you instruct me on how I can replace the
SELECT button with an external switch for an experiment I am working on?

9 months ago Reply
Riscyg (/member/Riscyg) made it! 

Very nice, works as it says. Thanks :)

Arduino Stopwatch  by Conor M (/member/Conor+M/)
 Download h (/id/Arduino­Stopwatch/) 4 Steps .   Collection   I Made it!  Favorite   Share  
(https://cdn.instructables.com/FUQ/6LK2/II9929JE/FUQ6LK2II9929JE.LARGE.jpg)

spacetoon34 (/member/spacetoon34) a year ago Reply

Brilliant

I have tried to gather all my collection of websites and youtube channels and
videos in one place. There are many things also to introduce to you in an
elegant way so I established this site : www.speakelectronics.com
(http://www.speakelectronics.com/) and I hope you like it.

Regards,
­­­­­­­­­­­­­­­­­­­­­­­
www.speakelectronics.com (http://www.speakelectronics.com/)

Ofibro (/member/Ofibro)  .  spacetoon34 (/member/spacetoon34) Reply

9 months ago
Wish I could see it!
it says data base error and then a blank page with only
"Error establishing a database connection"
Riscyg (/member/Riscyg) 9 months ago Reply

Very simple ­ I will give this s go this weekend, thanks :)

ankur sharma (/member/ankur sharma) 9 months ago Reply

sir , which pin of display is connected to which pin of arduino

X Conor M (/member/Conor M) (author)  .  ankur sharma (/member/ankur sharma)
8
9 months ago Reply
I don't know but I got the module from banggood.com

ankur sharma (/member/ankur sharma) 9 months ago Reply

sir , which pin of display is connected to which pin of arduino

XanderS1 (/member/XanderS1) 11 months ago Reply

awesome project

X Conor M (/member/Conor M) (author)  .  amolhshah (/member/amolhshah) Reply


8
a year ago
Thanks for trying it!

prny (/member/prny) a year ago Reply

Thanks Great tutorial!! check out this arduino browser
Arduino Stopwatch
(https://www.youtube.com/watch?v=­hDbhm5z­PI)
 by Conor M (/member/Conor+M/)

 Download h (/id/Arduino­Stopwatch/) 4 Steps .   Collection   I Made it!  Favorite   Share  

| Machine (/member/Machine) a year ago Reply

Very tidy Arduino project.

X Conor M (/member/Conor M) (author) a year ago Reply


8
I have modified Elac's modified program please update your program to this
one if you are using it.
Thanks

X Conor M (/member/Conor M) (author) a year ago Reply


8
just uploaded it it is very good

Thx

X Conor M (/member/Conor M) (author) a year ago Reply


8
I will upload this to my arduino
Thx
Elac. (/member/Elac.) a year ago Reply

Very cool idea and a great starting point, thanks!!!
I did a bit of rewrite to make it more accurate and display the time as it
progresses plus other tweaks :

/*

Standalone Arduino StopWatch

By Conor M ­ 11/05/15

Modified by Elac ­ 12/05/15

*/

// call the necessary libraries
#include <SPI.h>
#include <LiquidCrystal.h>
// these are the pins used on the shield for this sketch
LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7);
// variables used on more than 1 function need to be declared here
unsigned long start, finished, elapsed;
boolean r = false;
// Variables for button debounce time
long lastButtonPressTime = 0; // the last time the button was pressed
long debounceDelay = 50; // the debounce time; keep this as low as possible

void setup()
{
lcd.begin(16, 2); // inicialize the lcd (16 chars, 2 lines)

// a little introduction :)
lcd.setCursor(4, 0); // set the cursor to first character on line 1 ­ NOT needed (it
Arduino Stopwatch  by Conor M (/member/Conor+M/)
sets automatically on lcd.begin()
 Download h (/id/Arduino­Stopwatch/) 4 Steps .
lcd.print("Arduino");   Collection   I Made it!  Favorite   Share  
lcd.setCursor(3, 1); // set the cursor to 4th character on line 2
lcd.print("StopWatch");
delay(2000); // wait 2 seconds
lcd.clear(); // clear the display
lcd.print("Press select for");
lcd.setCursor(2, 1); // set the cursor to 3rd character on line 2
lcd.print("Start & Stop");
}

void loop()
{
CheckStartStop();
DisplayResult();
}

void CheckStartStop()
{
int x = analogRead (0); // assign 'x' to the Arduino's AnalogueInputs (Shield's
buttons)
if (x < 800 && x > 600 ) // if the button is SELECT
{
if ((millis() ­ lastButtonPressTime) > debounceDelay)
{

if (r == false)
{
lcd.clear();
lcd.setCursor(2, 0); // needed
lcd.print("Elapsed Time");
start = millis(); // saves start time to calculate the elapsed time
}
else if (r == true)
{
lcd.setCursor(2, 0); // needed
lcd.print(" Final Time ");
}
r = !r;
}
lastButtonPressTime = millis();
}
}

void DisplayResult()
{
if (r == true)
{
finished = millis(); // saves stop time to calculate the elapsed time
// declare variables
float h, m, s, ms;
unsigned long over;

// MATH time!!!
elapsed = finished ­ start;

h = int(elapsed / 3600000);
over = elapsed % 3600000;
m = int(over / 60000);
over = over % 60000;
Arduino Stopwatch
s = int(over / 1000);  by Conor M (/member/Conor+M/)
ms = over % 1000;
 Download h (/id/Arduino­Stopwatch/) 4 Steps .
// display the results   Collection   I Made it!  Favorite   Share  
lcd.setCursor(0, 1);
lcd.print(h, 0); // display variable 'h' ­ the 0 after it is the number of algorithms
after a comma (ex: lcd.print(h, 2); would print 0,00
lcd.print("h "); // and the letter 'h' after it
lcd.print(m, 0);
lcd.print("m ");
lcd.print(s, 0);
lcd.print("s ");
if (h < 10)
{
lcd.print(ms, 0);
lcd.print("ms ");
}
}
}

X honey181 (/member/honey181) a year ago Reply


8
Quite nice and easy! :)

X Conor M (/member/Conor M) (author)  .  honey181 (/member/honey181) Reply


8
a year ago
Thanks
X Conor M (/member/Conor M) (author) a year ago Reply
8
Thanks

X seamster (/member/seamster) a year ago Reply


|
8 Nice, great presentation. Thank you!

FEATURED CHANNELS

Woodworking Paper Kitchen Hacks Puzzles Space Ice Cream Homesteading 3D Printing Sewing


(/tag/type­ (/tag/type­ (/tag/type­ (/tag/type­ (/tag/type­ (/tag/type­ (/tag/type­ (/tag/type­ (/tag/type­
id/category­ id/category­ id/keyword­ id/category­ id/keyword­ id/keyword­ id/category­ id/category­ id/category­
workshop/channel­craft/channel­ kitchen%20hacks/?play/channel­ astronomy/? ice%20cream/? home/channel­ technology/channel­
craft/channel­
woodworking/) paper/) sort=FAVORITES) puzzles/) sort=FAVORITES)sort=FAVORITES)homesteading/) 3D­Printing/) sewing/)
Newsletter
Join 2 million + to receive instant
DIY inspiration in your inbox.

enter email I'm in!

Mobile
Arduino Stopwatch  by Conor M (/member/Conor+M/)
Download our apps!

Android » (https://play.google.com/store/apps/details?id=com.adsk.instructables)
 Download h (/id/Arduino­Stopwatch/) 4 Steps .   Collection   I Made it!  Favorite   Share  
iOS » (https://itunes.apple.com/app/instructables/id586765571)
Windows » (http://apps.microsoft.com/windows/en­us/app/7afc8194­c771­441a­9590­54250d6a8300)
About Us Find Us
Who We Are (/about/) Facebook (http://www.facebook.com/instructables)
Advertise (/advertise/) Youtube (http://www.youtube.com/user/instructablestv)
Contact (/about/contact.jsp) Twitter (http://www.twitter.com/instructables)
Jobs (/community/Positions­available­at­Instructables/)
Pinterest (http://www.pinterest.com/instructables)
Help (/id/how­to­write­a­great­instructable/)
Google+ (https://plus.google.com/+instructables)
Resources
For Teachers (/teachers/)
Artists in Residence (/air)
Gift Premium Account (/account/give?sourcea=footer)
Forums (/community/)
Answers (/tag/type­question/?sort=RECENT)
Sitemap (/sitemap/)

Terms of Service (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21959721) |
Privacy Statement (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21292079) |
Legal Notices & Trademarks (http://usa.autodesk.com/legal­notices­trademarks/) | Mobile Site (http://www.instructables.com)
 (http://usa.autodesk.com/adsk/servlet/pc/index?id=20781545&siteID=123112)
© 2016 Autodesk, Inc.

You might also like