MCP3208.spin running average enhancement question
dbritta1
Posts: 36
Have breadboarded project UI using MCP3208.spin with dual 27800 2-Axis Joysticks and 4ea 5k pots.
The MCP3208.average function works nicely to improve S/N, but is too slow when fetching all 8 ADC inputs in response to get UI state command.
Would like to have cog repeat sample all ADC inputs and keep running average accessible by command parser cog.
Has this been done already? The running average algorithm is simple, but I am new to spin programming.
Chip Gracey was original author of MCP3208.spin, any suggestions?
The MCP3208.average function works nicely to improve S/N, but is too slow when fetching all 8 ADC inputs in response to get UI state command.
Would like to have cog repeat sample all ADC inputs and keep running average accessible by command parser cog.
Has this been done already? The running average algorithm is simple, but I am new to spin programming.
Chip Gracey was original author of MCP3208.spin, any suggestions?
Comments
Thanks for info!