You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A number of the Circuit Playground Express boards have an onboard mic that, based on software reesearch, takes longer to initialise than others. (I specify software research to clarify that I did not determine this with a logic analyser or other hardware-specific testing.) This results in failure when trying to run code that uses a small buffer to record as there is no data being returned. This can be resolved by sampling a small slice at the end of a larger buffer, however, this causes massive latency issues.
Essentially, there is a delay between the beginning of PDMIn sending something along the clock pin to the mic, and the mic responding. Create a buffer of 160 bytes and no data will be returned. Create a buffer of 2016 bytes, and sample a slice of the last 160 bytes of the buffer, and sound data is returned.
The resolution would be to update audiobusio.PDMIn to run the clock constantly and then only record data when requested.
The text was updated successfully, but these errors were encountered:
A number of the Circuit Playground Express boards have an onboard mic that, based on software reesearch, takes longer to initialise than others. (I specify software research to clarify that I did not determine this with a logic analyser or other hardware-specific testing.) This results in failure when trying to run code that uses a small buffer to record as there is no data being returned. This can be resolved by sampling a small slice at the end of a larger buffer, however, this causes massive latency issues.
Essentially, there is a delay between the beginning of
PDMIn
sending something along the clock pin to the mic, and the mic responding. Create a buffer of 160 bytes and no data will be returned. Create a buffer of 2016 bytes, and sample a slice of the last 160 bytes of the buffer, and sound data is returned.The resolution would be to update
audiobusio.PDMIn
to run the clock constantly and then only record data when requested.The text was updated successfully, but these errors were encountered: