SlideShare a Scribd company logo
Martial Arts Punch Sensor
Christopher Brennan
June – July 2016
Outline
• Purpose
• Concept
• Key Components
• Design
• Modifications
• Functionality
• Prototype Punch-plate Assembly
Purpose
• To inspire the students of a local Martial Arts school
with a robust, inexpensive punch sensor.
– Thank you Aleksey for the idea! Check out his DIY project
blog here: https://abieneman.wordpress.com/2010/04/
Concept
Key Components
Component Qty Manufacturer Part Number Cost (USD)
Arduino Uno 1 Arduino 2877 24.95
ADC 1 Microchip MCP3002 2.30
Accelerometer 1 Analog Devices ADXL193 29.95
Shift Register 1 Texas Instruments SN74HC595 0.95
LED display 1 China Yunsun LED YSD-439AB4B0-35 2.50
TOTAL 60.65
Design
Single-Axis, High-g,
Accelerometer
10-Bit A/D Converter
with SPI Serial Interface
Arduino Uno LED display
8-Bit Shift
Register
Schematic
• Applications:
- Vibration monitoring and control
- Vehicle collision sensing
- Shock detection
Accelerometer: ADXL193
• Analog output (OUT)
• Single-axis, High-g: ± 250g output full scale range
• Sensitivity (VDD=5V): 8mV/g
• Self-test feature (ST): verifies sensor components
• Low power: 1.5mA
• Low noise
Fig. 1 Accelerometer.
A/D Converter: MCP3002
• 10-Bit resolution
• Dual Channel
• On-chip sample and hold
• SPI serial interface
• Low Power
• 200 ksps max sampling rate (VDD=5V)
Justification:
- An increased sampling rate is needed to capture impact events;
Arduino’s built-in ADC does not meet the requirements.
- Aleksey uses a 16-Bit ADC, but given the limited LED display digits, the
extra precision is not necessary. Plus the 16-Bit ADC is more expensive.
Fig. 2 A/D Converter.
Arduino Uno: ATmega328P MCU
Arduino Uno’s Job:
1. Read accelerometer data from the ADC via SPI interface (D10-D13).
2. Watch for impact events: absolute accelerations greater than 10g.
3. Send the max acceleration from each impact event to the LED display.
i. Digit control (D2-D5); to LED
ii. Segment control (D6-D7); to Shift register
To LED
To Shift
Register
SPI with
ADC
Fig. 3 Arduino Uno.
Shift Register: SN74HC594
• 8-Bit Serial-In, Parallel-Out Shift Register with Storage.
• Shift Register’s Job:
1. Receive the 8-Bit segment data from the MCU.
2. Transmit the 8-Bit segment data, one bit at a time, to the segment pins on
the LED display.
To
LED
From
Uno
Fig. 4 Shift Register.
LED Display
• 7 segment LED display
• The number displayed is the absolute max
acceleration from a given impact event.
• The MCU dictates the number to display:
– sets DIG.X pins to HIGH
– sets segment pins A-G to LOW via shift register
Current Limiting the LED Display
• A 16-Bit interrupt timer limits the duration that the LED display stays ON.
• How it works:
- The MCU has a 16MHz clock (16 million ticks per second) with a 16-Bit timer
that counts up to 216 ticks (65536 ticks).
- An overflow interrupt occurs when the timer exceeds 216 ticks; when this
happens (every 4ms) the LED display turns ON to display a number.
- A compare interrupt occurs when the timer matches 10,000 ticks; when this
happens (0.6ms after an overflow interrupt) the LED display turns OFF.
Fig. 5 LED Display.
Modifications
The use of the 10-Bit ADC (MCP3002) instead of Aleksey’s 16-Bit ADC demanded
two critical changes to the Arduino Script (C++):
Arduino Script Modification #1:
The 16-Bit ADC has better resolution than the 10-Bit ADC:
• 16-Bit:
 acceleration (g) = ((ADReading- 215) / 216)*5 volts/ 0.008 (volts/g)
 (1/ 216 )*5 volts / 0.008 (volts/g) = 0.0095 g resolution
• 10-Bit:
 acceleration (g) = ((ADReading- 29) / 210)*5 volts/ 0.008 (volts/g)
 (1/ 210 )*5 volts / 0.008 (volts/g) = 0.61 g resolution
