Hi everyone I am connecting a 3 axis accelerometer to my arduino lilypad

I have x,y,z accelerometer pins connected to AO,A1,A2 on the lilypad.

I am powering the adlx335 with 3V and the lilypad via USB. I am using the lilypad accelerometer

I have uploaded the sample sketch that comes with the Arduino IDE.

the problem is that I am getting random readings on the pins. I disconnect the accelerometer from the arduino

and I still read data when I run the serial monitor.

I am pretty sure the lilypad accelerometer is working fine because when I interface it with my arduino Uno. everything works fine.

I also tested the regular adlx335 accelerometer on the lilypad and I am facing the same problem.

Does anyone have any idea why this is happening?

Views: 279

Reply to This

© 2016   Created by Syuzi.   Powered by

Badges  |  Report an Issue  |  Terms of Service