Hello,
I'm working on a project which involves getting accelerometer data from an I2C bus, and also an ADC value and sending that to a computer.
The requirement is that the analog signal be sampled at > 2KHz.
I've written some code below, but from the timestamps the effective sampling rate seems to be 250 Hz.
I'm using at ATMega16u4, 8 MHz internal oscillator, USB low speed (1MBit/s)
Does anyone know how to work around this issue?
ASCII output
490000936;1022;17;-14;262;
490005200;303;17;-14;262;
490009352;475;17;-15;264;
490013504;1022;17;-15;264;
490017808;1022;17;-15;264;
490022112;1007;16;-14;265;
490026392;196;16;-14;265;
490030576;644;17;-15;264;
490034736;1022;17;-15;264;