You are here

ADC reading from microphone | Cypress Semiconductor

ADC reading from microphone

Summary: 3 Replies, Latest post by Bob Marlowe on 20 Oct 2016 11:45 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
rm3330_1699156's picture
User
14 posts

Hello I am reading in a microphone into the PSOC 4200 BLE ADC for about a 1.5 secs using 15000 samples at 10000 SPS, 10 bit resolution and VDD = 3.3. Attaching a screenshot of my settings. I am having a hard time reading in the microphone as I am not seeing the same thing I'm seeing on my oscilloscope. 

user_1377889's picture
User
9596 posts

Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.

 

Bob

 

rm3330_1699156's picture
User
14 posts

Here you go- Thanks!

user_1377889's picture
User
9596 posts

You do not wait for a conversion ready, use ADC_IsEndConversion()

Your ADC is 12 bits wide, you need to shift right by 4 to get an unsigned short int

The ADC averages 8 measures, thus reducing the frequency.

 

Bob

Log in to post new comments.