amirf
November 26, 2018, 6:24am
1
I previously connected ADXL345 to Arduino Uno as follows and could read the data with no issue:
5V-->5V
GND-->GND
SDA-->SDA
SCL-->SCL
However, the ESP8266 shown in the photos doesn't have SDA and SCL pins. How could I connect them using other pins as shown in photo?
Juraj
November 26, 2018, 6:47am
2
the esp8266 can do I2C any pair of pins. default for D1 mini is D1 SCL and D2 SDA (io 5 and io 4)
amirf
November 28, 2018, 11:44am
4
@Juraj , I get the tilt data from above, do you know how I can get the motion data?
Juraj
November 28, 2018, 12:29pm
5
amirf:
@Juraj , I get the tilt data from above, do you know how I can get the motion data?
sorry, I never used this kind of sensor
amirf
April 8, 2019, 5:08am
6
for anyone who needs, you simply subtract the tilt value and divide by time to get accelerometer. I think the sensor may do this as well but it is simple enough to do yourself.