*Note* This project is done by students from Singapore Polytechnic. Tools and components were provided by our FYP supervisor Mr. Teo Shin Jen.
Step 1: Getting Started
1. DAC0808 (https://www.national.com/ds/DA/DAC0808.pdf)
2. Sharp GP2Y0A02 (x7) (http://sharp-world.com/products/device/lineup/data/pdf/datasheet/gp2y0a02_e.pdf)
3. Regular speakers
4. chipkit max32 (http://digilentinc.com/Data/Products/CHIPKIT-MAX32/chipKIT%20Max32_rm.pdf)
Step 2: How Does the DAC 0808 Work?
With reference to the wave picture, inputing a binary pattern of decimal value 127 will cause the wave to be at the middle point at that particular time. Likewise, binary pattern of decimal value of 255 will cause the wave to be at the highest (peak) point and binary pattern of decimal value 0 will cause the wave to be at the lowest point.
The only way to manipulate the tone would be by changing the delay/time interval between each decimal value. For example, a tone with 1ms delay interval will sound different from a tone with 2ms delay interval.
Step 3: Sharp GP2Y0A02
There are only 3 pins to configure: 5V, Gnd and I/O pin
In this project, I have configured each IR to play a certain tone. (e.g. IR 1 will play with 1ms delay and IR 2 will play with 2ms delay)
Step 4: Code