Hence, the acceleration calculation must be modified for the 10-Bit ADC:
where acc =(ADReading-29) and 0.61 g is the resolution.
Arduino Script Modification #2:
MCP3002 is a configurable, dual channel ADC. Therefore, 8-Bit data must be sent
to the ADC’s Din pin to dictate how data is read and transmitted. For example:
0 1 1 0 1 0 0 0
This byte configures the ADC to read analog data from channel 0 and to transmit
digital data to the MCU one bit at a time with the most significant bit first. Note
that this byte corresponds to the decimal number 104; hence the following code
is used to transmit and store a 10-Bit accelerometer reading:
Don’t Care
Modifications
How it works: The MCU gets 30kHz-sampled data from the ADC and stores each value
as reading. Then the following variables are updated:
I. atRestJit: set true if reading is inside ±10g.
II. atRest: set true if reading has been within ±10g for 0.5 seconds
III. maxReading , minReading: the max, min readings from a given impact event.
• Impact events are recognized when the sensor is disturbed from steady state, the
state when atRest and atRestJit are both true.
• When a new impact event occurs, the old maxReading, minReading values are reset
so that new maxReading, minReading values can be stored.
• The MCU sends max(|maxReading|,|minReading|) to the LED display upon an
overflow interrupt.
Functionality
The following variables (i) identify impact events and (ii) store the absolute max
accelerations from impact events for display:
Functionality Example: Vibration
Prototype Punch-plate Assembly
Compression
Spring
Linear Guide for
single-axis acceleration
Accelerometer
Housing
Punch-plate

More Related Content

What's hot

How CIDB could control and manage the construction contractors towards implem...
How CIDB could control and manage the construction contractors towards implem...How CIDB could control and manage the construction contractors towards implem...
How CIDB could control and manage the construction contractors towards implem...
N.AIZA HASSAN
 
Structural Analysis and Design of Castellated Beam in Fixed Action
Structural Analysis and Design of Castellated Beam in Fixed ActionStructural Analysis and Design of Castellated Beam in Fixed Action
Structural Analysis and Design of Castellated Beam in Fixed Action
AM Publications
 
Fire Fighting System
Fire Fighting SystemFire Fighting System
Fire Fighting System
Mahmoud Mandow
 
Case study of ms1525 energy efficiency and renewable energy code of practice.
Case study of ms1525   energy efficiency and renewable energy code of practice.Case study of ms1525   energy efficiency and renewable energy code of practice.
Case study of ms1525 energy efficiency and renewable energy code of practice.
Steve Lojuntin
 
BQS Site Visit Report
BQS Site Visit ReportBQS Site Visit Report
BQS Site Visit Report
Hasif Alias
 
NX_CAD
NX_CADNX_CAD
NX_CAD
Barney Day
 
Street lighting section_12_drawings
Street lighting section_12_drawingsStreet lighting section_12_drawings
Street lighting section_12_drawings
frengkyagungt
 
Building structure analysis report
Building structure analysis report Building structure analysis report
Building structure analysis report Soh Shing
 
PERINGKAT NILAI PEARALEL UN 2015-2016 SMP 2 PASIRIAN
PERINGKAT NILAI  PEARALEL UN 2015-2016 SMP 2 PASIRIANPERINGKAT NILAI  PEARALEL UN 2015-2016 SMP 2 PASIRIAN
PERINGKAT NILAI PEARALEL UN 2015-2016 SMP 2 PASIRIAN
Phaphy Wahyudhi
 
Final slides
Final slidesFinal slides
Final slides
hongbinng
 
Ge thermo plastic design guide_[1]
Ge thermo plastic  design guide_[1]Ge thermo plastic  design guide_[1]
Ge thermo plastic design guide_[1]
ThuyDong2
 
Apcodur epoxy zinc phosphate primer
Apcodur epoxy zinc phosphate primerApcodur epoxy zinc phosphate primer
Apcodur epoxy zinc phosphate primer
heru setyanto
 
industrial training internship report
industrial training internship reportindustrial training internship report
industrial training internship report
TariqJamil19
 
Industrial training solid works report by atharva mahalle (19 me001)
Industrial training solid works report by atharva mahalle (19 me001) Industrial training solid works report by atharva mahalle (19 me001)
Industrial training solid works report by atharva mahalle (19 me001)
NSVines
 
UGS NX
UGS NXUGS NX
UGS NX
mrbojanglezs
 
Energy Efficiency Standard and labeling in Malaysia 2010
Energy Efficiency Standard and labeling in Malaysia 2010Energy Efficiency Standard and labeling in Malaysia 2010
Energy Efficiency Standard and labeling in Malaysia 2010
ZAINI ABDUL WAHAB
 

What's hot (17)

How CIDB could control and manage the construction contractors towards implem...
How CIDB could control and manage the construction contractors towards implem...How CIDB could control and manage the construction contractors towards implem...
How CIDB could control and manage the construction contractors towards implem...
 
