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

Mais conteúdo relacionado

Semelhante a Implementing a Digital Stopwatch Using Basic Stamp2

Deployment of the Festo PA Workstation for Undergraduate Training on Industri...
Deployment of the Festo PA Workstation for Undergraduate Training on Industri...Deployment of the Festo PA Workstation for Undergraduate Training on Industri...
Deployment of the Festo PA Workstation for Undergraduate Training on Industri...theijes
 
Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Ankita Tiwari
 
IRJET- Modelling and Control of Variable Frequency Drive using PLC and Ma...
IRJET-  	  Modelling and Control of Variable Frequency Drive using PLC and Ma...IRJET-  	  Modelling and Control of Variable Frequency Drive using PLC and Ma...
IRJET- Modelling and Control of Variable Frequency Drive using PLC and Ma...IRJET Journal
 
IMPLEMENTING A DIGITAL MULTIMETER
IMPLEMENTING A DIGITAL MULTIMETERIMPLEMENTING A DIGITAL MULTIMETER
IMPLEMENTING A DIGITAL MULTIMETERVijay Elavunkal
 
Study of model predictive control using ni lab view
Study of model predictive control using ni lab viewStudy of model predictive control using ni lab view
Study of model predictive control using ni lab viewIAEME Publication
 
Study of model predictive control using ni lab view
Study of model predictive control using ni lab viewStudy of model predictive control using ni lab view
Study of model predictive control using ni lab viewiaemedu
 
Study of model predictive control using ni lab view
Study of model predictive control using ni lab viewStudy of model predictive control using ni lab view
Study of model predictive control using ni lab viewiaemedu
 
Simulation and Modelling of 3-Floor Elevator System using PLC
Simulation and Modelling of 3-Floor Elevator System using PLCSimulation and Modelling of 3-Floor Elevator System using PLC
Simulation and Modelling of 3-Floor Elevator System using PLCIRJET Journal
 
A software based gain scheduling of pid controller
A software based gain scheduling of pid controllerA software based gain scheduling of pid controller
A software based gain scheduling of pid controllerijics
 
Control robotic module using LIFA
Control robotic module using LIFAControl robotic module using LIFA
Control robotic module using LIFAVatsal N Shah
 
Automation of Instrument Air Distribution System using Arduino and Integrate ...
Automation of Instrument Air Distribution System using Arduino and Integrate ...Automation of Instrument Air Distribution System using Arduino and Integrate ...
Automation of Instrument Air Distribution System using Arduino and Integrate ...IRJET Journal
 
Clock Gating of Streaming Applications for Power Minimization on FPGA’s
 	  Clock Gating of Streaming Applications for Power Minimization on FPGA’s 	  Clock Gating of Streaming Applications for Power Minimization on FPGA’s
Clock Gating of Streaming Applications for Power Minimization on FPGA’sIRJET Journal
 
IRJET- A Testbed for Real Time Water Level Control System
IRJET- 	  A Testbed for Real Time Water Level Control SystemIRJET- 	  A Testbed for Real Time Water Level Control System
IRJET- A Testbed for Real Time Water Level Control SystemIRJET Journal
 
Power point presentation on Industrial Automation
Power point presentation on Industrial AutomationPower point presentation on Industrial Automation
Power point presentation on Industrial AutomationJaiPrakash337
 
Micrcontroller iv sem lab manual
Micrcontroller iv sem lab manualMicrcontroller iv sem lab manual
Micrcontroller iv sem lab manualRohiniHM2
 
process control instrumentation lab and labview report
process control  instrumentation lab and labview  reportprocess control  instrumentation lab and labview  report
process control instrumentation lab and labview reportHari Krishna
 
IRJET- Braille Oriented Classroom
IRJET-  	  Braille Oriented ClassroomIRJET-  	  Braille Oriented Classroom
IRJET- Braille Oriented ClassroomIRJET Journal
 
LabVIEW - Teaching Aid for Process Control
LabVIEW - Teaching Aid for Process ControlLabVIEW - Teaching Aid for Process Control
LabVIEW - Teaching Aid for Process ControlIDES Editor
 

Semelhante a Implementing a Digital Stopwatch Using Basic Stamp2 (20)

