Shop OBEX P1 Docs P2 Docs Learn Events
1000Hz fast ADC with MCP3208 — Parallax Forums

1000Hz fast ADC with MCP3208

JaradJarad Posts: 1
edited 2014-02-26 15:29 in General Discussion
Does anybody know if it is possible to read 3 ADC channels for the MCP3208 and transmit them over serial (multiple samples or single) at high speeds. I'm trying to figure out a way to read three channels at 1kHz and read them over bluetooth (I'm fine with reading say 10 samples every 10msec and transmitting them as a package). Can I spread the work over multiple cogs and send them as one packet? So far I've been able to transmit every 10msec but the serial stops sending after a couple seconds. I'm using the standard MCP3208.spin for my driver in my failed attempts

Comments

  • Mark_TMark_T Posts: 1,981
    edited 2014-02-26 15:29
    Yes, should be eminently possible. You need to use a high enough baud rate of course, and a compact coding
    over the serial link (binary rather than ASCII seems wise).
Sign In or Register to comment.