Created Thu, 08 Dec 2011 10:30:38 +0000 by dkagge
Thu, 08 Dec 2011 10:30:38 +0000
Hi everyone.
I'm doing a project in which I use a chipKIT Max 32 for sampling frequencies from a microphone. My goal is to sample at 10kHz and transfer the datas to my PC in MatLab. Is it possible to make a program which makes the chipKIT sample at 10kHz without having to change the registers in the KIT?
And does anyone know if its possible to transfer a 10kHz sample through a serial connection? I find it difficult to find an easy way to do this. :?
Thanks in regards :)
Thu, 08 Dec 2011 19:05:43 +0000
And does anyone know if its possible to transfer a 10kHz sample through a serial connection?
You may be hard pressed to get 10KHz through a serial connection at 115,200bps.
115200bits / 10bits per transfer = 11520 bytes per second. If you want to transfer all 10 bits you'll need to send two bytes per sample, so 5760 samples per second. You could squish the data in less than two bytes per sample but it would probably be hard to know where your at.
You probably would have better luck using USB for serial and using the USB port on the Ethernet shield. USB has quite a bit of overhead compared to serial, but its much much faster. You can get 12Mbps with a PIC32, about 100 times as fast as a serial connection
Jacob
Sat, 10 Dec 2011 13:54:44 +0000
Thank you for the answer - i'll try with the USB.