Post on 29-Dec-2015
Electronic Drum Set
Zachary Dziczkowski – EGRE 631 – Dr. Tucker
What’s the Difference
Acoustic Set Electronic Set
Sound Processing
Pintech RS-5 Piezoelectric
Transducer
Sound Processing
Pearl MFH Mesh Drumheads
Sound Processing
Drum Module
My Design
RS-5University DC Computer
Sensor Drum Module Amplifier
UART, A/D Java
Drum Trigger
Piezoelectric Transducer RS-5
¼” Jack
RS-5
Sensor
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
Configuring ADC1
• Used ADC1 to read sensors
• ADC1 can be connected to Port 1
• 8-channel
• 8-bit
• 500ksps
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
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
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
Configuring UART1
• Setting up UART1, continued
7. Tell UART1 to run in Mode 1
• Set SCON to 0x50
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.
Computer
Responsibilities
1. Read data from Microprocessor
2. Load/Play appropriate WAV
3. Amplify output
Computer
Amplifier
Java
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
Final Prototype
RS-5 Transducer
RS-232 Line Driver
University DC Scope Probe
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
Future Work
Add seven more sensors
Move to USB Construct frame to
support drums. Increase usability of
GUI
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.