Your SlideShare is downloading. ×
0
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Implementing a Digital Stopwatch Using Basic Stamp2
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Implementing a Digital Stopwatch Using Basic Stamp2

2,804

Published on

This slideshow consists a brief discussion of implementing a digital stopwatch using a professional development board (Parallax) based on BS2 microcontroller. This project was done as part of …

This slideshow consists a brief discussion of implementing a digital stopwatch using a professional development board (Parallax) based on BS2 microcontroller. This project was done as part of Mechatronics [MAE 576] course at University at Buffalo during Spring 2010 semester.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
2,804
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
27
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. IMPLEMENTING A DIGITAL STOPWATCH USING BASIC STAMP II<br />MAE 576 [MECHATRONICS] LAB-1<br />University at Buffalo, Mechatronics, Spring 2010<br />Chembrammel Elavunkal SrinivasanVishwajeet<br />GROUP E<br />
  • 2. INTRODUCTION<br />Implement a digital stopwatch on Liquid Crystal Display (LCD)<br /> The components used and their functioning are<br />The circuit used for the implementation is drawn<br />The code controlling the hardware is included to complement the understanding of the functioning of the stopwatch<br />The accuracy of the stopwatch is discussed<br />Solution to improve the accuracy is proposed.<br />University at Buffalo, Mechatronics, Spring 2010<br />2<br />
  • 3. OBJECTIVES<br />University at Buffalo, Mechatronics, Spring 2010<br />Gain familiarity with BS2 programming environment.<br />Implement digital inputs from a keypad<br />Perform digital outputs to a seven-segment display<br />Interface a LCD display as a digital stopwatch.<br />3<br />
  • 4. HARDWARE OVERVIEW<br />University at Buffalo, Mechatronics, Spring 2010<br />4<br />Basic Stamp 2 (Rev. J) Module<br />Professional Development Board<br />2 x 16 Parallel LCD<br />
  • 5. HARDWARE OVERVIEW<br />University at Buffalo, Mechatronics, Spring 2010<br />5<br />Professional Development Board (PDB)<br />
  • 6. HARDWARE OVERVIEW<br />University at Buffalo, Mechatronics, Spring 2010<br />6<br />Basic Stamp 2 (Rev. J) Module<br />
  • 7. HARDWARE OVERVIEW<br />University at Buffalo, Mechatronics, Spring 2010<br />7<br />[i] http://www.parallax.com/tabid/134/List/1/ProductID/1/Default.aspx<br />Basic Stamp 2 (Rev. J) Module<br />EEPROM<br />Regulator<br />Interpreter<br />PIC16F57<br />
  • 8. HARDWARE USED<br />University at Buffalo, Mechatronics, Spring 2010<br />8<br />
  • 9. HYPOTHESIS<br />University at Buffalo, Mechatronics, Spring 2010<br />9<br />When Switch S1(part M) is pressed, begin flashing the LED (part F) once per second and continuously display and update the time in seconds on the LCD (not a part of PDB) display.<br /> When Switch S2 is pressed, stop the clock and display the elapsed time. If Switch S1 is pressed again, continue counting up while waiting for Switch S2 to be pressed. <br />Switch S3 is used to reset the display. The seven segment display (part G) should flash the number of switch being pressed.<br />
  • 10. PROPOSED SOLUTION<br />University at Buffalo, Mechatronics, Spring 2010<br />10<br />Integrate part A-D of experiments to obtain functionality of stopwatch<br />Develop a flow chart to get better understanding of process<br />Create circuit layout to integrate all necessary hardware<br />Program code to ensure full operation spectrum<br />Implement finished digital system<br />
  • 11. CONSTRAINTS [Self Imposed]<br />University at Buffalo, Mechatronics, Spring 2010<br />11<br />Ensure clean hardware implementation<br />Reduce use of hardware resources<br />Streamline coding to achieve optimal functionality<br />Test and achieve maximum timer accuracy<br />Additional Goals<br /><ul><li>Welcome Message
  • 12. Status gesture to indicate operation</li></li></ul><li>PROCEDURE<br />University at Buffalo, Mechatronics, Spring 2010<br />12<br />Experiments A - D<br />
  • 13. PROCEDURE [Flow Chart]<br />University at Buffalo, Mechatronics, Spring 2010<br />13<br />Flow Chart<br />
  • 14. PROCEDURE [Circuit]<br />University at Buffalo, Mechatronics, Spring 2010<br />14<br />Circuit<br />
  • 15. PROCEDURE [Pin Layout]<br />University at Buffalo, Mechatronics, Spring 2010<br />15<br />Pin Layout<br />
  • 16. PROCEDURE [Source Code]<br />University at Buffalo, Mechatronics, Spring 2010<br />16<br />Source Code (Attached to Webpage) <br />USED:<br /> 38% of the EEPROM<br /> 5 registers <br />Please note the source code to run the digital stopwatch is attached to this website for <br />your convenience<br />
  • 17. PROCEDURE [Special Connections]<br />University at Buffalo, Mechatronics, Spring 2010<br />17<br />*These connections should always be ensured for proper operation of the system<br />
  • 18. IMPLEMENTATION<br />University at Buffalo, Mechatronics, Spring 2010<br />Power Switch/Light<br />7-segment Display<br />LED7<br />18<br />LCD<br />Piezo Beeper<br />S1<br />S2<br />S3<br />
  • 19. CALIBRATION<br />University at Buffalo, Mechatronics, Spring 2010<br />19<br />Coarse delay and Fine delay tuning mechanism to be able to manually adjust the timing operation<br />
  • 20. TESTING<br />University at Buffalo, Mechatronics, Spring 2010<br />20<br />1 second every 3 hours<br />
  • 21. ERRORS<br />University at Buffalo, Mechatronics, Spring 2010<br />21<br />
  • 22. ERROR ESTIMATION<br />University at Buffalo, Mechatronics, Spring 2010<br />22<br />In simple terms there is an error of 0.333s introduced every 60 minutes operation of the stopwatch timing<br />
  • 23. CONCLUSION<br />University at Buffalo, Mechatronics, Spring 2010<br />23<br />Able to implement the digital stopwatch using BS2 microcontroller<br />Familiarized aspects of integrating multiple electronic components and program them<br />Implemented the digital stopwatch with accuracy using minimum number of electronic components<br />Laid emphasis compact design<br />38% of the total EEPROM due to good programming practice<br />Calibration process yielded combined “Coarse & Fine” delay of 844ms<br />Accuracy and precision of ±0.5 seconds<br />
  • 24. REFERENCES<br />University at Buffalo, Mechatronics, Spring 2010<br />24<br />http://www.parallax.com/Store/Education/KitsandBoards/tabid/182/CategoryID/67/List/0/SortField/0/Level/a/ProductID/320/Default.aspx<br />http://www.parallax.com/tabid/441/Default.aspx<br />BASIC Stamp Syntax and Reference Manual<br />http://www.parallax.com/tabid/214/Default.aspx<br />http://www.parallax.com/tabid/134/List/1/ProductID/1/Default.aspx<br />http://www.parallax.com/Portals/0/Downloads/docs/prod/audiovis/lcd2x16par.pdf<br />

×