Structural Analysis and Design of Castellated Beam in Fixed Action
Structural Analysis and Design of Castellated Beam in Fixed ActionStructural Analysis and Design of Castellated Beam in Fixed Action
Structural Analysis and Design of Castellated Beam in Fixed Action
 
Fire Fighting System
Fire Fighting SystemFire Fighting System
Fire Fighting System
 
Case study of ms1525 energy efficiency and renewable energy code of practice.
Case study of ms1525   energy efficiency and renewable energy code of practice.Case study of ms1525   energy efficiency and renewable energy code of practice.
Case study of ms1525 energy efficiency and renewable energy code of practice.
 
BQS Site Visit Report
BQS Site Visit ReportBQS Site Visit Report
BQS Site Visit Report
 
NX_CAD
NX_CADNX_CAD
NX_CAD
 
Street lighting section_12_drawings
Street lighting section_12_drawingsStreet lighting section_12_drawings
Street lighting section_12_drawings
 
Building structure analysis report
Building structure analysis report Building structure analysis report
Building structure analysis report
 
PERINGKAT NILAI PEARALEL UN 2015-2016 SMP 2 PASIRIAN
PERINGKAT NILAI  PEARALEL UN 2015-2016 SMP 2 PASIRIANPERINGKAT NILAI  PEARALEL UN 2015-2016 SMP 2 PASIRIAN
PERINGKAT NILAI PEARALEL UN 2015-2016 SMP 2 PASIRIAN
 
Final slides
Final slidesFinal slides
Final slides
 
Ge thermo plastic design guide_[1]
Ge thermo plastic  design guide_[1]Ge thermo plastic  design guide_[1]
Ge thermo plastic design guide_[1]
 
Apcodur epoxy zinc phosphate primer
Apcodur epoxy zinc phosphate primerApcodur epoxy zinc phosphate primer
Apcodur epoxy zinc phosphate primer
 
industrial training internship report
industrial training internship reportindustrial training internship report
industrial training internship report
 
Industrial training solid works report by atharva mahalle (19 me001)
Industrial training solid works report by atharva mahalle (19 me001) Industrial training solid works report by atharva mahalle (19 me001)
Industrial training solid works report by atharva mahalle (19 me001)
 
UGS NX
UGS NXUGS NX
UGS NX
 
Fire fighting passive system
Fire fighting passive systemFire fighting passive system
Fire fighting passive system
 
Energy Efficiency Standard and labeling in Malaysia 2010
Energy Efficiency Standard and labeling in Malaysia 2010Energy Efficiency Standard and labeling in Malaysia 2010
Energy Efficiency Standard and labeling in Malaysia 2010
 

Similar to Punch sensor, Arduino

Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and robotics
Pallavi Bharti
 
Training Report on embedded Systems and Robotics
Training Report on embedded  Systems and RoboticsTraining Report on embedded  Systems and Robotics
Training Report on embedded Systems and Robotics
NIT Raipur
 
digital clock atmega16
digital clock atmega16digital clock atmega16
digital clock atmega16
Arcanjo Salazaku
 
A 1.2V 10-bit 165MSPS Video ADC
A 1.2V 10-bit 165MSPS Video ADCA 1.2V 10-bit 165MSPS Video ADC
A 1.2V 10-bit 165MSPS Video ADC
QuEST Global (erstwhile NeST Software)
 
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
Abhishekvb
 
MICS Band Wireless Body Sensor Network
MICS Band Wireless Body Sensor NetworkMICS Band Wireless Body Sensor Network
MICS Band Wireless Body Sensor Network
Myo Naung Lwin
 
Digital stop watch
Digital stop watchDigital stop watch
Digital stop watch
Sai Malleswar
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
IJERD Editor
 
MPU6050_Motion_Sensor.pptx
MPU6050_Motion_Sensor.pptxMPU6050_Motion_Sensor.pptx
MPU6050_Motion_Sensor.pptx
9731735920
 
Quickly design infrared body temperature detector
Quickly design infrared body temperature detectorQuickly design infrared body temperature detector
Quickly design infrared body temperature detector
Vinsion Chan
 
Heart Beat Monitoring System
Heart Beat Monitoring SystemHeart Beat Monitoring System
Heart Beat Monitoring System
INDRANILSAIN
 
Basic Stamp Lightmeter Presentation
Basic Stamp Lightmeter PresentationBasic Stamp Lightmeter Presentation
Basic Stamp Lightmeter Presentation
tomkinsc
 
