Shop OBEX P1 Docs P2 Docs Learn Events
MCP3208.spin running average enhancement question — Parallax Forums

MCP3208.spin running average enhancement question

dbritta1dbritta1 Posts: 36
edited 2013-03-03 03:41 in Propeller 1
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?

Comments

Sign In or Register to comment.