Help needed - low resolution readings from ADC's

7 years 2 weeks ago #793 by yhafuhoho
Hello! first time here B)

I recently finished my pedalshield, which im using for a bass, and had a very hard time implementing functional wave-analysis/modification algorithms.
I have however made some functioning fuzz and boost effects, so i can confirm that the pedal works.

I did some troublelshooting by printing the adc's over serial, and found that when i play as hard as i can the values only vary with about +/-50.
If im not mistaking, this is probably also why only the fuzz effects i made seemed to work well :pinch:

I followed the FAQ's and used 0.5 uf for the film capacitors, and now im wondering if this is the reason my resolution is so low.

My questions are:
- is such a small resolution common?
- would swapping the 0.5 uf film capacitors back to 0.1 increase the resolution?
- or is the small resolution caused by something different?

Please Log in to join the conversation.

7 years 2 weeks ago - 7 years 2 weeks ago #795 by Ray
I would try to help the best I can:

- is such a small resolution common?

Well, if you connect your guitar (or bass) and play you will see that the signal does not vary much, this is normal, I think that its due to the fast variation that is not reflected in the serial port speed (which is relatively slow)
If you have a spare potentiometer, try to connect a potentiometer between 3V3 and ground and with the middle pin connected to the Arduino DUE ADC you should be able to see the complete sets of values when you swipe it (between 0 to 4096). You have to do it directly to the arduino pin, otherwise the pedalSHIELD input stage DC blocking caps will stop the signal to reach the ADC.
If you have any problem understanding this let me know.

- would swapping the 0.5 uf film capacitors back to 0.1 increase the resolution?

I dont think so, using 100nF with have a low pass filter of 15Hz (100K res + 100n cap), using a 500nf (or 470nF) the cut off frequency would be around 3Hz, allowing more low freqs harmonics.
The resolution would be the same.

- or is the small resolution caused by something different?

The ADCs are 12 bits, if you print the value through the serial port you should be able to see the whole set of values, but again if you just plug your instrument would look like you dont have much variation.

By the way, did you adjust the VR1 trimmer (the white one)? It adds gain to the guitar so maybe you have it set too low...
The following user(s) said Thank You: yhafuhoho

Please Log in to join the conversation.

7 years 1 week ago #806 by yhafuhoho

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in to join the conversation.

7 years 1 week ago #807 by Ray
Good to hear that all is fine.
Thanks for sharing your code!

Please Log in to join the conversation.

Time to create page: 0.065 seconds