SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Similaire à 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
 

Similaire à 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
 

Dernier

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
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
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
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
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
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
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 

Dernier (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 

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