Hi, here is what I am trying to do:
I pass a sine wave (generated using a signal generator) to the Analog pin A0 in Arduino. I read it using the analogRead function and store the values in an array of size 100.
Then I send the data to another Arduino using the NRF24l01 module and plot it on the other end. This is something like a wireless plotter.
I send the data when the buffer is full. When I plot it on the other side, on the serial plotter graph, after every 100 samples, there is a sudden jump in the plot. This is because the process of sending data is blocking and the Arduino stops sampling data when the code for transmission is being executed. When the data transmission is done, it goes back to reading value from pin A0.
Is there any way to make the process of transmission asynchronous, so that Arduino keeps reading values even when transmission is being done?