20
Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Embed Size (px)

Citation preview

Page 1: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Electronic Drum Set

Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Page 2: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

What’s the Difference

Acoustic Set Electronic Set

Page 3: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Sound Processing

Pintech RS-5 Piezoelectric

Transducer

Page 4: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Sound Processing

Pearl MFH Mesh Drumheads

Page 5: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Sound Processing

Drum Module

Page 6: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

My Design

RS-5University DC Computer

Sensor Drum Module Amplifier

UART, A/D Java

Page 7: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Drum Trigger

Piezoelectric Transducer RS-5

¼” Jack

RS-5

Sensor

Page 8: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

University DC

University DC

Drum Module

UART, A/D

• Used ADC1 to read sensors

• Problems with ADC0

• Used UART1 to send data to computer

• Problems with UART0

Page 9: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Configuring ADC1

• Used ADC1 to read sensors

• ADC1 can be connected to Port 1

• 8-channel

• 8-bit

• 500ksps

Page 10: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Configuring ADC1

• Setting up ADC1

1. Set Port 1 to analog input.

• Set P1MDIN to 0x00

2. Tell Timer 3 to use the system clock

• Set TMR3CN to 0x00

3. Initialize Timer 3 with a value

4. Enable Timer 3

• Set TMR3CN to 0x04

5. Set the reference voltage for ADC1

6. Tell the mux which input to read first

• Set AMX1SL to 0x00

Page 11: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Configuring UART1

• Used UART1 to send data to computer

• UART1 can be connected to Port 0

• Uses Timer 4

• Mode 1, Asynchronous, 10-bit

• 115,200 Baud

Page 12: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Configuring UART1

• Setting up UART1

1. Set crossbar to output UART1 to P0

• Set XBR2 to 0x44

2. Tell Port 0 to be digital ouputs

• Set P0MDOUT to 0xF0

3. Tell UART1 to use Timer 4

• Set T4CON to 0x30

4. Initialize Timer 4 to the appropriate value for the Baud rate.

5. Enable Timer 4

6. Tell Timer 4 to run off of the system clock

• Or CLKCON with 0x40

Page 13: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Configuring UART1

• Setting up UART1, continued

7. Tell UART1 to run in Mode 1

• Set SCON to 0x50

Page 14: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Command Specs

A (0x41) = Trigger #1 B (0x42) = Trigger #2 (unimplemented) C (0x43) = Trigger #3 (unimplemented) and so on…

Eventually, Java program sends back an ACK, perhaps.

Page 15: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Computer

Responsibilities

1. Read data from Microprocessor

2. Load/Play appropriate WAV

3. Amplify output

Computer

Amplifier

Java

Page 16: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Java Program

Algorithm

1. Initialize serial communication

2. Initialize WAV player

3. Listen for data on serial line

1. Read command

2. Play corresponding WAV file

Page 17: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Final Prototype

RS-5 Transducer

RS-232 Line Driver

University DC Scope Probe

Page 18: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Issues

UART0 Electromagnetics

Ugh… Redundant Data

Sensor Sensitivity is too high Ways to mitigate this?

Deploy Design Use the University DC, PIC

Serial Communication Move to USB

Page 19: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Future Work

Add seven more sensors

Move to USB Construct frame to

support drums. Increase usability of

GUI

Page 20: Electronic Drum Set Zachary Dziczkowski – EGRE 631 – Dr. Tucker

Questions?

REFERENCES

I. Silicon Laboratories. (2009, Mar.) C8051F020/1/2/3. PDF Datasheet. I.

Microchip Technology. (2007) PIC18F2455/2550/4555/4550 Datasheet. PDF Datasheet. (2009)

Pintech Electronic Percussion. [Online]. http://www.pintechworld.com/shop/scripts/prodView/asp?product=100 (2009, Apr.)

RXTX: serial and parallel I/O libraries supporting Sun's CommAPI. [Online]. http://rxtx.org (2009)

Java Sound API. [Online]. http://java.sun.com/products/java-media/sound/ (2009)

Java Communications API. [Online]. http://java.sun.com/products/javacomm/ (2003, Aug.)

jUSB for Windows 2000/XP Project. [Online]. http://www.steelbrothers.ch/jusb

I. Tektronix, TDS1000B and TDS2000B Series Digital Storage Oscilloscope User Manual. Beaverton, United States, 2009.