i am experiencing slow sampling frequency whenever i try to print 3 sensor output on the serial monitor.
Th e serial.println(sensor Value), works properly when it is only one sensors output. However, it is slowing down whenever i print more than one sensor value on the serial monitor.
I am using adxl 313 connected via I2C and analog sensor on analog pin. I have VERIFIED ABOVE SITUATION FO R ALL SENSORS but not change.
is IT POSSIBLE deactivate the serial print and replace with another function ?
any further alternative ?
Certainly. Speed up your serial baud rate to the maximum speed it will work. Since I see no code, I cannot help with that. When your serial buffer fill up, it will block your program until it can add more to the buffer.
Chances are with so many serial calls it won’t solve the problem entirely, but it might make the rest of the code run faster therefore letting more time for prints.
Something else I noticed, looks like OP is printing to plotter with frequency of 1000 times a second. I’m sure this can be improved by the factor of 100. Printing 10 times a second while still collecting data 1000 times a second should already improve it if not solve it.