## Pedal Pi sample rate 4 months 1 week ago #1505

 Ham OFFLINE New Member Posts: 5 Thank you received: 1 Karma: 1 Hi I have a PedalMega and am thinking of getting a PedalPi as well. I have read through the posts on how it works and can’t work out the sample rate from the code - can you explain that? There seem to be no clear timing functions. I presume on the arduinos the sample rate is set as the interrupt frequency but this doesn’t apply to the Pi. Thanks for any help Paul The administrator has disabled public write access.

## Pedal Pi sample rate 4 months 1 week ago #1512

 Ham OFFLINE New Member Posts: 5 Thank you received: 1 Karma: 1 Hi Ray I can’t see in the datasheet how the adc controls the timing - the spi clock is pi powered. How dies the pi know a sample is ready? Sorry - I know I have missed something just can’t figure out what! The administrator has disabled public write access.

## Pedal Pi sample rate 4 months 1 week ago #1513

 Ham OFFLINE New Member Posts: 5 Thank you received: 1 Karma: 1 I am a bit further. The adc seems to want the clock rate to be 0.9Mhz for 2.7v - I had assumed a faster spi clock rate would be ok as long as there was a pause between samples and that the sample rate was 50khz. The only piece missing is the code says the spi rate is 4Mhz not 0.9MHz. The administrator has disabled public write access.