Precision microcontrolleroverview
Precision microcontrolleroverviewPrecision microcontrolleroverview
Precision microcontrolleroverviewGhazi BEN HMIDA
 
1 PageAlarm Clock Design Using PIC18F45E.docx
1  PageAlarm Clock Design Using PIC18F45E.docx1  PageAlarm Clock Design Using PIC18F45E.docx
1 PageAlarm Clock Design Using PIC18F45E.docx
mercysuttle
 
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Tawsif Rahman Chowdhury
 
EKG Project Oral Presentation
EKG Project Oral Presentation EKG Project Oral Presentation
EKG Project Oral Presentation Abdiqani Sidow
 
ELECTRICAL ENGINEERING PROJECT
ELECTRICAL ENGINEERING PROJECTELECTRICAL ENGINEERING PROJECT
ELECTRICAL ENGINEERING PROJECT
vasav2204
 
electrical engineering project
electrical engineering projectelectrical engineering project
electrical engineering project
vasav2204
 

Similar to Punch sensor, Arduino (20)

Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and robotics
 
JamesEndl
JamesEndlJamesEndl
JamesEndl
 
Training Report on embedded Systems and Robotics
Training Report on embedded  Systems and RoboticsTraining Report on embedded  Systems and Robotics
Training Report on embedded Systems and Robotics
 
digital clock atmega16
digital clock atmega16digital clock atmega16
digital clock atmega16
 
A 1.2V 10-bit 165MSPS Video ADC
A 1.2V 10-bit 165MSPS Video ADCA 1.2V 10-bit 165MSPS Video ADC
A 1.2V 10-bit 165MSPS Video ADC
 
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
 
MICS Band Wireless Body Sensor Network
MICS Band Wireless Body Sensor NetworkMICS Band Wireless Body Sensor Network
MICS Band Wireless Body Sensor Network
 
Lab3
Lab3Lab3
Lab3
 
Digital stop watch
Digital stop watchDigital stop watch
Digital stop watch
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
MPU6050_Motion_Sensor.pptx
MPU6050_Motion_Sensor.pptxMPU6050_Motion_Sensor.pptx
MPU6050_Motion_Sensor.pptx
 
Quickly design infrared body temperature detector
Quickly design infrared body temperature detectorQuickly design infrared body temperature detector
Quickly design infrared body temperature detector
 
Heart Beat Monitoring System
Heart Beat Monitoring SystemHeart Beat Monitoring System
Heart Beat Monitoring System
 
Basic Stamp Lightmeter Presentation
Basic Stamp Lightmeter PresentationBasic Stamp Lightmeter Presentation
Basic Stamp Lightmeter Presentation
 
Precision microcontrolleroverview
Precision microcontrolleroverviewPrecision microcontrolleroverview
Precision microcontrolleroverview
 
1 PageAlarm Clock Design Using PIC18F45E.docx
1  PageAlarm Clock Design Using PIC18F45E.docx1  PageAlarm Clock Design Using PIC18F45E.docx
1 PageAlarm Clock Design Using PIC18F45E.docx
 
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
 
EKG Project Oral Presentation
EKG Project Oral Presentation EKG Project Oral Presentation
EKG Project Oral Presentation
 
ELECTRICAL ENGINEERING PROJECT
ELECTRICAL ENGINEERING PROJECTELECTRICAL ENGINEERING PROJECT
ELECTRICAL ENGINEERING PROJECT
 
electrical engineering project
electrical engineering projectelectrical engineering project
electrical engineering project
 

Recently uploaded

weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 

Recently uploaded (20)

weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 

