I am a new beginner. is here the right place to post my problem here?I need help here. I have an ADXL345 evaluation board. and 1 ARDUINO MEGA 2560. I am thinking of passing 3 axis data to Arduino but it failed. Anyone can guide me here?I connect pin to pin. only connect it through tx-to-rx.
and write a simple program to test whether i receive the data or not. But i didnt receive the data. Anyone can help me? =(
this is my simple code:
int data = 0; // for incoming serial data
void setup() {
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
}
void loop() {
// send data only when you receive data:
if (Serial.available() > 0) {
// read the incoming byte:
data = Serial.read();
Serial.println(data, DEC);
}
}