Hello, I have been working on a project where I need to transmit adxl335 (e.g 345X354Y430Z) values every 50 ms from arduino nano to an arduino mega, which will send the data thru bluetooth to android for further signal processing. However, I am having a hard time getting the full length of data string which is very critical for the processing. I don't know what's making it cut the data I have already put some delay in the receiving end for some reading of the transmitted data. I think what's causing this is perhaps the current consumption of the HC-12 module.Do you have any suggestions? Btw the supply of the nano is from a PC. Attached below is my code for the transmitter and the base station. Thanks!
base-station.ino (3.66 KB)
transmitter.hc12.ino (2.29 KB)