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

The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 

Último (20)

The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 

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