Punch sensor, Arduino

  • 1. Martial Arts Punch Sensor Christopher Brennan June – July 2016
  • 2. Outline • Purpose • Concept • Key Components • Design • Modifications • Functionality • Prototype Punch-plate Assembly
  • 3. Purpose • To inspire the students of a local Martial Arts school with a robust, inexpensive punch sensor. – Thank you Aleksey for the idea! Check out his DIY project blog here: https://abieneman.wordpress.com/2010/04/
  • 5. Key Components Component Qty Manufacturer Part Number Cost (USD) Arduino Uno 1 Arduino 2877 24.95 ADC 1 Microchip MCP3002 2.30 Accelerometer 1 Analog Devices ADXL193 29.95 Shift Register 1 Texas Instruments SN74HC595 0.95 LED display 1 China Yunsun LED YSD-439AB4B0-35 2.50 TOTAL 60.65
  • 6. Design Single-Axis, High-g, Accelerometer 10-Bit A/D Converter with SPI Serial Interface Arduino Uno LED display 8-Bit Shift Register
  • 8. • Applications: - Vibration monitoring and control - Vehicle collision sensing - Shock detection Accelerometer: ADXL193 • Analog output (OUT) • Single-axis, High-g: ± 250g output full scale range • Sensitivity (VDD=5V): 8mV/g • Self-test feature (ST): verifies sensor components • Low power: 1.5mA • Low noise Fig. 1 Accelerometer.
  • 9. A/D Converter: MCP3002 • 10-Bit resolution • Dual Channel • On-chip sample and hold • SPI serial interface • Low Power • 200 ksps max sampling rate (VDD=5V) Justification: - An increased sampling rate is needed to capture impact events; Arduino’s built-in ADC does not meet the requirements. - Aleksey uses a 16-Bit ADC, but given the limited LED display digits, the extra precision is not necessary. Plus the 16-Bit ADC is more expensive. Fig. 2 A/D Converter.
  • 10. Arduino Uno: ATmega328P MCU Arduino Uno’s Job: 1. Read accelerometer data from the ADC via SPI interface (D10-D13). 2. Watch for impact events: absolute accelerations greater than 10g. 3. Send the max acceleration from each impact event to the LED display. i. Digit control (D2-D5); to LED ii. Segment control (D6-D7); to Shift register To LED To Shift Register SPI with ADC Fig. 3 Arduino Uno.
  • 11. Shift Register: SN74HC594 • 8-Bit Serial-In, Parallel-Out Shift Register with Storage. • Shift Register’s Job: 1. Receive the 8-Bit segment data from the MCU. 2. Transmit the 8-Bit segment data, one bit at a time, to the segment pins on the LED display. To LED From Uno Fig. 4 Shift Register.
  • 12. LED Display • 7 segment LED display • The number displayed is the absolute max acceleration from a given impact event. • The MCU dictates the number to display: – sets DIG.X pins to HIGH – sets segment pins A-G to LOW via shift register Current Limiting the LED Display • A 16-Bit interrupt timer limits the duration that the LED display stays ON. • How it works: - The MCU has a 16MHz clock (16 million ticks per second) with a 16-Bit timer that counts up to 216 ticks (65536 ticks). - An overflow interrupt occurs when the timer exceeds 216 ticks; when this happens (every 4ms) the LED display turns ON to display a number. - A compare interrupt occurs when the timer matches 10,000 ticks; when this happens (0.6ms after an overflow interrupt) the LED display turns OFF. Fig. 5 LED Display.
  • 13. Modifications The use of the 10-Bit ADC (MCP3002) instead of Aleksey’s 16-Bit ADC demanded two critical changes to the Arduino Script (C++): Arduino Script Modification #1: The 16-Bit ADC has better resolution than the 10-Bit ADC: • 16-Bit:  acceleration (g) = ((ADReading- 215) / 216)*5 volts/ 0.008 (volts/g)  (1/ 216 )*5 volts / 0.008 (volts/g) = 0.0095 g resolution • 10-Bit:  acceleration (g) = ((ADReading- 29) / 210)*5 volts/ 0.008 (volts/g)  (1/ 210 )*5 volts / 0.008 (volts/g) = 0.61 g resolution Hence, the acceleration calculation must be modified for the 10-Bit ADC: where acc =(ADReading-29) and 0.61 g is the resolution.
  • 14. Arduino Script Modification #2: MCP3002 is a configurable, dual channel ADC. Therefore, 8-Bit data must be sent to the ADC’s Din pin to dictate how data is read and transmitted. For example: 0 1 1 0 1 0 0 0 This byte configures the ADC to read analog data from channel 0 and to transmit digital data to the MCU one bit at a time with the most significant bit first. Note that this byte corresponds to the decimal number 104; hence the following code is used to transmit and store a 10-Bit accelerometer reading: Don’t Care Modifications
  • 15. How it works: The MCU gets 30kHz-sampled data from the ADC and stores each value as reading. Then the following variables are updated: I. atRestJit: set true if reading is inside ±10g. II. atRest: set true if reading has been within ±10g for 0.5 seconds III. maxReading , minReading: the max, min readings from a given impact event. • Impact events are recognized when the sensor is disturbed from steady state, the state when atRest and atRestJit are both true. • When a new impact event occurs, the old maxReading, minReading values are reset so that new maxReading, minReading values can be stored. • The MCU sends max(|maxReading|,|minReading|) to the LED display upon an overflow interrupt. Functionality The following variables (i) identify impact events and (ii) store the absolute max accelerations from impact events for display:
  • 17. Prototype Punch-plate Assembly Compression Spring Linear Guide for single-axis acceleration Accelerometer Housing Punch-plate