Part Number: MSP-EXP430G2
Hi everyone !
I hope you can help me: I'm using MSP-EXP430G2ET LaunchPad to read data from an ADS1115 16-Bit ADC. Thanks to libraries for this component, I have set a sampling frequency of 860SPS (the max possible) and I can plot my data on Energia serial plotter.
But when I send data from serial to Python or Matlab, I get only 50 samples por second. I tried to send by serial an int (X) wich increased whenever a data acquired by the ADC was sent; in this way, in Python (on PC), I saw that the int X was ordered (so I wasn't losing samples) and I received only 350 samples in around 7 seconds.
Tomorrow I'm going to try to acquire data for 5 seconds and store them in an array of 4300 elements (cause the ADC sampling freq is 860SPS x 5 seconds = 4300 samples), to be sure that ADC is sampling correctly.
Could my MCU be the problem ? Maybe the serial write velocity is not enough ? If this should be the problem, i could solve storing data in array and them in a SD.
Thank for your attention !
Best Regards,
Giuseppe Missale