NI$HANT:
In the light of all those quoted statements(it's been a hard time understanding all thatXD) i think you are not using the serial tx/rx uart ports and going to this method of posting in a text file because you can't get the whole values from the accelerometer (adxl) which are like 355, 456 and you are getting single values '7' ? is this the problem ? then ustilising the packet's will solve it.
Hi Nishant, sorry to make u confuse. The purpose of this thread is to ask how to send the data from test file in pc to arduino. It is because i have the data from eval board ADXL345. Then, Udo Klein ask me why i am not direct connect arduino to eval board ADXL345. So i am explained what is the problem that i am facing.
About Serial.write("7") is the example that i am going to test whether the data is sending out from arduino by using Serial communication. If i direct connect arduino to eval board. The data cant send/receive to/from eval board.
If i use hyperterminal in pc (connect eval board to PC), the reading i get is in the format : X:ff01 Y:0023 Z:ff11
So my perception is that: i hope i can replaced PC to Arduino and received the data from eval board. But i failed to do it. =( =(
And now i change another way round, get the data and stored in a txt file in pc first. Then, only transfer the file to arduino.
Hope you can understand. Really so appreciate your time here thanks ![]()