Deployment of the Festo PA Workstation for Undergraduate Training on Industri...
Deployment of the Festo PA Workstation for Undergraduate Training on Industri...Deployment of the Festo PA Workstation for Undergraduate Training on Industri...
Deployment of the Festo PA Workstation for Undergraduate Training on Industri...
 
LOW COST SCADA SYSTEM FOR EDUCATION
LOW COST SCADA SYSTEM FOR EDUCATIONLOW COST SCADA SYSTEM FOR EDUCATION
LOW COST SCADA SYSTEM FOR EDUCATION
 
Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.
 
IRJET- Modelling and Control of Variable Frequency Drive using PLC and Ma...
IRJET-  	  Modelling and Control of Variable Frequency Drive using PLC and Ma...IRJET-  	  Modelling and Control of Variable Frequency Drive using PLC and Ma...
IRJET- Modelling and Control of Variable Frequency Drive using PLC and Ma...
 
IMPLEMENTING A DIGITAL MULTIMETER
IMPLEMENTING A DIGITAL MULTIMETERIMPLEMENTING A DIGITAL MULTIMETER
IMPLEMENTING A DIGITAL MULTIMETER
 
Study of model predictive control using ni lab view
Study of model predictive control using ni lab viewStudy of model predictive control using ni lab view
Study of model predictive control using ni lab view
 
Study of model predictive control using ni lab view
Study of model predictive control using ni lab viewStudy of model predictive control using ni lab view
Study of model predictive control using ni lab view
 
Study of model predictive control using ni lab view
Study of model predictive control using ni lab viewStudy of model predictive control using ni lab view
Study of model predictive control using ni lab view
 
Simulation and Modelling of 3-Floor Elevator System using PLC
Simulation and Modelling of 3-Floor Elevator System using PLCSimulation and Modelling of 3-Floor Elevator System using PLC
Simulation and Modelling of 3-Floor Elevator System using PLC
 
A software based gain scheduling of pid controller
A software based gain scheduling of pid controllerA software based gain scheduling of pid controller
A software based gain scheduling of pid controller
 
Control robotic module using LIFA
Control robotic module using LIFAControl robotic module using LIFA
Control robotic module using LIFA
 
Automation of Instrument Air Distribution System using Arduino and Integrate ...
Automation of Instrument Air Distribution System using Arduino and Integrate ...Automation of Instrument Air Distribution System using Arduino and Integrate ...
Automation of Instrument Air Distribution System using Arduino and Integrate ...
 
Project_Report_Masters
Project_Report_MastersProject_Report_Masters
Project_Report_Masters
 
Clock Gating of Streaming Applications for Power Minimization on FPGA’s
 	  Clock Gating of Streaming Applications for Power Minimization on FPGA’s 	  Clock Gating of Streaming Applications for Power Minimization on FPGA’s
Clock Gating of Streaming Applications for Power Minimization on FPGA’s
 
IRJET- A Testbed for Real Time Water Level Control System
IRJET- 	  A Testbed for Real Time Water Level Control SystemIRJET- 	  A Testbed for Real Time Water Level Control System
IRJET- A Testbed for Real Time Water Level Control System
 
Power point presentation on Industrial Automation
Power point presentation on Industrial AutomationPower point presentation on Industrial Automation
Power point presentation on Industrial Automation
 
Micrcontroller iv sem lab manual
Micrcontroller iv sem lab manualMicrcontroller iv sem lab manual
Micrcontroller iv sem lab manual
 
process control instrumentation lab and labview report
process control  instrumentation lab and labview  reportprocess control  instrumentation lab and labview  report
process control instrumentation lab and labview report
 
IRJET- Braille Oriented Classroom
IRJET-  	  Braille Oriented ClassroomIRJET-  	  Braille Oriented Classroom
IRJET- Braille Oriented Classroom
 
LabVIEW - Teaching Aid for Process Control
LabVIEW - Teaching Aid for Process ControlLabVIEW - Teaching Aid for Process Control
LabVIEW - Teaching Aid for Process Control
 

Último

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 

Último (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 

Implementing a Digital Stopwatch Using Basic Stamp2

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