SlideShare ist ein Scribd-Unternehmen logo
1 von 17
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

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (18)

AFRIQ ARBITRAGE SYSTEM - AAS
AFRIQ ARBITRAGE SYSTEM - AASAFRIQ ARBITRAGE SYSTEM - AAS
AFRIQ ARBITRAGE SYSTEM - AAS
 
Lighting technique used in retail store
Lighting technique used in retail storeLighting technique used in retail store
Lighting technique used in retail store
 
Dental Clinic Interior Projects by prarthit shah
Dental Clinic Interior Projects by prarthit shahDental Clinic Interior Projects by prarthit shah
Dental Clinic Interior Projects by prarthit shah
 
Pill camera
Pill cameraPill camera
Pill camera
 
Pill camera
Pill cameraPill camera
Pill camera
 
Smart Card
Smart CardSmart Card
Smart Card
 
Design, Construction and Performance Test of a Color Sorter
Design, Construction and Performance Test of a Color SorterDesign, Construction and Performance Test of a Color Sorter
Design, Construction and Performance Test of a Color Sorter
 
BIOCHIPS(Life On It)
BIOCHIPS(Life On It)BIOCHIPS(Life On It)
BIOCHIPS(Life On It)
 
Clean up this mess - API Gateway & Service Discovery in .NET
Clean up this mess - API Gateway & Service Discovery in .NETClean up this mess - API Gateway & Service Discovery in .NET
Clean up this mess - API Gateway & Service Discovery in .NET
 
Smart glass
Smart glassSmart glass
Smart glass
 
PILL CAMERA
PILL CAMERAPILL CAMERA
PILL CAMERA
 
Textile Markets Projects in Surat
Textile Markets Projects in SuratTextile Markets Projects in Surat
Textile Markets Projects in Surat
 
Les étoiles filantes
Les étoiles filantesLes étoiles filantes
Les étoiles filantes
 
Mis case study
Mis case studyMis case study
Mis case study
 
Pill camera ppt
Pill camera pptPill camera ppt
Pill camera ppt
 
Pill camera
Pill cameraPill camera
Pill camera
 
pill came
pill camepill came
pill came
 
SPAR HYPERMARKET - NET CASE STUDY
SPAR HYPERMARKET - NET CASE STUDYSPAR HYPERMARKET - NET CASE STUDY
SPAR HYPERMARKET - NET CASE STUDY
 

Ähnlich wie 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 roboticsPallavi 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 RoboticsNIT Raipur
 
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 R3Abhishekvb
 
MICS Band Wireless Body Sensor Network
MICS Band Wireless Body Sensor NetworkMICS Band Wireless Body Sensor Network
MICS Band Wireless Body Sensor NetworkMyo Naung Lwin
 
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 DevelopmentIJERD Editor
 
MPU6050_Motion_Sensor.pptx
MPU6050_Motion_Sensor.pptxMPU6050_Motion_Sensor.pptx
MPU6050_Motion_Sensor.pptx9731735920
 
Quickly design infrared body temperature detector
Quickly design infrared body temperature detectorQuickly design infrared body temperature detector
Quickly design infrared body temperature detectorVinsion Chan
 
Heart Beat Monitoring System
Heart Beat Monitoring SystemHeart Beat Monitoring System
Heart Beat Monitoring SystemINDRANILSAIN
 
Basic Stamp Lightmeter Presentation
Basic Stamp Lightmeter PresentationBasic Stamp Lightmeter Presentation
Basic Stamp Lightmeter Presentationtomkinsc
 
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.docxmercysuttle
 
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 PROJECTvasav2204
 
electrical engineering project
electrical engineering projectelectrical engineering project
electrical engineering projectvasav2204
 

Ähnlich wie 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
 

Kürzlich hochgeladen

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 

Kürzlich hochgeladen (20)

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 

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