Sound Changer
Hello ! You always wanted to create an aquisition/restitution sound system able to change your sound with effect like filtering or modulation! The sound changer is made for you!
This project needs around 10 hours and a budget of $173.78.
1 DE0 nano SoC board : $80
http://www.terasic.com.tw/cgi-bin/page/archive.pl?...
1 Screen Arduino Shield 1,8" (ST7735) :$34.95
https://www.adafruit.com/product/802
2 Analog Output Type Distance Measuring Sensor GP2Y0A41SK0F : $12.86
https://www.gotronic.fr/art-capteur-de-mesure-shar...
1 Ultrasonic Ranging Module HC - SFR05 : $22.29
https://www.gotronic.fr/art-transducteur-a-ultraso...
1 DAC MCP4821-E/P : $2.31
http://www.microchip.com/wwwproducts/en/MCP4821
1 LDO MAX764 : $6.78
https://www.digikey.com/product-detail/en/maxim-in...
1 Ampli Audio LM386N : $0.93
https://www.gotronic.fr/art-lm386n-10319.htm
5 AOP : $0.16
PCB Design
First of all, you have to download the following printed circuit board :
*PCB3.Pcbdoc*
*PCB1.Pcbdoc*
After you have printed those two PCB, connect them like the previous pictures.
If you can't print it, you can also make a breadboard with this model :
*Schéma_PCB.SchDoc*
*AmpliAudioDAC_sch.SchDoc*
Source Code
First of all, you will have to download Quartus with the following link :
https://www.altera.com/downloads/download-center.h...
Then download the two projects : One for the sound processing, and one for the screen.
Arduino TFT Screen setting up :
https://github.com/tristanclare94/SoundChanger
First of all, upload the .sof file to the DE0-Nano-Soc via the Quartus Programmer tool, through the USB-Blaster port. The architecture is made of a Nios II CPU, that allows to implement a software coded in C. To upload the software on the Nios II, you have to use Nios II commands. These commands are written in the scripts test.sh (UNIX) and test.bat (Windows). You just have to execut the script.
To modify the software, you need to open main.c file, recompile and execut the script again. When the software has changed, you do not need to re-upload the .sof file.
FFT setting up :
Compile the code using "make" command, and lanch it directly from the de0 nano SoC after sending it in SSH. The executable file is named "projetFFT". To configure the SSH part of the de0 nano SoC, follow the altera tutorial in the de0 nano soc user manual.
Box
Try to find at least a box 23x21x7cm.
You can see here an inside setup for your box. If you can dig a hole on the top, for the screen, it's better. If so, put the other objects in order to ease the electrical connection with the other component.
Final Result
This is a video of the final product.
Downloads
References
You can check references with the followings links :
LDO : https://datasheets.maximintegrated.com/en/ds/MAX7...
DAC : http://ww1.microchip.com/downloads/en/DeviceDoc/2...
Ampli Audio : http://ww1.microchip.com/downloads/en/DeviceDoc/2...
AOP : http://pdf.datasheetcatalog.net/datasheet/stmicro...
HC-SFR05 : http://www.robot-electronics.co.uk/htm/srf05tech.h...
GP2Y0A41SK0F : https://www.gotronic.fr/pj-692.pdf