tag:blogger.com,1999:blog-4933295803079622480.post6261866563259582230..comments2023-10-30T02:04:40.610-07:00Comments on Dan Thompson: Timecode Based StopwatchDan Thompsonhttp://www.blogger.com/profile/09932336949749833460noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-4933295803079622480.post-19862110675023880382012-07-22T20:34:12.993-07:002012-07-22T20:34:12.993-07:00Jon,
Programming is not my forte either.
Your que...Jon,<br /><br />Programming is not my forte either.<br />Your question was "i do not know how it exactly works. "<br /><br />Every line of the code above is commented. What comment don't you understand? Be more specific with your questions please. I work full time and my time is precious to me, you need to understand that unless you can frame your questions clearly, I cannot afford the time it takes to try to intemperate them. <br /><br />Regards,<br /><br />Dan.<br /><br />p.s. if you are struggling with this, maybe you should get some advice from your teacher on how to tackle it? He may have a better idea of you problem and it's context.Dan Thompsonhttps://www.blogger.com/profile/09932336949749833460noreply@blogger.comtag:blogger.com,1999:blog-4933295803079622480.post-6210020139688148842012-07-22T20:20:44.352-07:002012-07-22T20:20:44.352-07:00hey Dan,
i have tons of assignments to complete, ...hey Dan,<br /> i have tons of assignments to complete, i know i shouldnt be giving excuses but programming is not my forte. <br /> <br />i have read it, but i have yet to decipher the codes..jonhttps://www.blogger.com/profile/06507993116486607986noreply@blogger.comtag:blogger.com,1999:blog-4933295803079622480.post-25825346156138057932012-07-18T22:52:11.685-07:002012-07-18T22:52:11.685-07:00Jon, you are a bad student leaving this until the ...Jon, you are a bad student leaving this until the last minute. <br /><br />It's basically a counter but the modulo operator resets the counter every time it reaches the limit. <br /><br />Did you look up the commands?<br />http://arduino.cc/en/Reference/Modulo<br />http://arduino.cc/en/Reference/LiquidCrystalClear<br />http://arduino.cc/en/Reference/Millis<br /><br />and for the elapsedTime variable, look at this simple example:<br />http://arduino.cc/en/Tutorial/BlinkWithoutDelay<br /><br />Once you understand the links above, the code and comments should make sense. <br /><br />Good Luck!<br /><br />Dan.Dan Thompsonhttps://www.blogger.com/profile/09932336949749833460noreply@blogger.comtag:blogger.com,1999:blog-4933295803079622480.post-31587974407899855252012-07-18T07:03:48.712-07:002012-07-18T07:03:48.712-07:00Hey Dan,
pardon me for the late reply. exactly..
...Hey Dan,<br /><br />pardon me for the late reply. exactly..<br /> <b> elapsedTime = millis() - startTime; // store elapsed time<br /> elapsedMinutes = (elapsedTime / 60000L); // divide by 60000 to convert to minutes - then cast to an int to print<br /> elapsedSeconds = (elapsedTime / 1000L); // divide by 1000 to convert to seconds - then cast to an int to print<br /> elapsedFrames = (elapsedTime / interval); // divide by 40 to convert to 1/25 of a second - then cast to an int to print<br /> fractional = (int)(elapsedFrames % frameRate);// use modulo operator to get fractional part of 25 Frames<br /> fractionalSecs = (int)(elapsedSeconds % 60L); // use modulo operator to get fractional part of 60 Seconds<br /> fractionalMins = (int)(elapsedMinutes % 60L); // use modulo operator to get fractional part of 60 Minutes<br /> lcd.clear(); // clear the LDC </b><br /><br /><br />i understand this part of the code is the main function of the stopwatch but i do not know how it exactly works. can you enlighten me on that part? i might probably be able to implement it if i understand. god bless me, the panel review for my project work it tmrw..i have no improvements to my work..jonhttps://www.blogger.com/profile/06507993116486607986noreply@blogger.comtag:blogger.com,1999:blog-4933295803079622480.post-68215661768182147922012-07-14T15:58:59.696-07:002012-07-14T15:58:59.696-07:00hey jon, I understand, I would say this example is...hey jon, I understand, I would say this example is aimed at intermediate arduino users which is why you are probably struggling with it. What is your specific question about this piece of code? What part of it are you trying to understand?Dan Thompsonhttps://www.blogger.com/profile/09932336949749833460noreply@blogger.comtag:blogger.com,1999:blog-4933295803079622480.post-7870906632062363492012-07-14T07:59:51.980-07:002012-07-14T07:59:51.980-07:00Hi Dan, i have just started programming a few week...Hi Dan, i have just started programming a few weeks ago and i am required to implement lap timings to my project work. this is a lil overwhelming for me! haha, i was wondering if you could help me out.jonhttps://www.blogger.com/profile/06507993116486607986noreply@blogger.comtag:blogger.com,1999:blog-4933295803079622480.post-54664008079191490112012-07-14T03:56:01.434-07:002012-07-14T03:56:01.434-07:00Hi Jon,
Yes it could be implented and no I do not...Hi Jon,<br /><br />Yes it could be implented and no I do not have the code. Why don't you have a try yourself!? Use modulo operator to get fractional of whatever you lap would be.<br /><br />Regards,<br /><br />Dan.Dan Thompsonhttps://www.blogger.com/profile/09932336949749833460noreply@blogger.comtag:blogger.com,1999:blog-4933295803079622480.post-57677516851888545442012-07-11T21:33:46.346-07:002012-07-11T21:33:46.346-07:00hey do you think we can implement lap timings into...hey do you think we can implement lap timings into it? if yes, do you have the codes? email me at mat_latine@hotmail.comjonhttps://www.blogger.com/profile/06507993116486607986noreply@blogger.comtag:blogger.com,1999:blog-4933295803079622480.post-56255350726076864822010-08-11T22:03:21.777-07:002010-08-11T22:03:21.777-07:00These is great to share with us. This will be the ...These is great to share with us. This will be the basis of my motion control R and D. Finally, I hope to control all the mechanical timing by a pulse of a video camera. So far, this service will suffice.search engine positioninghttp://primegrowthmarketing.com/noreply@blogger.comtag:blogger.com,1999:blog-4933295803079622480.post-46433264260009345872010-05-20T22:08:45.589-07:002010-05-20T22:08:45.589-07:00Hi, Dan,
Thanks so much for this.
I need to build ...Hi, Dan,<br />Thanks so much for this.<br />I need to build one of these with 8 stop watches all moving in sync. Any ideas on how to do that?dbwhttps://www.blogger.com/profile/17288940314909857042noreply@blogger.com